diff --git a/README.md b/README.md index 132f351..04a2b6f 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,8 @@ cbb_wf会存放一些全局使用的函数, 例如Document_createElement、Node_ - 2024-08-17 修复了构造函数名称和原型对象名称不一致导致没挂上原型对象的bug, main.js也需要更新一下. +- 2025-01-28 更新了一些初始化的内容, node也更新了. 修复了console的一些问题, 目前没有更新macos、ubuntu等环境的node. 所以请慎重更新, 以免老代码跑不起来 + # 推广 这个是不不写的滑块, 反爬力度很大. diff --git a/config/config.js b/config/config.js index c5c3627..c01ffad 100644 --- a/config/config.js +++ b/config/config.js @@ -34,8 +34,1720 @@ config = { }, matchMedia_true: ["(any-pointer: fine )", "(any-pointer )", "(any-hover: hover )", "(any-hover )", "(color-gamut: srgb )", "(color-gamut )", "(min-resolution: 0.0001dpi)", "(-webkit-max-device-pixel-ratio: 1)", "(-webkit-max-device-pixel-ratio: 2)", "(-webkit-max-device-pixel-ratio: 4)", "(-webkit-max-device-pixel-ratio: 8)", "(-webkit-max-device-pixel-ratio: 16)", "(-webkit-max-device-pixel-ratio: 32)", "(-webkit-max-device-pixel-ratio: 64)", "(-webkit-max-device-pixel-ratio: 128)", "(-webkit-max-device-pixel-ratio: 256)", "(-webkit-max-device-pixel-ratio: 512)", "(-webkit-max-device-pixel-ratio: 1024)", "(-webkit-max-device-pixel-ratio: 2048)", "(-webkit-max-device-pixel-ratio: 4096)", "(-webkit-max-device-pixel-ratio: 8192)", "(-webkit-max-device-pixel-ratio: 16384)", "(-webkit-max-device-pixel-ratio: 32768)", "(-webkit-max-device-pixel-ratio: 65536)", "(-webkit-max-device-pixel-ratio: 131072)", "(-webkit-max-device-pixel-ratio: 262144)", "(-webkit-max-device-pixel-ratio: 524288)", "(-webkit-max-device-pixel-ratio: 1048576)", "(-webkit-max-device-pixel-ratio: 2097152)", "(-webkit-max-device-pixel-ratio: 4194304)", "(-webkit-max-device-pixel-ratio: 8388608)", "(-webkit-max-device-pixel-ratio: 16777216)", "(-webkit-max-device-pixel-ratio: 33554432)", "(-webkit-max-device-pixel-ratio: 67108864)", "(-webkit-max-device-pixel-ratio: 134217728)", "(-webkit-max-device-pixel-ratio: 268435456)", "(-webkit-max-device-pixel-ratio: 536870912)", "(-webkit-max-device-pixel-ratio: 1073741824)", "(-webkit-max-device-pixel-ratio: 2147483648)", "(-webkit-max-device-pixel-ratio: 4294967296)", "(-webkit-max-device-pixel-ratio: 8589934592)", "(-webkit-max-device-pixel-ratio: 17179869184)", "(-webkit-max-device-pixel-ratio: 34359738368)", "(-webkit-max-device-pixel-ratio: 68719476736)", "(-webkit-max-device-pixel-ratio: 137438953472)", "(-webkit-max-device-pixel-ratio: 274877906944)", "(-webkit-max-device-pixel-ratio: 549755813888)", "(-webkit-max-device-pixel-ratio: 1099511627776)", "(-webkit-max-device-pixel-ratio: 2199023255552)", "(-webkit-max-device-pixel-ratio: 4398046511104)", "(-webkit-max-device-pixel-ratio: 8796093022208)", "(-webkit-max-device-pixel-ratio: 17592186044416)", "(-webkit-max-device-pixel-ratio: 35184372088832)", "(-webkit-max-device-pixel-ratio: 70368744177664)", "(-webkit-max-device-pixel-ratio: 140737488355328)", "(-webkit-max-device-pixel-ratio: 281474976710656)", "(-webkit-max-device-pixel-ratio: 562949953421312)", "(-webkit-max-device-pixel-ratio: 1125899906842624)", "(-webkit-max-device-pixel-ratio: 844424930131968)", "(-webkit-max-device-pixel-ratio: 985162418487296)", "(-webkit-max-device-pixel-ratio: 1055531162664960)", "(-webkit-max-device-pixel-ratio: 1090715534753792)", "(-webkit-max-device-pixel-ratio: 1108307720798208)", "(-webkit-max-device-pixel-ratio: 1117103813820416)", "(-webkit-max-device-pixel-ratio: 1121501860331520)", "(-webkit-max-device-pixel-ratio: 1123700883587072)", "(-webkit-max-device-pixel-ratio: 1124800395214848)", "(-webkit-max-device-pixel-ratio: 1125350151028736)", "(-webkit-max-device-pixel-ratio: 1125625028935680)", "(-webkit-max-device-pixel-ratio: 1125762467889152)", "(-webkit-max-device-pixel-ratio: 1125831187365888)", "(-webkit-max-device-pixel-ratio: 1125865547104256)", "(-webkit-max-device-pixel-ratio: 1125882726973440)", "(-webkit-max-device-pixel-ratio: 1125891316908032)", "(-webkit-max-device-pixel-ratio: 1125895611875328)", "(-webkit-max-device-pixel-ratio: 1125897759358976)", "(-webkit-max-device-pixel-ratio: 1125898833100800)", "(-webkit-max-device-pixel-ratio: 1125899369971712)", "(-webkit-max-device-pixel-ratio: 1125899638407168)", "(-webkit-max-device-pixel-ratio: 1125899772624896)", "(-webkit-max-device-pixel-ratio: 1125899839733760)", "(-webkit-max-device-pixel-ratio: 1125899873288192)", "(-webkit-max-device-pixel-ratio: 1125899890065408)", "(-webkit-max-device-pixel-ratio: 1125899898454016)", "(-webkit-max-device-pixel-ratio: 1125899902648320)", "(-webkit-max-device-pixel-ratio: 1125899904745472)", "(-webkit-max-device-pixel-ratio: 1125899905794048)", "(-webkit-max-device-pixel-ratio: 1125899906318336)", "(-webkit-max-device-pixel-ratio: 1125899906580480)", "(-webkit-max-device-pixel-ratio: 1125899906711552)", "(-webkit-max-device-pixel-ratio: 1125899906777088)", "(-webkit-max-device-pixel-ratio: 1125899906809856)", "(-webkit-max-device-pixel-ratio: 1125899906826240)", "(-webkit-max-device-pixel-ratio: 1125899906834432)", "(-webkit-max-device-pixel-ratio: 1125899906838528)", "(-webkit-max-device-pixel-ratio: 1125899906840576)", "(-webkit-max-device-pixel-ratio: 1125899906841600)", "(-webkit-max-device-pixel-ratio: 1125899906842112)", "(-webkit-max-device-pixel-ratio: 1125899906842368)", "(-webkit-max-device-pixel-ratio: 1125899906842496)", "(-webkit-max-device-pixel-ratio: 1125899906842560)", "(-webkit-max-device-pixel-ratio: 1125899906842592)", "(-webkit-max-device-pixel-ratio: 1125899906842608)", "(-webkit-max-device-pixel-ratio: 1125899906842616)", "(-webkit-max-device-pixel-ratio: 1125899906842620)", "(-webkit-max-device-pixel-ratio: 1125899906842622)", "(-webkit-max-device-pixel-ratio: 1125899906842623)", "(hover: hover)", "(max-monochrome: 1)", "(max-monochrome: 2)", "(max-monochrome: 4)", "(max-monochrome: 8)", "(max-monochrome: 16)", "(max-monochrome: 32)", "(max-monochrome: 64)", "(max-monochrome: 128)", "(max-monochrome: 256)", "(max-monochrome: 512)", "(max-monochrome: 1024)", "(max-monochrome: 2048)", "(max-monochrome: 4096)", "(max-monochrome: 8192)", "(max-monochrome: 16384)", "(max-monochrome: 32768)", "(max-monochrome: 65536)", "(max-monochrome: 131072)", "(max-monochrome: 262144)", "(max-monochrome: 524288)", "(max-monochrome: 1048576)", "(max-monochrome: 2097152)", "(max-monochrome: 4194304)", "(max-monochrome: 8388608)", "(max-monochrome: 16777216)", "(max-monochrome: 33554432)", "(max-monochrome: 67108864)", "(max-monochrome: 134217728)", "(max-monochrome: 268435456)", "(max-monochrome: 536870912)", "(max-monochrome: 1073741824)", "(color-gamut: srgb)", "(any-pointer: fine)", "(max-height: 1200px)", "(max-height: 2400px)", "(max-height: 4800px)", "(max-height: 9600px)", "(max-height: 19200px)", "(max-height: 38400px)", "(max-height: 76800px)", "(max-height: 153600px)", "(max-height: 307200px)", "(max-height: 614400px)", "(max-height: 1228800px)", "(max-height: 2457600px)", "(max-height: 4915200px)", "(max-height: 9830400px)", "(max-height: 19660800px)", "(max-height: 39321600px)", "(max-height: 78643200px)", "(max-height: 157286400px)", "(max-height: 314572800px)", "(max-height: 629145600px)", "(max-height: 1258291200px)", "(max-height: 2516582400px)", "(max-height: 5033164800px)", "(max-height: 10066329600px)", "(max-height: 20132659200px)", "(max-height: 40265318400px)", "(max-height: 80530636800px)", "(max-height: 161061273600px)", "(max-height: 322122547200px)", "(max-height: 644245094400px)", "(max-height: 1288490188800px)", "(max-height: 2576980377600px)", "(max-height: 5153960755200px)", "(max-height: 10307921510400px)", "(max-height: 20615843020800px)", "(max-height: 41231686041600px)", "(max-height: 82463372083200px)", "(max-height: 164926744166400px)", "(max-height: 329853488332800px)", "(max-height: 659706976665600px)", "(max-height: 1319413953331200px)", "(max-height: 2638827906662400px)", "(max-height: 5277655813324800px)", "(max-height: 10555311626649600px)", "(max-height: 21110623253299200px)", "(max-height: 42221246506598400px)", "(max-height: 84442493013196800px)", "(max-height: 168884986026393600px)", "(max-height: 337769972052787200px)", "(max-height: 675539944105574400px)", "(max-height: 506654958079180800px)", "(max-height: 591097451092377600px)", "(max-height: 633318697598976000px)", "(max-height: 654429320852275200px)", "(max-height: 664984632478924800px)", "(max-height: 670262288292249600px)", "(max-height: 672901116198912000px)", "(max-height: 674220530152243200px)", "(max-height: 674880237128908800px)", "(max-height: 675210090617241600px)", "(max-height: 675375017361408000px)", "(max-height: 675457480733491200px)", "(max-height: 675498712419532800px)", "(max-height: 675519328262553600px)", "(max-height: 675529636184064000px)", "(max-height: 675534790144819200px)", "(max-height: 675537367125196800px)", "(max-height: 675538655615385600px)", "(max-height: 675539299860480000px)", "(max-height: 675539621983027200px)", "(max-height: 675539783044300800px)", "(max-height: 675539863574937600px)", "(max-height: 675539903840256000px)", "(max-height: 675539923972915200px)", "(max-height: 675539934039244800px)", "(max-height: 675539939072409600px)", "(max-height: 675539941588992000px)", "(max-height: 675539942847283200px)", "(max-height: 675539943476428800px)", "(max-height: 675539943791001600px)", "(max-height: 675539943948288000px)", "(max-height: 675539944026931200px)", "(max-height: 675539944066252800px)", "(max-height: 675539944085913600px)", "(max-height: 675539944095744000px)", "(max-height: 675539944100659200px)", "(max-height: 675539944103116800px)", "(max-height: 675539944104345600px)", "(max-height: 675539944104960000px)", "(max-height: 675539944105267200px)", "(max-height: 675539944105420800px)", "(max-height: 675539944105497600px)", "(max-height: 675539944105536000px)", "(max-height: 675539944105555200px)", "(max-height: 675539944105564800px)", "(max-height: 675539944105569500px)", "(max-height: 675539944105572000px)", "(max-height: 675539944105573100px)", "(max-height: 675539944105573800px)", "(max-height: 675539944105574100px)", "(grid: 0)", "(prefers-color-scheme: light)", "(prefers-reduced-motion: no-preference)", "(max-color: 8)", "(max-color: 16)", "(max-color: 32)", "(max-color: 64)", "(max-color: 128)", "(max-color: 256)", "(max-color: 512)", "(max-color: 1024)", "(max-color: 2048)", "(max-color: 4096)", "(max-color: 8192)", "(max-color: 16384)", "(max-color: 32768)", "(max-color: 65536)", "(max-color: 131072)", "(max-color: 262144)", "(max-color: 524288)", "(max-color: 1048576)", "(max-color: 2097152)", "(max-color: 4194304)", "(max-color: 8388608)", "(max-color: 16777216)", "(max-color: 33554432)", "(max-color: 67108864)", "(max-color: 134217728)", "(max-color: 268435456)", "(max-color: 536870912)", "(max-color: 1073741824)", "(display-mode: browser)", "(forced-colors: none)", "(max-aspect-ratio: 1/1)", "(max-aspect-ratio: 2/1)", "(max-aspect-ratio: 3/1)", "(max-aspect-ratio: 4/1)", "(max-aspect-ratio: 5/1)", "(max-aspect-ratio: 6/1)", "(max-aspect-ratio: 7/1)", "(max-aspect-ratio: 8/1)", "(max-aspect-ratio: 9/1)", "(max-aspect-ratio: 10/1)", "(max-aspect-ratio: 11/1)", "(max-aspect-ratio: 12/1)", "(max-aspect-ratio: 13/1)", "(max-aspect-ratio: 14/1)", "(max-aspect-ratio: 15/1)", "(max-aspect-ratio: 16/1)", "(max-aspect-ratio: 17/1)", "(max-aspect-ratio: 18/1)", "(max-aspect-ratio: 19/1)", "(max-aspect-ratio: 20/1)", "(max-aspect-ratio: 21/1)", "(max-aspect-ratio: 22/1)", "(max-aspect-ratio: 23/1)", "(max-aspect-ratio: 24/1)", "(max-aspect-ratio: 25/1)", "(max-aspect-ratio: 26/1)", "(max-aspect-ratio: 27/1)", "(max-aspect-ratio: 28/1)", "(max-aspect-ratio: 29/1)", "(max-aspect-ratio: 30/1)", "(max-aspect-ratio: 31/1)", "(max-aspect-ratio: 32/1)", "(max-aspect-ratio: 33/1)", "(max-aspect-ratio: 34/1)", "(max-aspect-ratio: 35/1)", "(max-aspect-ratio: 36/1)", "(max-aspect-ratio: 37/1)", "(max-aspect-ratio: 38/1)", "(max-aspect-ratio: 39/1)", "(max-aspect-ratio: 40/1)", "(max-aspect-ratio: 41/1)", "(max-aspect-ratio: 42/1)", "(max-aspect-ratio: 43/1)", "(max-aspect-ratio: 44/1)", "(max-aspect-ratio: 45/1)", "(max-aspect-ratio: 46/1)", "(max-aspect-ratio: 47/1)", "(max-aspect-ratio: 48/1)", "(max-aspect-ratio: 49/1)", "(max-aspect-ratio: 50/1)", "(max-aspect-ratio: 51/1)", "(max-aspect-ratio: 101/2)", "(max-aspect-ratio: 203/4)", "(max-aspect-ratio: 407/8)", "(max-aspect-ratio: 815/16)", "(max-aspect-ratio: 1631/32)", "(max-aspect-ratio: 3263/64)", "(max-aspect-ratio: 6527/128)", "(max-aspect-ratio: 13055/256)", "(max-aspect-ratio: 26111/512)", "(max-aspect-ratio: 52223/1024)", "(max-aspect-ratio: 104447/2048)", "(max-aspect-ratio: 208895/4096)", "(max-aspect-ratio: 417791/8192)", "(max-aspect-ratio: 835583/16384)", "(max-aspect-ratio: 1671167/32768)", "(max-aspect-ratio: 3342335/65536)", "(max-aspect-ratio: 6684671/131072)", "(max-aspect-ratio: 13369343/262144)", "(max-aspect-ratio: 26738687/524288)", "(max-aspect-ratio: 53477375/1048576)", "(max-aspect-ratio: 106954751/2097152)", "(max-aspect-ratio: 213909503/4194304)", "(max-aspect-ratio: 427819007/8388608)", "(max-aspect-ratio: 855638015/16777216)", "(max-aspect-ratio: 1711276031/33554432)", "(max-aspect-ratio: 3422552063/67108864)", "(max-aspect-ratio: 6845104127/134217728)", "(max-aspect-ratio: 13690208255/268435456)", "(max-aspect-ratio: 27380416511/536870912)", "(max-aspect-ratio: 54760833023/1073741824)", "(max-aspect-ratio: 109521666047/2147483648)", "(max-aspect-ratio: 219043332095/4294967296)", "(max-aspect-ratio: 438086664191/8589934592)", "(max-aspect-ratio: 876173328383/17179869184)", "(max-aspect-ratio: 1752346656767/34359738368)", "(max-aspect-ratio: 3504693313535/68719476736)", "(max-aspect-ratio: 7009386627071/137438953472)", "(max-aspect-ratio: 14018773254143/274877906944)", "(max-aspect-ratio: 28037546508287/549755813888)", "(max-aspect-ratio: 56075093016575/1099511627776)", "(max-aspect-ratio: 112150186033151/2199023255552)", "(max-aspect-ratio: 224300372066303/4398046511104)", "(max-aspect-ratio: 448600744132607/8796093022208)", "(max-aspect-ratio: 897201488265215/17592186044416)", "(max-aspect-ratio: 1794402976530431/35184372088832)", "(max-aspect-ratio: 3588805953060863/70368744177664)", "(max-aspect-ratio: 7177611906121727/140737488355328)", "(any-hover: hover)", "(orientation: portrait)", "(max-width: 600px)", "(max-width: 1200px)", "(max-width: 2400px)", "(max-width: 4800px)", "(max-width: 9600px)", "(max-width: 19200px)", "(max-width: 38400px)", "(max-width: 76800px)", "(max-width: 153600px)", "(max-width: 307200px)", "(max-width: 614400px)", "(max-width: 1228800px)", "(max-width: 2457600px)", "(max-width: 4915200px)", "(max-width: 9830400px)", "(max-width: 19660800px)", "(max-width: 39321600px)", "(max-width: 78643200px)", "(max-width: 157286400px)", "(max-width: 314572800px)", "(max-width: 629145600px)", "(max-width: 1258291200px)", "(max-width: 2516582400px)", "(max-width: 5033164800px)", "(max-width: 10066329600px)", "(max-width: 20132659200px)", "(max-width: 40265318400px)", "(max-width: 80530636800px)", "(max-width: 161061273600px)", "(max-width: 322122547200px)", "(max-width: 644245094400px)", "(max-width: 1288490188800px)", "(max-width: 2576980377600px)", "(max-width: 5153960755200px)", "(max-width: 10307921510400px)", "(max-width: 20615843020800px)", "(max-width: 41231686041600px)", "(max-width: 82463372083200px)", "(max-width: 164926744166400px)", "(max-width: 329853488332800px)", "(max-width: 659706976665600px)", "(max-width: 1319413953331200px)", "(max-width: 2638827906662400px)", "(max-width: 5277655813324800px)", "(max-width: 10555311626649600px)", "(max-width: 21110623253299200px)", "(max-width: 42221246506598400px)", "(max-width: 84442493013196800px)", "(max-width: 168884986026393600px)", "(max-width: 337769972052787200px)", "(max-width: 675539944105574400px)", "(max-width: 506654958079180800px)", "(max-width: 591097451092377600px)", "(max-width: 633318697598976000px)", "(max-width: 654429320852275200px)", "(max-width: 664984632478924800px)", "(max-width: 670262288292249600px)", "(max-width: 672901116198912000px)", "(max-width: 674220530152243200px)", "(max-width: 674880237128908800px)", "(max-width: 675210090617241600px)", "(max-width: 675375017361408000px)", "(max-width: 675457480733491200px)", "(max-width: 675498712419532800px)", "(max-width: 675519328262553600px)", "(max-width: 675529636184064000px)", "(max-width: 675534790144819200px)", "(max-width: 675537367125196800px)", "(max-width: 675538655615385600px)", "(max-width: 675539299860480000px)", "(max-width: 675539621983027200px)", "(max-width: 675539783044300800px)", "(max-width: 675539863574937600px)", "(max-width: 675539903840256000px)", "(max-width: 675539923972915200px)", "(max-width: 675539934039244800px)", "(max-width: 675539939072409600px)", "(max-width: 675539941588992000px)", "(max-width: 675539942847283200px)", "(max-width: 675539943476428800px)", "(max-width: 675539943791001600px)", "(max-width: 675539943948288000px)", "(max-width: 675539944026931200px)", "(max-width: 675539944066252800px)", "(max-width: 675539944085913600px)", "(max-width: 675539944095744000px)", "(max-width: 675539944100659200px)", "(max-width: 675539944103116800px)", "(max-width: 675539944104345600px)", "(max-width: 675539944104960000px)", "(max-width: 675539944105267200px)", "(max-width: 675539944105420800px)", "(max-width: 675539944105497600px)", "(max-width: 675539944105536000px)", "(max-width: 675539944105555200px)", "(max-width: 675539944105564800px)", "(max-width: 675539944105569500px)", "(max-width: 675539944105572000px)", "(max-width: 675539944105573100px)", "(max-width: 675539944105573800px)", "(max-width: 675539944105574100px)", "(pointer: fine)", "(max-color-index: 1000)", "(max-color-index: 2000)", "(max-color-index: 4000)", "(max-color-index: 8000)", "(max-color-index: 16000)", "(max-color-index: 32000)", "(max-color-index: 64000)", "(max-color-index: 128000)", "(max-color-index: 256000)", "(max-color-index: 512000)", "(max-color-index: 1024000)", "(max-color-index: 2048000)", "(max-color-index: 4096000)", "(max-color-index: 8192000)", "(max-color-index: 16384000)", "(max-color-index: 32768000)", "(max-color-index: 65536000)", "(max-color-index: 131072000)", "(max-color-index: 262144000)", "(max-color-index: 524288000)", "(max-color-index: 1048576000)", "(max-color-index: 2097152000)", "(prefers-contrast: no-preference)", "(min-resolution: 0.0001dpi)", "(max-resolution: 192dpi)", "(max-resolution: 384dpi)", "(max-resolution: 768dpi)", "(max-resolution: 1536dpi)", "(max-resolution: 3072dpi)", "(max-resolution: 6144dpi)", "(max-resolution: 12288dpi)", "(max-resolution: 24576dpi)", "(max-resolution: 49152dpi)", "(max-resolution: 98304dpi)", "(max-resolution: 196608dpi)", "(max-resolution: 393216dpi)", "(max-resolution: 786432dpi)", "(max-resolution: 1572864dpi)", "(max-resolution: 3145728dpi)", "(max-resolution: 6291456dpi)", "(max-resolution: 12582912dpi)", "(max-resolution: 25165824dpi)", "(max-resolution: 50331648dpi)", "(max-resolution: 100663296dpi)", "(max-resolution: 201326592dpi)", "(max-resolution: 402653184dpi)", "(max-resolution: 805306368dpi)", "(max-resolution: 1610612736dpi)", "(max-resolution: 3221225472dpi)", "(max-resolution: 6442450944dpi)", "(max-resolution: 12884901888dpi)", "(max-resolution: 25769803776dpi)", "(max-resolution: 51539607552dpi)", "(max-resolution: 103079215104dpi)", "(max-resolution: 206158430208dpi)", "(max-resolution: 412316860416dpi)", "(max-resolution: 824633720832dpi)", "(max-resolution: 1649267441664dpi)", "(max-resolution: 3298534883328dpi)", "(max-resolution: 6597069766656dpi)", "(max-resolution: 13194139533312dpi)", "(max-resolution: 26388279066624dpi)", "(max-resolution: 52776558133248dpi)", "(max-resolution: 105553116266496dpi)", "(max-resolution: 211106232532992dpi)", "(max-resolution: 422212465065984dpi)", "(max-resolution: 844424930131968dpi)", "(max-resolution: 1688849860263936dpi)", "(max-resolution: 3377699720527872dpi)", "(max-resolution: 6755399441055744dpi)", "(max-resolution: 13510798882111488dpi)", "(max-resolution: 27021597764222976dpi)", "(max-resolution: 20266198323167230dpi)", "(max-resolution: 23643898043695104dpi)", "(max-resolution: 25332747903959040dpi)", "(max-resolution: 26177172834091010dpi)", "(max-resolution: 26599385299156990dpi)", "(max-resolution: 26810491531689984dpi)", "(max-resolution: 26916044647956480dpi)", "(max-resolution: 26968821206089730dpi)", "(max-resolution: 26995209485156350dpi)", "(max-resolution: 27008403624689664dpi)", "(max-resolution: 27015000694456320dpi)", "(max-resolution: 27018299229339650dpi)", "(max-resolution: 27019948496781310dpi)", "(max-resolution: 27020773130502144dpi)", "(max-resolution: 27021185447362560dpi)", "(max-resolution: 27021391605792770dpi)", "(max-resolution: 27021494685007870dpi)", "(max-resolution: 27021546224615424dpi)", "(max-resolution: 27021571994419200dpi)", "(max-resolution: 27021584879321090dpi)", "(max-resolution: 27021591321772030dpi)", "(max-resolution: 27021594542997504dpi)", "(max-resolution: 27021596153610240dpi)", "(max-resolution: 27021596958916610dpi)", "(max-resolution: 27021597361569790dpi)", "(max-resolution: 27021597562896384dpi)", "(max-resolution: 27021597663559680dpi)", "(max-resolution: 27021597713891330dpi)", "(max-resolution: 27021597739057150dpi)", "(max-resolution: 27021597751640064dpi)", "(max-resolution: 27021597757931520dpi)", "(max-resolution: 27021597761077250dpi)", "(max-resolution: 27021597762650110dpi)", "(max-resolution: 27021597763436544dpi)", "(max-resolution: 27021597763829760dpi)", "(max-resolution: 27021597764026370dpi)", "(max-resolution: 27021597764124670dpi)", "(max-resolution: 27021597764173824dpi)", "(max-resolution: 27021597764198400dpi)", "(max-resolution: 27021597764210690dpi)", "(max-resolution: 27021597764216830dpi)", "(max-resolution: 27021597764219904dpi)", "(max-resolution: 27021597764221440dpi)", "(max-resolution: 27021597764222210dpi)", "(max-resolution: 27021597764222590dpi)", "(max-resolution: 27021597764222784dpi)", "(max-resolution: 27021597764222880dpi)", "(max-resolution: 27021597764222930dpi)", "(max-resolution: 27021597764222950dpi)", "(max-resolution: 27021597764222964dpi)", "(max-color: 8)", "(pointer: fine)", "(orientation: portrait)", "(color-gamut: srgb)", "(max-height: 1200px)", "(max-height: 900px)", "(max-height: 1050px)", "(max-height: 1125px)", "(max-height: 1163px)", "(max-height: 1182px)", "(max-height: 1191px)", "(max-height: 1196px)", "(max-height: 1198px)", "(max-height: 1199px)", "(prefers-color-scheme: light)", "(max-width: 600px)", "(max-width: 450px)", "(max-width: 525px)", "(max-width: 563px)", "(max-width: 582px)", "(max-width: 591px)", "(max-width: 596px)", "(max-width: 598px)", "(max-width: 599px)", "(grid: 0)", "(max-aspect-ratio: 1/1)", "(max-aspect-ratio: 1/2)", "(max-aspect-ratio: 3/4)", "(max-aspect-ratio: 7/8)", "(max-aspect-ratio: 15/16)", "(max-aspect-ratio: 31/32)", "(max-aspect-ratio: 63/64)", "(max-aspect-ratio: 127/128)", "(max-aspect-ratio: 255/256)", "(max-aspect-ratio: 511/512)", "(max-aspect-ratio: 1023/1024)", "(max-aspect-ratio: 2047/2048)", "(max-aspect-ratio: 4095/4096)", "(max-aspect-ratio: 8191/8192)", "(max-aspect-ratio: 16383/16384)", "(max-aspect-ratio: 32767/32768)", "(max-aspect-ratio: 65535/65536)", "(max-aspect-ratio: 131071/131072)", "(max-aspect-ratio: 262143/262144)", "(max-aspect-ratio: 524287/524288)", "(max-aspect-ratio: 1048575/1048576)", "(max-aspect-ratio: 2097151/2097152)", "(max-aspect-ratio: 4194303/4194304)", "(max-aspect-ratio: 8388607/8388608)", "(max-aspect-ratio: 16777215/16777216)", "(max-aspect-ratio: 33554431/33554432)", "(max-aspect-ratio: 67108863/67108864)", "(max-aspect-ratio: 134217727/134217728)", "(max-aspect-ratio: 268435455/268435456)", "(max-aspect-ratio: 536870911/536870912)", "(max-aspect-ratio: 1073741823/1073741824)", "(max-aspect-ratio: 2147483647/2147483648)", "(max-aspect-ratio: 4294967295/4294967296)", "(max-aspect-ratio: 8589934591/8589934592)", "(max-aspect-ratio: 17179869183/17179869184)", "(max-aspect-ratio: 34359738367/34359738368)", "(max-aspect-ratio: 68719476735/68719476736)", "(max-aspect-ratio: 137438953471/137438953472)", "(max-aspect-ratio: 274877906943/274877906944)", "(max-aspect-ratio: 549755813887/549755813888)", "(max-aspect-ratio: 1099511627775/1099511627776)", "(max-aspect-ratio: 2199023255551/2199023255552)", "(max-aspect-ratio: 4398046511103/4398046511104)", "(max-aspect-ratio: 8796093022207/8796093022208)", "(max-aspect-ratio: 17592186044415/17592186044416)", "(max-aspect-ratio: 35184372088831/35184372088832)", "(max-aspect-ratio: 70368744177663/70368744177664)", "(max-aspect-ratio: 140737488355327/140737488355328)", "(max-aspect-ratio: 281474976710655/281474976710656)", "(max-aspect-ratio: 562949953421311/562949953421312)", "(max-aspect-ratio: 1125899906842623/1125899906842624)", "(prefers-contrast: no-preference)", "(display-mode: browser)", "(any-pointer: coarse)", "(any-pointer: fine)", "(hover: hover)", "(forced-colors: none)", "(max-color-index: 1000)", "(max-color-index: 500)", "(max-color-index: 750)", "(max-color-index: 875)", "(max-color-index: 938)", "(max-color-index: 969)", "(max-color-index: 985)", "(max-color-index: 993)", "(max-color-index: 997)", "(max-color-index: 999)", "(prefers-reduced-motion: no-preference)", "(max-monochrome: 1)", "(max-monochrome: 0)", "(any-hover: hover)"], - worker_ctr_init: { "WorkerNavigator": [], "WorkerLocation": [], "WorkerGlobalScope": [], "FileReaderSync": [""], "DedicatedWorkerGlobalScope": [], "FileSystemSyncAccessHandle": [] }, - proto: ["FontFaceSet", "SpeechSynthesis", "DeprecatedStorageInfo", "StyleMedia", "MemoryInfo", "DeprecatedStorageQuota", "Database", + ctr_init: { + "Option": [ + "" + ], + "Image": [ + "" + ], + "Audio": [ + "" + ], + "webkitURL": [ + "", + 1 + ], + "webkitRTCPeerConnection": [ + "" + ], + "webkitMediaStream": [ + "" + ], + "WebKitMutationObserver": [ + "", + 1 + ], + "WebKitCSSMatrix": [ + "" + ], + "XSLTProcessor": [ + "" + ], + "XPathResult": [], + "XPathExpression": [], + "XPathEvaluator": [ + "" + ], + "XMLSerializer": [ + "" + ], + "XMLHttpRequestUpload": [], + "XMLHttpRequestEventTarget": [], + "XMLHttpRequest": [ + "" + ], + "XMLDocument": [], + "WritableStreamDefaultWriter": [ + "", + 1 + ], + "WritableStreamDefaultController": [], + "WritableStream": [ + "" + ], + "Worker": [ + "", + 1 + ], + "WindowControlsOverlayGeometryChangeEvent": [ + "" + ], + "WindowControlsOverlay": [], + "Window": [], + "WheelEvent": [ + "", + 1 + ], + "WebSocket": [ + "", + 1 + ], + "WebGLVertexArrayObject": [], + "WebGLUniformLocation": [], + "WebGLTransformFeedback": [], + "WebGLTexture": [], + "WebGLSync": [], + "WebGLShaderPrecisionFormat": [], + "WebGLShader": [], + "WebGLSampler": [], + "WebGLRenderingContext": [], + "WebGLRenderbuffer": [], + "WebGLQuery": [], + "WebGLProgram": [], + "WebGLObject": [], + "WebGLFramebuffer": [], + "WebGLContextEvent": [ + "", + 1 + ], + "WebGLBuffer": [], + "WebGLActiveInfo": [], + "WebGL2RenderingContext": [], + "WaveShaperNode": [ + "", + 1 + ], + "VisualViewport": [], + "VisibilityStateEntry": [], + "VirtualKeyboardGeometryChangeEvent": [ + "", + 1 + ], + "ViewTransition": [], + "VideoPlaybackQuality": [], + "VideoFrame": [ + "", + 1 + ], + "VideoColorSpace": [ + "" + ], + "ValidityState": [], + "VTTCue": [ + "" + ], + "UserActivation": [], + "URLSearchParams": [ + "" + ], + "URLPattern": [ + "" + ], + "URL": [ + "", + 1 + ], + "UIEvent": [ + "", + 1 + ], + "TrustedTypePolicyFactory": [], + "TrustedTypePolicy": [], + "TrustedScriptURL": [], + "TrustedScript": [], + "TrustedHTML": [], + "TreeWalker": [], + "TransitionEvent": [ + "", + 1 + ], + "TransformStreamDefaultController": [], + "TransformStream": [ + "" + ], + "TrackEvent": [ + "", + 1 + ], + "TouchList": [], + "TouchEvent": [ + "", + 1 + ], + "Touch": [ + "", + 1 + ], + "ToggleEvent": [ + "", + 1 + ], + "TimeRanges": [], + "TextUpdateEvent": [ + "", + 1 + ], + "TextTrackList": [], + "TextTrackCueList": [], + "TextTrackCue": [], + "TextTrack": [], + "TextMetrics": [], + "TextFormatUpdateEvent": [ + "", + 1 + ], + "TextFormat": [ + "" + ], + "TextEvent": [], + "TextEncoderStream": [ + "" + ], + "TextEncoder": [ + "" + ], + "TextDecoderStream": [ + "" + ], + "TextDecoder": [ + "" + ], + "Text": [ + "" + ], + "TaskSignal": [], + "TaskPriorityChangeEvent": [ + "" + ], + "TaskController": [ + "" + ], + "TaskAttributionTiming": [], + "SyncManager": [], + "SubmitEvent": [ + "", + 1 + ], + "StyleSheetList": [], + "StyleSheet": [], + "StylePropertyMapReadOnly": [], + "StylePropertyMap": [], + "StorageEvent": [ + "", + 1 + ], + "Storage": [], + "StereoPannerNode": [ + "", + 1 + ], + "StaticRange": [ + "", + 1 + ], + "SourceBufferList": [], + "SourceBuffer": [], + "ShadowRoot": [], + "Selection": [], + "SecurityPolicyViolationEvent": [ + "", + 1 + ], + "ScriptProcessorNode": [], + "ScreenOrientation": [], + "Screen": [], + "Scheduling": [], + "Scheduler": [], + "SVGViewElement": [], + "SVGUseElement": [], + "SVGUnitTypes": [], + "SVGTransformList": [], + "SVGTransform": [], + "SVGTitleElement": [], + "SVGTextPositioningElement": [], + "SVGTextPathElement": [], + "SVGTextElement": [], + "SVGTextContentElement": [], + "SVGTSpanElement": [], + "SVGSymbolElement": [], + "SVGSwitchElement": [], + "SVGStyleElement": [], + "SVGStringList": [], + "SVGStopElement": [], + "SVGSetElement": [], + "SVGScriptElement": [], + "SVGSVGElement": [], + "SVGRectElement": [], + "SVGRect": [], + "SVGRadialGradientElement": [], + "SVGPreserveAspectRatio": [], + "SVGPolylineElement": [], + "SVGPolygonElement": [], + "SVGPointList": [], + "SVGPoint": [], + "SVGPatternElement": [], + "SVGPathElement": [], + "SVGNumberList": [], + "SVGNumber": [], + "SVGMetadataElement": [], + "SVGMatrix": [], + "SVGMaskElement": [], + "SVGMarkerElement": [], + "SVGMPathElement": [], + "SVGLinearGradientElement": [], + "SVGLineElement": [], + "SVGLengthList": [], + "SVGLength": [], + "SVGImageElement": [], + "SVGGraphicsElement": [], + "SVGGradientElement": [], + "SVGGeometryElement": [], + "SVGGElement": [], + "SVGForeignObjectElement": [], + "SVGFilterElement": [], + "SVGFETurbulenceElement": [], + "SVGFETileElement": [], + "SVGFESpotLightElement": [], + "SVGFESpecularLightingElement": [], + "SVGFEPointLightElement": [], + "SVGFEOffsetElement": [], + "SVGFEMorphologyElement": [], + "SVGFEMergeNodeElement": [], + "SVGFEMergeElement": [], + "SVGFEImageElement": [], + "SVGFEGaussianBlurElement": [], + "SVGFEFuncRElement": [], + "SVGFEFuncGElement": [], + "SVGFEFuncBElement": [], + "SVGFEFuncAElement": [], + "SVGFEFloodElement": [], + "SVGFEDropShadowElement": [], + "SVGFEDistantLightElement": [], + "SVGFEDisplacementMapElement": [], + "SVGFEDiffuseLightingElement": [], + "SVGFEConvolveMatrixElement": [], + "SVGFECompositeElement": [], + "SVGFEComponentTransferElement": [], + "SVGFEColorMatrixElement": [], + "SVGFEBlendElement": [], + "SVGEllipseElement": [], + "SVGElement": [], + "SVGDescElement": [], + "SVGDefsElement": [], + "SVGComponentTransferFunctionElement": [], + "SVGClipPathElement": [], + "SVGCircleElement": [], + "SVGAnimationElement": [], + "SVGAnimatedTransformList": [], + "SVGAnimatedString": [], + "SVGAnimatedRect": [], + "SVGAnimatedPreserveAspectRatio": [], + "SVGAnimatedNumberList": [], + "SVGAnimatedNumber": [], + "SVGAnimatedLengthList": [], + "SVGAnimatedLength": [], + "SVGAnimatedInteger": [], + "SVGAnimatedEnumeration": [], + "SVGAnimatedBoolean": [], + "SVGAnimatedAngle": [], + "SVGAnimateTransformElement": [], + "SVGAnimateMotionElement": [], + "SVGAnimateElement": [], + "SVGAngle": [], + "SVGAElement": [], + "Response": [ + "" + ], + "ResizeObserverSize": [], + "ResizeObserverEntry": [], + "ResizeObserver": [ + "", + 1 + ], + "Request": [ + "", + 1 + ], + "ReportingObserver": [ + "", + 1 + ], + "ReadableStreamDefaultReader": [ + "", + 1 + ], + "ReadableStreamDefaultController": [], + "ReadableStreamBYOBRequest": [], + "ReadableStreamBYOBReader": [ + "", + 1 + ], + "ReadableStream": [ + "" + ], + "ReadableByteStreamController": [], + "Range": [ + "" + ], + "RadioNodeList": [], + "RTCTrackEvent": [ + "" + ], + "RTCStatsReport": [], + "RTCSessionDescription": [ + "" + ], + "RTCSctpTransport": [], + "RTCRtpTransceiver": [], + "RTCRtpSender": [], + "RTCRtpReceiver": [], + "RTCPeerConnectionIceEvent": [ + "", + 1 + ], + "RTCPeerConnectionIceErrorEvent": [ + "" + ], + "RTCPeerConnection": [ + "" + ], + "RTCIceTransport": [], + "RTCIceCandidate": [ + "" + ], + "RTCErrorEvent": [ + "" + ], + "RTCError": [ + "", + 1 + ], + "RTCEncodedVideoFrame": [ + "", + 1 + ], + "RTCEncodedAudioFrame": [ + "", + 1 + ], + "RTCDtlsTransport": [], + "RTCDataChannelEvent": [ + "" + ], + "RTCDTMFToneChangeEvent": [ + "" + ], + "RTCDTMFSender": [], + "RTCCertificate": [], + "PromiseRejectionEvent": [ + "" + ], + "ProgressEvent": [ + "", + 1 + ], + "Profiler": [ + "", + 1 + ], + "ProcessingInstruction": [], + "PopStateEvent": [ + "", + 1 + ], + "PointerEvent": [ + "", + 1 + ], + "PluginArray": [], + "Plugin": [], + "PictureInPictureWindow": [], + "PictureInPictureEvent": [ + "" + ], + "PeriodicWave": [ + "", + 1 + ], + "PerformanceTiming": [], + "PerformanceServerTiming": [], + "PerformanceResourceTiming": [], + "PerformancePaintTiming": [], + "PerformanceObserverEntryList": [], + "PerformanceObserver": [ + "", + 1 + ], + "PerformanceNavigationTiming": [], + "PerformanceNavigation": [], + "PerformanceMeasure": [], + "PerformanceMark": [ + "", + 1 + ], + "PerformanceLongTaskTiming": [], + "PerformanceEventTiming": [], + "PerformanceEntry": [], + "PerformanceElementTiming": [], + "Performance": [], + "Path2D": [ + "" + ], + "PannerNode": [ + "", + 1 + ], + "PageTransitionEvent": [ + "", + 1 + ], + "OverconstrainedError": [ + "", + 1 + ], + "OscillatorNode": [ + "", + 1 + ], + "OffscreenCanvasRenderingContext2D": [], + "OffscreenCanvas": [ + "" + ], + "OfflineAudioContext": [ + "", + 1 + ], + "OfflineAudioCompletionEvent": [ + "" + ], + "NodeList": [], + "NodeIterator": [], + "Node": [], + "NetworkInformation": [], + "NavigatorUAData": [], + "Navigator": [], + "NavigationTransition": [], + "NavigationHistoryEntry": [], + "NavigationDestination": [], + "NavigationCurrentEntryChangeEvent": [ + "" + ], + "Navigation": [], + "NavigateEvent": [ + "" + ], + "NamedNodeMap": [], + "MutationRecord": [], + "MutationObserver": [ + "", + 1 + ], + "MouseEvent": [ + "", + 1 + ], + "MimeTypeArray": [], + "MimeType": [], + "MessagePort": [], + "MessageEvent": [ + "", + 1 + ], + "MessageChannel": [ + "" + ], + "MediaStreamTrackVideoStats": [], + "MediaStreamTrackProcessor": [ + "", + 1 + ], + "MediaStreamTrackGenerator": [ + "", + 1 + ], + "MediaStreamTrackEvent": [ + "" + ], + "MediaStreamTrackAudioStats": [], + "MediaStreamTrack": [], + "MediaStreamEvent": [ + "", + 1 + ], + "MediaStreamAudioSourceNode": [ + "" + ], + "MediaStreamAudioDestinationNode": [ + "", + 1 + ], + "MediaStream": [ + "" + ], + "MediaSourceHandle": [], + "MediaSource": [ + "" + ], + "MediaRecorder": [ + "", + 1 + ], + "MediaQueryListEvent": [ + "", + 1 + ], + "MediaQueryList": [], + "MediaList": [], + "MediaError": [], + "MediaEncryptedEvent": [ + "", + 1 + ], + "MediaElementAudioSourceNode": [ + "" + ], + "MediaCapabilities": [], + "MathMLElement": [], + "Location": [], + "LayoutShiftAttribution": [], + "LayoutShift": [], + "LargestContentfulPaint": [], + "KeyframeEffect": [ + "", + 1 + ], + "KeyboardEvent": [ + "", + 1 + ], + "IntersectionObserverEntry": [], + "IntersectionObserver": [ + "", + 1 + ], + "InputEvent": [ + "", + 1 + ], + "InputDeviceInfo": [], + "InputDeviceCapabilities": [ + "" + ], + "Ink": [], + "ImageData": [ + "" + ], + "ImageCapture": [ + "", + 1 + ], + "ImageBitmapRenderingContext": [], + "ImageBitmap": [], + "IdleDeadline": [], + "IIRFilterNode": [ + "" + ], + "IDBVersionChangeEvent": [ + "", + 1 + ], + "IDBTransaction": [], + "IDBRequest": [], + "IDBOpenDBRequest": [], + "IDBObjectStore": [], + "IDBKeyRange": [], + "IDBIndex": [], + "IDBFactory": [], + "IDBDatabase": [], + "IDBCursorWithValue": [], + "IDBCursor": [], + "History": [], + "HighlightRegistry": [], + "Highlight": [ + "" + ], + "Headers": [ + "" + ], + "HashChangeEvent": [ + "", + 1 + ], + "HTMLVideoElement": [ + "" + ], + "HTMLUnknownElement": [], + "HTMLUListElement": [ + "" + ], + "HTMLTrackElement": [ + "" + ], + "HTMLTitleElement": [ + "" + ], + "HTMLTimeElement": [ + "" + ], + "HTMLTextAreaElement": [ + "" + ], + "HTMLTemplateElement": [ + "" + ], + "HTMLTableSectionElement": [ + "" + ], + "HTMLTableRowElement": [ + "" + ], + "HTMLTableElement": [ + "" + ], + "HTMLTableColElement": [ + "" + ], + "HTMLTableCellElement": [ + "" + ], + "HTMLTableCaptionElement": [ + "" + ], + "HTMLStyleElement": [ + "" + ], + "HTMLSpanElement": [ + "" + ], + "HTMLSourceElement": [ + "" + ], + "HTMLSlotElement": [ + "" + ], + "HTMLSelectElement": [ + "" + ], + "HTMLScriptElement": [ + "" + ], + "HTMLQuoteElement": [ + "" + ], + "HTMLProgressElement": [ + "" + ], + "HTMLPreElement": [ + "" + ], + "HTMLPictureElement": [ + "" + ], + "HTMLParamElement": [ + "" + ], + "HTMLParagraphElement": [ + "" + ], + "HTMLOutputElement": [ + "" + ], + "HTMLOptionsCollection": [], + "HTMLOptionElement": [ + "" + ], + "HTMLOptGroupElement": [ + "" + ], + "HTMLObjectElement": [ + "" + ], + "HTMLOListElement": [ + "" + ], + "HTMLModElement": [ + "" + ], + "HTMLMeterElement": [ + "" + ], + "HTMLMetaElement": [ + "" + ], + "HTMLMenuElement": [ + "" + ], + "HTMLMediaElement": [], + "HTMLMarqueeElement": [ + "" + ], + "HTMLMapElement": [ + "" + ], + "HTMLLinkElement": [ + "" + ], + "HTMLLegendElement": [ + "" + ], + "HTMLLabelElement": [ + "" + ], + "HTMLLIElement": [ + "" + ], + "HTMLInputElement": [ + "" + ], + "HTMLImageElement": [ + "" + ], + "HTMLIFrameElement": [ + "" + ], + "HTMLHtmlElement": [ + "" + ], + "HTMLHeadingElement": [ + "" + ], + "HTMLHeadElement": [ + "" + ], + "HTMLHRElement": [ + "" + ], + "HTMLFrameSetElement": [ + "" + ], + "HTMLFrameElement": [ + "" + ], + "HTMLFormElement": [ + "" + ], + "HTMLFormControlsCollection": [], + "HTMLFontElement": [ + "" + ], + "HTMLFieldSetElement": [ + "" + ], + "HTMLEmbedElement": [ + "" + ], + "HTMLElement": [ + "" + ], + "HTMLDocument": [], + "HTMLDivElement": [ + "" + ], + "HTMLDirectoryElement": [ + "" + ], + "HTMLDialogElement": [ + "" + ], + "HTMLDetailsElement": [ + "" + ], + "HTMLDataListElement": [ + "" + ], + "HTMLDataElement": [ + "" + ], + "HTMLDListElement": [ + "" + ], + "HTMLCollection": [], + "HTMLCanvasElement": [ + "" + ], + "HTMLButtonElement": [ + "" + ], + "HTMLBodyElement": [ + "" + ], + "HTMLBaseElement": [ + "" + ], + "HTMLBRElement": [ + "" + ], + "HTMLAudioElement": [ + "" + ], + "HTMLAreaElement": [ + "" + ], + "HTMLAnchorElement": [ + "" + ], + "HTMLAllCollection": [], + "GeolocationPositionError": [], + "GeolocationPosition": [], + "GeolocationCoordinates": [], + "Geolocation": [], + "GamepadHapticActuator": [], + "GamepadEvent": [ + "", + 1 + ], + "GamepadButton": [], + "Gamepad": [], + "GainNode": [ + "", + 1 + ], + "FormDataEvent": [ + "" + ], + "FormData": [ + "" + ], + "FontFaceSetLoadEvent": [ + "", + 1 + ], + "FontFace": [ + "" + ], + "FocusEvent": [ + "", + 1 + ], + "FileReader": [ + "" + ], + "FileList": [], + "File": [ + "" + ], + "FeaturePolicy": [], + "External": [], + "EventTarget": [ + "" + ], + "EventSource": [ + "", + 1 + ], + "EventCounts": [], + "Event": [ + "", + 1 + ], + "ErrorEvent": [ + "", + 1 + ], + "EncodedVideoChunk": [ + "", + 1 + ], + "EncodedAudioChunk": [ + "", + 1 + ], + "ElementInternals": [], + "Element": [], + "EditContext": [ + "" + ], + "DynamicsCompressorNode": [ + "", + 1 + ], + "DragEvent": [ + "", + 1 + ], + "DocumentType": [], + "DocumentTimeline": [ + "" + ], + "DocumentFragment": [ + "" + ], + "Document": [ + "" + ], + "DelegatedInkTrailPresenter": [], + "DelayNode": [ + "", + 1 + ], + "DecompressionStream": [ + "", + 1 + ], + "DataTransferItemList": [], + "DataTransferItem": [], + "DataTransfer": [ + "" + ], + "DOMTokenList": [], + "DOMStringMap": [], + "DOMStringList": [], + "DOMRectReadOnly": [ + "" + ], + "DOMRectList": [], + "DOMRect": [ + "" + ], + "DOMQuad": [ + "" + ], + "DOMPointReadOnly": [ + "" + ], + "DOMPoint": [ + "" + ], + "DOMParser": [ + "" + ], + "DOMMatrixReadOnly": [ + "" + ], + "DOMMatrix": [ + "" + ], + "DOMImplementation": [], + "DOMException": [ + "" + ], + "DOMError": [ + "", + 1 + ], + "CustomStateSet": [], + "CustomEvent": [ + "", + 1 + ], + "CustomElementRegistry": [], + "Crypto": [], + "CountQueuingStrategy": [ + "", + 1 + ], + "ConvolverNode": [ + "", + 1 + ], + "ContentVisibilityAutoStateChangeEvent": [ + "", + 1 + ], + "ConstantSourceNode": [ + "", + 1 + ], + "CompressionStream": [ + "", + 1 + ], + "CompositionEvent": [ + "", + 1 + ], + "Comment": [ + "" + ], + "CloseWatcher": [ + "" + ], + "CloseEvent": [ + "", + 1 + ], + "ClipboardEvent": [ + "", + 1 + ], + "CharacterData": [], + "CharacterBoundsUpdateEvent": [ + "", + 1 + ], + "ChannelSplitterNode": [ + "", + 1 + ], + "ChannelMergerNode": [ + "", + 1 + ], + "CanvasRenderingContext2D": [], + "CanvasPattern": [], + "CanvasGradient": [], + "CanvasCaptureMediaStreamTrack": [], + "CSSVariableReferenceValue": [ + "", + 1 + ], + "CSSUnparsedValue": [ + "", + 1 + ], + "CSSUnitValue": [ + "" + ], + "CSSTranslate": [ + "" + ], + "CSSTransition": [], + "CSSTransformValue": [ + "", + 1 + ], + "CSSTransformComponent": [], + "CSSSupportsRule": [], + "CSSStyleValue": [], + "CSSStyleSheet": [ + "" + ], + "CSSStyleRule": [], + "CSSStyleDeclaration": [], + "CSSStartingStyleRule": [], + "CSSSkewY": [ + "", + 1 + ], + "CSSSkewX": [ + "", + 1 + ], + "CSSSkew": [ + "" + ], + "CSSScopeRule": [], + "CSSScale": [ + "" + ], + "CSSRuleList": [], + "CSSRule": [], + "CSSRotate": [ + "", + 1 + ], + "CSSPropertyRule": [], + "CSSPositionValue": [ + "" + ], + "CSSPositionTryRule": [], + "CSSPositionTryDescriptors": [], + "CSSPerspective": [ + "", + 1 + ], + "CSSPageRule": [], + "CSSNumericValue": [], + "CSSNumericArray": [], + "CSSNamespaceRule": [], + "CSSMediaRule": [], + "CSSMatrixComponent": [ + "", + 1 + ], + "CSSMathValue": [], + "CSSMathSum": [ + "" + ], + "CSSMathProduct": [ + "" + ], + "CSSMathNegate": [ + "", + 1 + ], + "CSSMathMin": [ + "" + ], + "CSSMathMax": [ + "" + ], + "CSSMathInvert": [ + "", + 1 + ], + "CSSMathClamp": [ + "" + ], + "CSSLayerStatementRule": [], + "CSSLayerBlockRule": [], + "CSSKeywordValue": [ + "", + 1 + ], + "CSSKeyframesRule": [], + "CSSKeyframeRule": [], + "CSSImportRule": [], + "CSSImageValue": [], + "CSSGroupingRule": [], + "CSSFontPaletteValuesRule": [], + "CSSFontFaceRule": [], + "CSSCounterStyleRule": [], + "CSSContainerRule": [], + "CSSConditionRule": [], + "CSSAnimation": [], + "CDATASection": [], + "ByteLengthQueuingStrategy": [ + "", + 1 + ], + "BrowserCaptureMediaStreamTrack": [], + "BroadcastChannel": [ + "", + 1 + ], + "BlobEvent": [ + "" + ], + "Blob": [ + "" + ], + "BiquadFilterNode": [ + "", + 1 + ], + "BeforeUnloadEvent": [], + "BeforeInstallPromptEvent": [ + "", + 1 + ], + "BaseAudioContext": [], + "BarProp": [], + "AudioWorkletNode": [ + "" + ], + "AudioSinkInfo": [], + "AudioScheduledSourceNode": [], + "AudioProcessingEvent": [ + "" + ], + "AudioParamMap": [], + "AudioParam": [], + "AudioNode": [], + "AudioListener": [], + "AudioDestinationNode": [], + "AudioData": [ + "", + 1 + ], + "AudioContext": [ + "" + ], + "AudioBufferSourceNode": [ + "", + 1 + ], + "AudioBuffer": [ + "", + 1 + ], + "Attr": [], + "AnimationTimeline": [], + "AnimationPlaybackEvent": [ + "", + 1 + ], + "AnimationEvent": [ + "", + 1 + ], + "AnimationEffect": [], + "Animation": [ + "" + ], + "AnalyserNode": [ + "", + 1 + ], + "AbstractRange": [], + "AbortSignal": [], + "AbortController": [ + "" + ], + "AbsoluteOrientationSensor": [ + "" + ], + "Accelerometer": [ + "" + ], + "AudioDecoder": [ + "", + 1 + ], + "AudioEncoder": [ + "", + 1 + ], + "AudioWorklet": [], + "BatteryManager": [], + "Cache": [], + "CacheStorage": [], + "Clipboard": [], + "ClipboardItem": [ + "", + 1 + ], + "CookieChangeEvent": [ + "", + 1 + ], + "CookieStore": [], + "CookieStoreManager": [], + "Credential": [], + "CredentialsContainer": [], + "CryptoKey": [], + "DeviceMotionEvent": [ + "", + 1 + ], + "DeviceMotionEventAcceleration": [], + "DeviceMotionEventRotationRate": [], + "DeviceOrientationEvent": [ + "", + 1 + ], + "FederatedCredential": [ + "", + 1 + ], + "GPU": [], + "GPUAdapter": [], + "GPUAdapterInfo": [], + "GPUBindGroup": [], + "GPUBindGroupLayout": [], + "GPUBuffer": [], + "GPUCanvasContext": [], + "GPUCommandBuffer": [], + "GPUCommandEncoder": [], + "GPUCompilationInfo": [], + "GPUCompilationMessage": [], + "GPUComputePassEncoder": [], + "GPUComputePipeline": [], + "GPUDevice": [], + "GPUDeviceLostInfo": [], + "GPUError": [], + "GPUExternalTexture": [], + "GPUInternalError": [ + "", + 1 + ], + "GPUOutOfMemoryError": [ + "", + 1 + ], + "GPUPipelineError": [ + "", + 1 + ], + "GPUPipelineLayout": [], + "GPUQuerySet": [], + "GPUQueue": [], + "GPURenderBundle": [], + "GPURenderBundleEncoder": [], + "GPURenderPassEncoder": [], + "GPURenderPipeline": [], + "GPUSampler": [], + "GPUShaderModule": [], + "GPUSupportedFeatures": [], + "GPUSupportedLimits": [], + "GPUTexture": [], + "GPUTextureView": [], + "GPUUncapturedErrorEvent": [ + "" + ], + "GPUValidationError": [ + "", + 1 + ], + "GravitySensor": [ + "" + ], + "Gyroscope": [ + "" + ], + "IdleDetector": [ + "" + ], + "ImageDecoder": [ + "", + 1 + ], + "ImageTrack": [], + "ImageTrackList": [], + "Keyboard": [], + "KeyboardLayoutMap": [], + "LinearAccelerationSensor": [ + "" + ], + "Lock": [], + "LockManager": [], + "MIDIAccess": [], + "MIDIConnectionEvent": [ + "", + 1 + ], + "MIDIInput": [], + "MIDIInputMap": [], + "MIDIMessageEvent": [ + "", + 1 + ], + "MIDIOutput": [], + "MIDIOutputMap": [], + "MIDIPort": [], + "MediaDeviceInfo": [], + "MediaDevices": [], + "MediaKeyMessageEvent": [ + "" + ], + "MediaKeySession": [], + "MediaKeyStatusMap": [], + "MediaKeySystemAccess": [], + "MediaKeys": [], + "NavigationPreloadManager": [], + "NavigatorManagedData": [], + "OrientationSensor": [], + "PasswordCredential": [ + "", + 1 + ], + "RelativeOrientationSensor": [ + "" + ], + "ScreenDetailed": [], + "ScreenDetails": [], + "Sensor": [], + "SensorErrorEvent": [ + "" + ], + "ServiceWorker": [], + "ServiceWorkerContainer": [], + "ServiceWorkerRegistration": [], + "StorageManager": [], + "SubtleCrypto": [], + "VideoDecoder": [ + "", + 1 + ], + "VideoEncoder": [ + "", + 1 + ], + "VirtualKeyboard": [], + "WGSLLanguageFeatures": [], + "WebTransport": [ + "", + 1 + ], + "WebTransportBidirectionalStream": [], + "WebTransportDatagramDuplexStream": [], + "WebTransportError": [ + "" + ], + "Worklet": [], + "XRDOMOverlayState": [], + "XRLayer": [], + "XRWebGLBinding": [ + "" + ], + "AuthenticatorAssertionResponse": [], + "AuthenticatorAttestationResponse": [], + "AuthenticatorResponse": [], + "PublicKeyCredential": [], + "Bluetooth": [], + "BluetoothCharacteristicProperties": [], + "BluetoothDevice": [], + "BluetoothRemoteGATTCharacteristic": [], + "BluetoothRemoteGATTDescriptor": [], + "BluetoothRemoteGATTServer": [], + "BluetoothRemoteGATTService": [], + "CaptureController": [ + "" + ], + "DocumentPictureInPicture": [], + "EyeDropper": [ + "" + ], + "FileSystemDirectoryHandle": [], + "FileSystemFileHandle": [], + "FileSystemHandle": [], + "FileSystemWritableFileStream": [], + "FontData": [], + "FragmentDirective": [], + "HID": [], + "HIDConnectionEvent": [ + "" + ], + "HIDDevice": [], + "HIDInputReportEvent": [], + "IdentityCredential": [], + "IdentityProvider": [], + "IdentityCredentialError": [ + "" + ], + "LaunchParams": [], + "LaunchQueue": [], + "NavigatorLogin": [], + "NotRestoredReasonDetails": [], + "NotRestoredReasons": [], + "OTPCredential": [], + "PaymentAddress": [], + "PaymentRequest": [ + "", + 1 + ], + "PaymentRequestUpdateEvent": [ + "", + 1 + ], + "PaymentResponse": [], + "PaymentManager": [], + "PaymentMethodChangeEvent": [ + "", + 1 + ], + "Presentation": [], + "PresentationAvailability": [], + "PresentationConnection": [], + "PresentationConnectionAvailableEvent": [ + "" + ], + "PresentationConnectionCloseEvent": [ + "" + ], + "PresentationConnectionList": [], + "PresentationReceiver": [], + "PresentationRequest": [ + "", + 1 + ], + "PressureObserver": [ + "", + 1 + ], + "PressureRecord": [], + "ProtectedAudience": [], + "Serial": [], + "SerialPort": [], + "StorageBucket": [], + "StorageBucketManager": [], + "USB": [], + "USBAlternateInterface": [ + "" + ], + "USBConfiguration": [ + "" + ], + "USBConnectionEvent": [ + "" + ], + "USBDevice": [], + "USBEndpoint": [ + "" + ], + "USBInTransferResult": [ + "", + 1 + ], + "USBInterface": [ + "" + ], + "USBIsochronousInTransferPacket": [ + "", + 1 + ], + "USBIsochronousInTransferResult": [ + "", + 1 + ], + "USBIsochronousOutTransferPacket": [ + "", + 1 + ], + "USBIsochronousOutTransferResult": [ + "", + 1 + ], + "USBOutTransferResult": [ + "", + 1 + ], + "WakeLock": [], + "WakeLockSentinel": [], + "XRAnchor": [], + "XRAnchorSet": [], + "XRBoundedReferenceSpace": [], + "XRCPUDepthInformation": [], + "XRCamera": [], + "XRDepthInformation": [], + "XRFrame": [], + "XRHitTestResult": [], + "XRHitTestSource": [], + "XRInputSource": [], + "XRInputSourceArray": [], + "XRInputSourceEvent": [ + "" + ], + "XRInputSourcesChangeEvent": [ + "" + ], + "XRLightEstimate": [], + "XRLightProbe": [], + "XRPose": [], + "XRRay": [ + "" + ], + "XRReferenceSpace": [], + "XRReferenceSpaceEvent": [ + "" + ], + "XRRenderState": [], + "XRRigidTransform": [ + "" + ], + "XRSession": [], + "XRSessionEvent": [ + "" + ], + "XRSpace": [], + "XRSystem": [], + "XRTransientInputHitTestResult": [], + "XRTransientInputHitTestSource": [], + "XRView": [], + "XRViewerPose": [], + "XRViewport": [], + "XRWebGLDepthInformation": [], + "XRWebGLLayer": [ + "" + ], + "XRHand": [], + "XRJointPose": [], + "XRJointSpace": [], + "BackgroundFetchManager": [], + "BackgroundFetchRecord": [], + "BackgroundFetchRegistration": [], + "BluetoothUUID": [], + "CSSMarginRule": [], + "CSSNestedDeclarations": [], + "CSSViewTransitionRule": [], + "CaretPosition": [], + "ChapterInformation": [], + "CropTarget": [], + "DocumentPictureInPictureEvent": [ + "" + ], + "Fence": [], + "FencedFrameConfig": [], + "HTMLFencedFrameElement": [ + "" + ], + "MediaMetadata": [ + "" + ], + "MediaSession": [], + "NavigationActivation": [], + "Notification": [ + "", + 1 + ], + "PageRevealEvent": [ + "", + 1 + ], + "PageSwapEvent": [ + "", + 1 + ], + "PerformanceLongAnimationFrameTiming": [], + "PerformanceScriptTiming": [], + "PeriodicSyncManager": [], + "PermissionStatus": [], + "Permissions": [], + "PushManager": [], + "PushSubscription": [], + "PushSubscriptionOptions": [], + "RTCDataChannel": [], + "RemotePlayback": [], + "ScrollTimeline": [ + "" + ], + "ViewTimeline": [ + "" + ], + "SharedStorage": [], + "SharedStorageWorklet": [], + "SharedWorker": [ + "", + 1 + ], + "SnapEvent": [], + "SpeechSynthesis": [], + "SpeechSynthesisErrorEvent": [ + "" + ], + "SpeechSynthesisEvent": [ + "" + ], + "SpeechSynthesisUtterance": [ + "" + ], + "SpeechSynthesisVoice": [], + "ViewTransitionTypeSet": [], + "WebSocketError": [ + "" + ], + "WebSocketStream": [ + "", + 1 + ], + "SpeechGrammar": [ + "" + ], + "SpeechGrammarList": [ + "" + ], + "SpeechRecognition": [ + "" + ], + "SpeechRecognitionError": [ + "", + 1 + ], + "SpeechRecognitionEvent": [ + "", + 1 + ] + }, + worker_ctr_init: { + "WorkerNavigator": [], + "WorkerLocation": [], + "WorkerGlobalScope": [], + "FileReaderSync": [""], + "DedicatedWorkerGlobalScope": [], + "FileSystemSyncAccessHandle": [] + }, + proto: ["FontFaceSet", "DeprecatedStorageInfo", "StyleMedia", "MemoryInfo", "DeprecatedStorageQuota", "Database", "WebAssembly.Module", "WebAssembly.Instance", "WebAssembly.Table", "WebAssembly.Memory", "WebAssembly.Global", "WebAssembly.Tag", "WebAssembly.Exception"], style: ["accentColor", "additiveSymbols", "alignContent", "alignItems", "alignSelf", "alignmentBaseline", "all", "animation", "animationDelay", "animationDirection", "animationDuration", "animationFillMode", "animationIterationCount", "animationName", "animationPlayState", "animationTimingFunction", "appRegion", "appearance", "ascentOverride", "aspectRatio", "backdropFilter", "backfaceVisibility", "background", "backgroundAttachment", "backgroundBlendMode", "backgroundClip", "backgroundColor", "backgroundImage", "backgroundOrigin", "backgroundPosition", "backgroundPositionX", "backgroundPositionY", "backgroundRepeat", "backgroundRepeatX", "backgroundRepeatY", "backgroundSize", "basePalette", "baselineShift", "blockSize", "border", "borderBlock", "borderBlockColor", "borderBlockEnd", "borderBlockEndColor", "borderBlockEndStyle", "borderBlockEndWidth", "borderBlockStart", "borderBlockStartColor", "borderBlockStartStyle", "borderBlockStartWidth", "borderBlockStyle", "borderBlockWidth", "borderBottom", "borderBottomColor", "borderBottomLeftRadius", "borderBottomRightRadius", "borderBottomStyle", "borderBottomWidth", "borderCollapse", "borderColor", "borderEndEndRadius", "borderEndStartRadius", "borderImage", "borderImageOutset", "borderImageRepeat", "borderImageSlice", "borderImageSource", "borderImageWidth", "borderInline", "borderInlineColor", "borderInlineEnd", "borderInlineEndColor", "borderInlineEndStyle", "borderInlineEndWidth", "borderInlineStart", "borderInlineStartColor", "borderInlineStartStyle", "borderInlineStartWidth", "borderInlineStyle", "borderInlineWidth", "borderLeft", "borderLeftColor", "borderLeftStyle", "borderLeftWidth", "borderRadius", "borderRight", "borderRightColor", "borderRightStyle", "borderRightWidth", "borderSpacing", "borderStartEndRadius", "borderStartStartRadius", "borderStyle", "borderTop", "borderTopColor", "borderTopLeftRadius", "borderTopRightRadius", "borderTopStyle", "borderTopWidth", "borderWidth", "bottom", "boxShadow", "boxSizing", "breakAfter", "breakBefore", "breakInside", "bufferedRendering", "captionSide", "caretColor", "clear", "clip", "clipPath", "clipRule", "color", "colorInterpolation", "colorInterpolationFilters", "colorRendering", "colorScheme", "columnCount", "columnFill", "columnGap", "columnRule", "columnRuleColor", "columnRuleStyle", "columnRuleWidth", "columnSpan", "columnWidth", "columns", "contain", "containIntrinsicBlockSize", "containIntrinsicHeight", "containIntrinsicInlineSize", "containIntrinsicSize", "containIntrinsicWidth", "content", "contentVisibility", "counterIncrement", "counterReset", "counterSet", "cursor", "cx", "cy", "d", "descentOverride", "direction", "display", "dominantBaseline", "emptyCells", "fallback", "fill", "fillOpacity", "fillRule", "filter", "flex", "flexBasis", "flexDirection", "flexFlow", "flexGrow", "flexShrink", "flexWrap", "float", "floodColor", "floodOpacity", "font", "fontDisplay", "fontFamily", "fontFeatureSettings", "fontKerning", "fontOpticalSizing", "fontPalette", "fontSize", "fontStretch", "fontStyle", "fontSynthesis", "fontSynthesisSmallCaps", "fontSynthesisStyle", "fontSynthesisWeight", "fontVariant", "fontVariantCaps", "fontVariantEastAsian", "fontVariantLigatures", "fontVariantNumeric", "fontVariationSettings", "fontWeight", "forcedColorAdjust", "gap", "grid", "gridArea", "gridAutoColumns", "gridAutoFlow", "gridAutoRows", "gridColumn", "gridColumnEnd", "gridColumnGap", "gridColumnStart", "gridGap", "gridRow", "gridRowEnd", "gridRowGap", "gridRowStart", "gridTemplate", "gridTemplateAreas", "gridTemplateColumns", "gridTemplateRows", "height", "hyphens", "imageOrientation", "imageRendering", "inherits", "initialValue", "inlineSize", "inset", "insetBlock", "insetBlockEnd", "insetBlockStart", "insetInline", "insetInlineEnd", "insetInlineStart", "isolation", "justifyContent", "justifyItems", "justifySelf", "left", "letterSpacing", "lightingColor", "lineBreak", "lineGapOverride", "lineHeight", "listStyle", "listStyleImage", "listStylePosition", "listStyleType", "margin", "marginBlock", "marginBlockEnd", "marginBlockStart", "marginBottom", "marginInline", "marginInlineEnd", "marginInlineStart", "marginLeft", "marginRight", "marginTop", "marker", "markerEnd", "markerMid", "markerStart", "mask", "maskType", "maxBlockSize", "maxHeight", "maxInlineSize", "maxWidth", "maxZoom", "minBlockSize", "minHeight", "minInlineSize", "minWidth", "minZoom", "mixBlendMode", "negative", "objectFit", "objectPosition", "offset", "offsetDistance", "offsetPath", "offsetRotate", "opacity", "order", "orientation", "orphans", "outline", "outlineColor", "outlineOffset", "outlineStyle", "outlineWidth", "overflow", "overflowAnchor", "overflowClipMargin", "overflowWrap", "overflowX", "overflowY", "overrideColors", "overscrollBehavior", "overscrollBehaviorBlock", "overscrollBehaviorInline", "overscrollBehaviorX", "overscrollBehaviorY", "pad", "padding", "paddingBlock", "paddingBlockEnd", "paddingBlockStart", "paddingBottom", "paddingInline", "paddingInlineEnd", "paddingInlineStart", "paddingLeft", "paddingRight", "paddingTop", "page", "pageBreakAfter", "pageBreakBefore", "pageBreakInside", "pageOrientation", "paintOrder", "perspective", "perspectiveOrigin", "placeContent", "placeItems", "placeSelf", "pointerEvents", "position", "prefix", "quotes", "r", "range", "resize", "right", "rowGap", "rubyPosition", "rx", "ry", "scrollBehavior", "scrollMargin", "scrollMarginBlock", "scrollMarginBlockEnd", "scrollMarginBlockStart", "scrollMarginBottom", "scrollMarginInline", "scrollMarginInlineEnd", "scrollMarginInlineStart", "scrollMarginLeft", "scrollMarginRight", "scrollMarginTop", "scrollPadding", "scrollPaddingBlock", "scrollPaddingBlockEnd", "scrollPaddingBlockStart", "scrollPaddingBottom", "scrollPaddingInline", "scrollPaddingInlineEnd", "scrollPaddingInlineStart", "scrollPaddingLeft", "scrollPaddingRight", "scrollPaddingTop", "scrollSnapAlign", "scrollSnapStop", "scrollSnapType", "scrollbarGutter", "shapeImageThreshold", "shapeMargin", "shapeOutside", "shapeRendering", "size", "sizeAdjust", "speak", "speakAs", "src", "stopColor", "stopOpacity", "stroke", "strokeDasharray", "strokeDashoffset", "strokeLinecap", "strokeLinejoin", "strokeMiterlimit", "strokeOpacity", "strokeWidth", "suffix", "symbols", "syntax", "system", "tabSize", "tableLayout", "textAlign", "textAlignLast", "textAnchor", "textCombineUpright", "textDecoration", "textDecorationColor", "textDecorationLine", "textDecorationSkipInk", "textDecorationStyle", "textDecorationThickness", "textEmphasis", "textEmphasisColor", "textEmphasisPosition", "textEmphasisStyle", "textIndent", "textOrientation", "textOverflow", "textRendering", "textShadow", "textSizeAdjust", "textTransform", "textUnderlineOffset", "textUnderlinePosition", "top", "touchAction", "transform", "transformBox", "transformOrigin", "transformStyle", "transition", "transitionDelay", "transitionDuration", "transitionProperty", "transitionTimingFunction", "unicodeBidi", "unicodeRange", "userSelect", "userZoom", "vectorEffect", "verticalAlign", "visibility", "webkitAlignContent", "webkitAlignItems", "webkitAlignSelf", "webkitAnimation", "webkitAnimationDelay", "webkitAnimationDirection", "webkitAnimationDuration", "webkitAnimationFillMode", "webkitAnimationIterationCount", "webkitAnimationName", "webkitAnimationPlayState", "webkitAnimationTimingFunction", "webkitAppRegion", "webkitAppearance", "webkitBackfaceVisibility", "webkitBackgroundClip", "webkitBackgroundOrigin", "webkitBackgroundSize", "webkitBorderAfter", "webkitBorderAfterColor", "webkitBorderAfterStyle", "webkitBorderAfterWidth", "webkitBorderBefore", "webkitBorderBeforeColor", "webkitBorderBeforeStyle", "webkitBorderBeforeWidth", "webkitBorderBottomLeftRadius", "webkitBorderBottomRightRadius", "webkitBorderEnd", "webkitBorderEndColor", "webkitBorderEndStyle", "webkitBorderEndWidth", "webkitBorderHorizontalSpacing", "webkitBorderImage", "webkitBorderRadius", "webkitBorderStart", "webkitBorderStartColor", "webkitBorderStartStyle", "webkitBorderStartWidth", "webkitBorderTopLeftRadius", "webkitBorderTopRightRadius", "webkitBorderVerticalSpacing", "webkitBoxAlign", "webkitBoxDecorationBreak", "webkitBoxDirection", "webkitBoxFlex", "webkitBoxOrdinalGroup", "webkitBoxOrient", "webkitBoxPack", "webkitBoxReflect", "webkitBoxShadow", "webkitBoxSizing", "webkitClipPath", "webkitColumnBreakAfter", "webkitColumnBreakBefore", "webkitColumnBreakInside", "webkitColumnCount", "webkitColumnGap", "webkitColumnRule", "webkitColumnRuleColor", "webkitColumnRuleStyle", "webkitColumnRuleWidth", "webkitColumnSpan", "webkitColumnWidth", "webkitColumns", "webkitFilter", "webkitFlex", "webkitFlexBasis", "webkitFlexDirection", "webkitFlexFlow", "webkitFlexGrow", "webkitFlexShrink", "webkitFlexWrap", "webkitFontFeatureSettings", "webkitFontSmoothing", "webkitHighlight", "webkitHyphenateCharacter", "webkitJustifyContent", "webkitLineBreak", "webkitLineClamp", "webkitLocale", "webkitLogicalHeight", "webkitLogicalWidth", "webkitMarginAfter", "webkitMarginBefore", "webkitMarginEnd", "webkitMarginStart", "webkitMask", "webkitMaskBoxImage", "webkitMaskBoxImageOutset", "webkitMaskBoxImageRepeat", "webkitMaskBoxImageSlice", "webkitMaskBoxImageSource", "webkitMaskBoxImageWidth", "webkitMaskClip", "webkitMaskComposite", "webkitMaskImage", "webkitMaskOrigin", "webkitMaskPosition", "webkitMaskPositionX", "webkitMaskPositionY", "webkitMaskRepeat", "webkitMaskRepeatX", "webkitMaskRepeatY", "webkitMaskSize", "webkitMaxLogicalHeight", "webkitMaxLogicalWidth", "webkitMinLogicalHeight", "webkitMinLogicalWidth", "webkitOpacity", "webkitOrder", "webkitPaddingAfter", "webkitPaddingBefore", "webkitPaddingEnd", "webkitPaddingStart", "webkitPerspective", "webkitPerspectiveOrigin", "webkitPerspectiveOriginX", "webkitPerspectiveOriginY", "webkitPrintColorAdjust", "webkitRtlOrdering", "webkitRubyPosition", "webkitShapeImageThreshold", "webkitShapeMargin", "webkitShapeOutside", "webkitTapHighlightColor", "webkitTextCombine", "webkitTextDecorationsInEffect", "webkitTextEmphasis", "webkitTextEmphasisColor", "webkitTextEmphasisPosition", "webkitTextEmphasisStyle", "webkitTextFillColor", "webkitTextOrientation", "webkitTextSecurity", "webkitTextSizeAdjust", "webkitTextStroke", "webkitTextStrokeColor", "webkitTextStrokeWidth", "webkitTransform", "webkitTransformOrigin", "webkitTransformOriginX", "webkitTransformOriginY", "webkitTransformOriginZ", "webkitTransformStyle", "webkitTransition", "webkitTransitionDelay", "webkitTransitionDuration", "webkitTransitionProperty", "webkitTransitionTimingFunction", "webkitUserDrag", "webkitUserModify", "webkitUserSelect", "webkitWritingMode", "whiteSpace", "widows", "width", "willChange", "wordBreak", "wordSpacing", "wordWrap", "writingMode", "x", "y", "zIndex", "zoom"], diff --git a/env/HTMLCanvasElement.js b/env/HTMLCanvasElement.js new file mode 100644 index 0000000..ca6d470 --- /dev/null +++ b/env/HTMLCanvasElement.js @@ -0,0 +1,21 @@ +this.HTMLCanvasElement_get_width = function () { + // 非法调用 + let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + // 获取到jsdom对象 + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + if (cbb_wf.is_log) { + // 函数没补, 原来的静态代码, 没有动过 + let info = ""; + if (!result) { + info = ". 暂时未处理" + } + console.log("[*] HTMLCanvasElement_get_width, this =>", this + '', ", result =>", result + '', info); + } + return result; +} \ No newline at end of file diff --git a/main.js b/main.js index 6c2f552..c6b0809 100644 --- a/main.js +++ b/main.js @@ -105,7 +105,7 @@ cbb_wf = { is_log: true, is_log_window: false, console: console, - stack_str: ["(node:internal/", " at my_api.stack_intercept", 'D:\\class\\class-sand-box'], + stack_str: ["(node:internal/", " at my_api.stack_intercept", 'D:\\', "cbb_wf."], // 替换堆栈字符串 TextDecoder: TextDecoder, TextEncoder: TextEncoder, atob: atob, @@ -122,490 +122,969 @@ cbb_wf = { global.ctr = {}; // 过非法调用检测也会用到这个设置__proto__ -(function () { - let func = ["Option", "Image", "Audio", "XSLTProcessor", "XPathResult", "XPathExpression", "XPathEvaluator", "XMLSerializer", "XMLHttpRequestUpload", "XMLHttpRequestEventTarget", "XMLHttpRequest", "XMLDocument", "WritableStreamDefaultWriter", "WritableStreamDefaultController", "WritableStream", "Worker", "Window", "WheelEvent", "WebSocket", "WebGLVertexArrayObject", "WebGLUniformLocation", "WebGLTransformFeedback", "WebGLTexture", "WebGLSync", "WebGLShaderPrecisionFormat", "WebGLShader", "WebGLSampler", "WebGLRenderingContext", "WebGLRenderbuffer", "WebGLQuery", "WebGLProgram", "WebGLFramebuffer", "WebGLContextEvent", "WebGLBuffer", "WebGLActiveInfo", "WebGL2RenderingContext", "WaveShaperNode", "VisualViewport", "VirtualKeyboardGeometryChangeEvent", "ValidityState", "VTTCue", "UserActivation", "URLSearchParams", "URLPattern", "URL", "UIEvent", "TrustedTypePolicyFactory", "TrustedTypePolicy", "TrustedScriptURL", "TrustedScript", "TrustedHTML", "TreeWalker", "TransitionEvent", "TransformStreamDefaultController", "TransformStream", "TrackEvent", "TouchList", "TouchEvent", "Touch", "ToggleEvent", "TimeRanges", "TextTrackList", "TextTrackCueList", "TextTrackCue", "TextTrack", "TextMetrics", "TextEvent", "TextEncoderStream", "TextEncoder", "TextDecoderStream", "TextDecoder", "Text", "TaskSignal", "TaskPriorityChangeEvent", "TaskController", "TaskAttributionTiming", "SyncManager", "SubmitEvent", "StyleSheetList", "StyleSheet", "StylePropertyMapReadOnly", "StylePropertyMap", "StorageEvent", "Storage", "StereoPannerNode", "StaticRange", "SourceBufferList", "SourceBuffer", "ShadowRoot", "Selection", "SecurityPolicyViolationEvent", "ScriptProcessorNode", "ScreenOrientation", "Screen", "Scheduling", "Scheduler", "SVGViewElement", "SVGUseElement", "SVGUnitTypes", "SVGTransformList", "SVGTransform", "SVGTitleElement", "SVGTextPositioningElement", "SVGTextPathElement", "SVGTextElement", "SVGTextContentElement", "SVGTSpanElement", "SVGSymbolElement", "SVGSwitchElement", "SVGStyleElement", "SVGStringList", "SVGStopElement", "SVGSetElement", "SVGScriptElement", "SVGSVGElement", "SVGRectElement", "SVGRect", "SVGRadialGradientElement", "SVGPreserveAspectRatio", "SVGPolylineElement", "SVGPolygonElement", "SVGPointList", "SVGPoint", "SVGPatternElement", "SVGPathElement", "SVGNumberList", "SVGNumber", "SVGMetadataElement", "SVGMatrix", "SVGMaskElement", "SVGMarkerElement", "SVGMPathElement", "SVGLinearGradientElement", "SVGLineElement", "SVGLengthList", "SVGLength", "SVGImageElement", "SVGGraphicsElement", "SVGGradientElement", "SVGGeometryElement", "SVGGElement", "SVGForeignObjectElement", "SVGFilterElement", "SVGFETurbulenceElement", "SVGFETileElement", "SVGFESpotLightElement", "SVGFESpecularLightingElement", "SVGFEPointLightElement", "SVGFEOffsetElement", "SVGFEMorphologyElement", "SVGFEMergeNodeElement", "SVGFEMergeElement", "SVGFEImageElement", "SVGFEGaussianBlurElement", "SVGFEFuncRElement", "SVGFEFuncGElement", "SVGFEFuncBElement", "SVGFEFuncAElement", "SVGFEFloodElement", "SVGFEDropShadowElement", "SVGFEDistantLightElement", "SVGFEDisplacementMapElement", "SVGFEDiffuseLightingElement", "SVGFEConvolveMatrixElement", "SVGFECompositeElement", "SVGFEComponentTransferElement", "SVGFEColorMatrixElement", "SVGFEBlendElement", "SVGEllipseElement", "SVGElement", "SVGDescElement", "SVGDefsElement", "SVGComponentTransferFunctionElement", "SVGClipPathElement", "SVGCircleElement", "SVGAnimationElement", "SVGAnimatedTransformList", "SVGAnimatedString", "SVGAnimatedRect", "SVGAnimatedPreserveAspectRatio", "SVGAnimatedNumberList", "SVGAnimatedNumber", "SVGAnimatedLengthList", "SVGAnimatedLength", "SVGAnimatedInteger", "SVGAnimatedEnumeration", "SVGAnimatedBoolean", "SVGAnimatedAngle", "SVGAnimateTransformElement", "SVGAnimateMotionElement", "SVGAnimateElement", "SVGAngle", "SVGAElement", "Response", "ResizeObserverSize", "ResizeObserverEntry", "ResizeObserver", "Request", "ReportingObserver", "ReadableStreamDefaultReader", "ReadableStreamDefaultController", "ReadableStreamBYOBRequest", "ReadableStreamBYOBReader", "ReadableStream", "ReadableByteStreamController", "Range", "RadioNodeList", "RTCTrackEvent", "RTCStatsReport", "RTCSessionDescription", "RTCSctpTransport", "RTCRtpTransceiver", "RTCRtpSender", "RTCRtpReceiver", "RTCPeerConnectionIceEvent", "RTCPeerConnectionIceErrorEvent", "RTCPeerConnection", "RTCIceTransport", "RTCIceCandidate", "RTCErrorEvent", "RTCError", "RTCEncodedVideoFrame", "RTCEncodedAudioFrame", "RTCDtlsTransport", "RTCDataChannelEvent", "RTCDataChannel", "RTCDTMFToneChangeEvent", "RTCDTMFSender", "RTCCertificate", "PromiseRejectionEvent", "ProgressEvent", "Profiler", "ProcessingInstruction", "PopStateEvent", "PointerEvent", "PluginArray", "Plugin", "PictureInPictureWindow", "PictureInPictureEvent", "PeriodicWave", "PerformanceTiming", "PerformanceServerTiming", "PerformanceResourceTiming", "PerformancePaintTiming", "PerformanceObserverEntryList", "PerformanceObserver", "PerformanceNavigationTiming", "PerformanceNavigation", "PerformanceMeasure", "PerformanceMark", "PerformanceLongTaskTiming", "PerformanceEventTiming", "PerformanceEntry", "PerformanceElementTiming", "Performance", "Path2D", "PannerNode", "PageTransitionEvent", "OverconstrainedError", "OscillatorNode", "OffscreenCanvasRenderingContext2D", "OffscreenCanvas", "OfflineAudioContext", "OfflineAudioCompletionEvent", "NodeList", "NodeIterator", "Node", "NetworkInformation", "Navigator", "NavigationTransition", "NavigationHistoryEntry", "NavigationDestination", "NavigationCurrentEntryChangeEvent", "Navigation", "NavigateEvent", "NamedNodeMap", "MutationRecord", "MutationObserver", "MouseEvent", "MimeTypeArray", "MimeType", "MessagePort", "MessageEvent", "MessageChannel", "MediaStreamTrackProcessor", "MediaStreamTrackGenerator", "MediaStreamTrackEvent", "MediaStreamTrack", "MediaStreamEvent", "MediaStreamAudioSourceNode", "MediaStreamAudioDestinationNode", "MediaStream", "MediaSourceHandle", "MediaSource", "MediaRecorder", "MediaQueryListEvent", "MediaQueryList", "MediaList", "MediaError", "MediaEncryptedEvent", "MediaElementAudioSourceNode", "MediaCapabilities", "MathMLElement", "Location", "LayoutShiftAttribution", "LayoutShift", "LargestContentfulPaint", "KeyframeEffect", "KeyboardEvent", "IntersectionObserverEntry", "IntersectionObserver", "InputEvent", "InputDeviceInfo", "InputDeviceCapabilities", "ImageData", "ImageCapture", "ImageBitmapRenderingContext", "ImageBitmap", "IdleDeadline", "IIRFilterNode", "IDBVersionChangeEvent", "IDBTransaction", "IDBRequest", "IDBOpenDBRequest", "IDBObjectStore", "IDBKeyRange", "IDBIndex", "IDBFactory", "IDBDatabase", "IDBCursorWithValue", "IDBCursor", "History", "Headers", "HashChangeEvent", "HTMLVideoElement", "HTMLUnknownElement", "HTMLUListElement", "HTMLTrackElement", "HTMLTitleElement", "HTMLTimeElement", "HTMLTextAreaElement", "HTMLTemplateElement", "HTMLTableSectionElement", "HTMLTableRowElement", "HTMLTableElement", "HTMLTableColElement", "HTMLTableCellElement", "HTMLTableCaptionElement", "HTMLStyleElement", "HTMLSpanElement", "HTMLSourceElement", "HTMLSlotElement", "HTMLSelectElement", "HTMLScriptElement", "HTMLQuoteElement", "HTMLProgressElement", "HTMLPreElement", "HTMLPictureElement", "HTMLParamElement", "HTMLParagraphElement", "HTMLOutputElement", "HTMLOptionsCollection", "HTMLOptionElement", "HTMLOptGroupElement", "HTMLObjectElement", "HTMLOListElement", "HTMLModElement", "HTMLMeterElement", "HTMLMetaElement", "HTMLMenuElement", "HTMLMediaElement", "HTMLMarqueeElement", "HTMLMapElement", "HTMLLinkElement", "HTMLLegendElement", "HTMLLabelElement", "HTMLLIElement", "HTMLInputElement", "HTMLImageElement", "HTMLIFrameElement", "HTMLHtmlElement", "HTMLHeadingElement", "HTMLHeadElement", "HTMLHRElement", "HTMLFrameSetElement", "HTMLFrameElement", "HTMLFormElement", "HTMLFormControlsCollection", "HTMLFontElement", "HTMLFieldSetElement", "HTMLEmbedElement", "HTMLElement", "HTMLDocument", "HTMLDivElement", "HTMLDirectoryElement", "HTMLDialogElement", "HTMLDetailsElement", "HTMLDataListElement", "HTMLDataElement", "HTMLDListElement", "HTMLCollection", "HTMLCanvasElement", "HTMLButtonElement", "HTMLBodyElement", "HTMLBaseElement", "HTMLBRElement", "HTMLAudioElement", "HTMLAreaElement", "HTMLAnchorElement", "HTMLAllCollection", "GeolocationPositionError", "GeolocationPosition", "GeolocationCoordinates", "Geolocation", "GamepadHapticActuator", "GamepadEvent", "GamepadButton", "Gamepad", "GainNode", "FormDataEvent", "FormData", "FontFaceSetLoadEvent", "FontFace", "FocusEvent", "FileReader", "FileList", "File", "FeaturePolicy", "External", "EventTarget", "EventSource", "EventCounts", "Event", "ErrorEvent", "ElementInternals", "Element", "DynamicsCompressorNode", "DragEvent", "DocumentType", "DocumentFragment", "Document", "DelayNode", "DecompressionStream", "DataTransferItemList", "DataTransferItem", "DataTransfer", "DOMTokenList", "DOMStringMap", "DOMStringList", "DOMRectReadOnly", "DOMRectList", "DOMRect", "DOMQuad", "DOMPointReadOnly", "DOMPoint", "DOMParser", "DOMMatrixReadOnly", "DOMMatrix", "DOMImplementation", "DOMException", "DOMError", "CustomStateSet", "CustomEvent", "CustomElementRegistry", "Crypto", "CountQueuingStrategy", "ConvolverNode", "ConstantSourceNode", "CompressionStream", "CompositionEvent", "Comment", "CloseEvent", "ClipboardEvent", "CharacterData", "ChannelSplitterNode", "ChannelMergerNode", "CanvasRenderingContext2D", "CanvasPattern", "CanvasGradient", "CanvasCaptureMediaStreamTrack", "CSSVariableReferenceValue", "CSSUnparsedValue", "CSSUnitValue", "CSSTranslate", "CSSTransformValue", "CSSTransformComponent", "CSSSupportsRule", "CSSStyleValue", "CSSStyleSheet", "CSSStyleRule", "CSSStyleDeclaration", "CSSSkewY", "CSSSkewX", "CSSSkew", "CSSScale", "CSSRuleList", "CSSRule", "CSSRotate", "CSSPropertyRule", "CSSPositionValue", "CSSPerspective", "CSSPageRule", "CSSNumericValue", "CSSNumericArray", "CSSNamespaceRule", "CSSMediaRule", "CSSMatrixComponent", "CSSMathValue", "CSSMathSum", "CSSMathProduct", "CSSMathNegate", "CSSMathMin", "CSSMathMax", "CSSMathInvert", "CSSMathClamp", "CSSLayerStatementRule", "CSSLayerBlockRule", "CSSKeywordValue", "CSSKeyframesRule", "CSSKeyframeRule", "CSSImportRule", "CSSImageValue", "CSSGroupingRule", "CSSFontPaletteValuesRule", "CSSFontFaceRule", "CSSCounterStyleRule", "CSSContainerRule", "CSSConditionRule", "CDATASection", "ByteLengthQueuingStrategy", "BroadcastChannel", "BlobEvent", "Blob", "BiquadFilterNode", "BeforeUnloadEvent", "BeforeInstallPromptEvent", "BaseAudioContext", "BarProp", "AudioWorkletNode", "AudioSinkInfo", "AudioScheduledSourceNode", "AudioProcessingEvent", "AudioParamMap", "AudioParam", "AudioNode", "AudioListener", "AudioDestinationNode", "AudioContext", "AudioBufferSourceNode", "AudioBuffer", "Attr", "AnimationEvent", "AnimationEffect", "Animation", "AnalyserNode", "AbstractRange", "AbortSignal", "AbortController", "AbsoluteOrientationSensor", "Accelerometer", "AudioWorklet", "BatteryManager", "Cache", "CacheStorage", "Clipboard", "ClipboardItem", "CookieChangeEvent", "CookieStore", "CookieStoreManager", "Credential", "CredentialsContainer", "CryptoKey", "DeviceMotionEvent", "DeviceMotionEventAcceleration", "DeviceMotionEventRotationRate", "DeviceOrientationEvent", "FederatedCredential", "GPU", "GPUAdapter", "GPUAdapterInfo", "GPUBindGroup", "GPUBindGroupLayout", "GPUBuffer", "GPUCanvasContext", "GPUCommandBuffer", "GPUCommandEncoder", "GPUCompilationInfo", "GPUCompilationMessage", "GPUComputePassEncoder", "GPUComputePipeline", "GPUDevice", "GPUDeviceLostInfo", "GPUError", "GPUExternalTexture", "GPUInternalError", "GPUOutOfMemoryError", "GPUPipelineError", "GPUPipelineLayout", "GPUQuerySet", "GPUQueue", "GPURenderBundle", "GPURenderBundleEncoder", "GPURenderPassEncoder", "GPURenderPipeline", "GPUSampler", "GPUShaderModule", "GPUSupportedFeatures", "GPUSupportedLimits", "GPUTexture", "GPUTextureView", "GPUUncapturedErrorEvent", "GPUValidationError", "GravitySensor", "Gyroscope", "Keyboard", "KeyboardLayoutMap", "LinearAccelerationSensor", "Lock", "LockManager", "MIDIAccess", "MIDIConnectionEvent", "MIDIInput", "MIDIInputMap", "MIDIMessageEvent", "MIDIOutput", "MIDIOutputMap", "MIDIPort", "MediaDeviceInfo", "MediaDevices", "MediaKeyMessageEvent", "MediaKeySession", "MediaKeyStatusMap", "MediaKeySystemAccess", "MediaKeys", "NavigationPreloadManager", "NavigatorManagedData", "OrientationSensor", "PasswordCredential", "RelativeOrientationSensor", "Sanitizer", "ScreenDetailed", "ScreenDetails", "Sensor", "SensorErrorEvent", "ServiceWorker", "ServiceWorkerContainer", "ServiceWorkerRegistration", "StorageManager", "SubtleCrypto", "VirtualKeyboard", "WGSLLanguageFeatures", "WebTransport", "WebTransportBidirectionalStream", "WebTransportDatagramDuplexStream", "WebTransportError", "Worklet", "XRDOMOverlayState", "XRLayer", "XRWebGLBinding", "AudioData", "EncodedAudioChunk", "EncodedVideoChunk", "ImageTrack", "ImageTrackList", "VideoColorSpace", "VideoFrame", "AudioDecoder", "AudioEncoder", "ImageDecoder", "VideoDecoder", "VideoEncoder", "AuthenticatorAssertionResponse", "AuthenticatorAttestationResponse", "AuthenticatorResponse", "PublicKeyCredential", "Bluetooth", "BluetoothCharacteristicProperties", "BluetoothDevice", "BluetoothRemoteGATTCharacteristic", "BluetoothRemoteGATTDescriptor", "BluetoothRemoteGATTServer", "BluetoothRemoteGATTService", "CaptureController", "DocumentPictureInPicture", "EyeDropper", "Fence", "FencedFrameConfig", "HTMLFencedFrameElement", "FileSystemDirectoryHandle", "FileSystemFileHandle", "FileSystemHandle", "FileSystemWritableFileStream", "FontData", "FragmentDirective", "HID", "HIDConnectionEvent", "HIDDevice", "HIDInputReportEvent", "IdentityCredential", "IdentityProvider", "IdleDetector", "LaunchParams", "LaunchQueue", "OTPCredential", "PaymentAddress", "PaymentRequest", "PaymentResponse", "PaymentMethodChangeEvent", "Presentation", "PresentationAvailability", "PresentationConnection", "PresentationConnectionAvailableEvent", "PresentationConnectionCloseEvent", "PresentationConnectionList", "PresentationReceiver", "PresentationRequest", "Serial", "SerialPort", "SharedStorage", "SharedStorageWorklet", "USB", "USBAlternateInterface", "USBConfiguration", "USBConnectionEvent", "USBDevice", "USBEndpoint", "USBInTransferResult", "USBInterface", "USBIsochronousInTransferPacket", "USBIsochronousInTransferResult", "USBIsochronousOutTransferPacket", "USBIsochronousOutTransferResult", "USBOutTransferResult", "WakeLock", "WakeLockSentinel", "WindowControlsOverlay", "WindowControlsOverlayGeometryChangeEvent", "XRAnchor", "XRAnchorSet", "XRBoundedReferenceSpace", "XRCPUDepthInformation", "XRCamera", "XRDepthInformation", "XRFrame", "XRHitTestResult", "XRHitTestSource", "XRInputSource", "XRInputSourceArray", "XRInputSourceEvent", "XRInputSourcesChangeEvent", "XRLightEstimate", "XRLightProbe", "XRPose", "XRRay", "XRReferenceSpace", "XRReferenceSpaceEvent", "XRRenderState", "XRRigidTransform", "XRSession", "XRSessionEvent", "XRSpace", "XRSystem", "XRTransientInputHitTestResult", "XRTransientInputHitTestSource", "XRView", "XRViewerPose", "XRViewport", "XRWebGLDepthInformation", "XRWebGLLayer", "AnimationPlaybackEvent", "AnimationTimeline", "CSSAnimation", "CSSTransition", "DocumentTimeline", "BackgroundFetchManager", "BackgroundFetchRecord", "BackgroundFetchRegistration", "BluetoothUUID", "BrowserCaptureMediaStreamTrack", "CropTarget", "CSSScopeRule", "CSSStartingStyleRule", "ContentVisibilityAutoStateChangeEvent", "DelegatedInkTrailPresenter", "Ink", "DocumentPictureInPictureEvent", "Highlight", "HighlightRegistry", "MediaMetadata", "MediaSession", "MutationEvent", "NavigatorUAData", "Notification", "PaymentManager", "PaymentRequestUpdateEvent", "PeriodicSyncManager", "PermissionStatus", "Permissions", "PushManager", "PushSubscription", "PushSubscriptionOptions", "RemotePlayback", "ScrollTimeline", "ViewTimeline", "SharedWorker", "SpeechSynthesisErrorEvent", "SpeechSynthesisEvent", "SpeechSynthesisUtterance", "VideoPlaybackQuality", "ViewTransition", "VisibilityStateEntry"]; +!function () { + for (let i in config.ctr_init) { + global.ctr[i] = function () { + } + } + for (let i in config.worker_ctr_init) { + global.ctr[i] = function () { + } + } + config.proto.forEach(i => { + global.ctr[i] = function () { + } + }); - for (let c of func) { - this[c] = function () { } - } - this.Audio.prototype = this.HTMLAudioElement.prototype; - this.Image.prototype = this.HTMLImageElement.prototype; - this.Option.prototype = this.HTMLOptionElement.prototype; - this.XMLHttpRequestUpload.__proto__ = this.XMLHttpRequestEventTarget; - this.XMLHttpRequestUpload.prototype.__proto__ = this.XMLHttpRequestEventTarget.prototype; this.XMLHttpRequestEventTarget.__proto__ = this.EventTarget; - this.XMLHttpRequestEventTarget.prototype.__proto__ = this.EventTarget.prototype; this.XMLHttpRequest.__proto__ = this.XMLHttpRequestEventTarget; - this.XMLHttpRequest.prototype.__proto__ = this.XMLHttpRequestEventTarget.prototype; this.XMLDocument.__proto__ = this.Document; - this.XMLDocument.prototype.__proto__ = this.Document.prototype; this.Worker.__proto__ = this.EventTarget; - this.Worker.prototype.__proto__ = this.EventTarget.prototype; this.Window.__proto__ = this.EventTarget; - this.Window.prototype.__proto__ = this.EventTarget.prototype; this.WheelEvent.__proto__ = this.MouseEvent; - this.WheelEvent.prototype.__proto__ = this.MouseEvent.prototype; this.WebSocket.__proto__ = this.EventTarget; - this.WebSocket.prototype.__proto__ = this.EventTarget.prototype; this.WebGLContextEvent.__proto__ = this.Event; - this.WebGLContextEvent.prototype.__proto__ = this.Event.prototype; this.WaveShaperNode.__proto__ = this.AudioNode; - this.WaveShaperNode.prototype.__proto__ = this.AudioNode.prototype; this.VisualViewport.__proto__ = this.EventTarget; - this.VisualViewport.prototype.__proto__ = this.EventTarget.prototype; this.VirtualKeyboardGeometryChangeEvent.__proto__ = this.Event; - this.VirtualKeyboardGeometryChangeEvent.prototype.__proto__ = this.Event.prototype; this.VTTCue.__proto__ = this.TextTrackCue; - this.VTTCue.prototype.__proto__ = this.TextTrackCue.prototype; this.UIEvent.__proto__ = this.Event; - this.UIEvent.prototype.__proto__ = this.Event.prototype; this.TrustedTypePolicyFactory.__proto__ = this.EventTarget; - this.TrustedTypePolicyFactory.prototype.__proto__ = this.EventTarget.prototype; this.TransitionEvent.__proto__ = this.Event; - this.TransitionEvent.prototype.__proto__ = this.Event.prototype; this.TrackEvent.__proto__ = this.Event; - this.TrackEvent.prototype.__proto__ = this.Event.prototype; this.TouchEvent.__proto__ = this.UIEvent; - this.TouchEvent.prototype.__proto__ = this.UIEvent.prototype; this.ToggleEvent.__proto__ = this.Event; - this.ToggleEvent.prototype.__proto__ = this.Event.prototype; this.TextTrackList.__proto__ = this.EventTarget; - this.TextTrackList.prototype.__proto__ = this.EventTarget.prototype; this.TextTrackCue.__proto__ = this.EventTarget; - this.TextTrackCue.prototype.__proto__ = this.EventTarget.prototype; this.TextTrack.__proto__ = this.EventTarget; - this.TextTrack.prototype.__proto__ = this.EventTarget.prototype; this.TextEvent.__proto__ = this.UIEvent; - this.TextEvent.prototype.__proto__ = this.UIEvent.prototype; this.Text.__proto__ = this.CharacterData; - this.Text.prototype.__proto__ = this.CharacterData.prototype; this.TaskSignal.__proto__ = this.AbortSignal; - this.TaskSignal.prototype.__proto__ = this.AbortSignal.prototype; this.TaskPriorityChangeEvent.__proto__ = this.Event; - this.TaskPriorityChangeEvent.prototype.__proto__ = this.Event.prototype; this.TaskController.__proto__ = this.AbortController; - this.TaskController.prototype.__proto__ = this.AbortController.prototype; this.TaskAttributionTiming.__proto__ = this.PerformanceEntry; - this.TaskAttributionTiming.prototype.__proto__ = this.PerformanceEntry.prototype; this.SubmitEvent.__proto__ = this.Event; - this.SubmitEvent.prototype.__proto__ = this.Event.prototype; this.StylePropertyMap.__proto__ = this.StylePropertyMapReadOnly; - this.StylePropertyMap.prototype.__proto__ = this.StylePropertyMapReadOnly.prototype; this.StorageEvent.__proto__ = this.Event; - this.StorageEvent.prototype.__proto__ = this.Event.prototype; this.StereoPannerNode.__proto__ = this.AudioNode; - this.StereoPannerNode.prototype.__proto__ = this.AudioNode.prototype; this.StaticRange.__proto__ = this.AbstractRange; - this.StaticRange.prototype.__proto__ = this.AbstractRange.prototype; this.SourceBufferList.__proto__ = this.EventTarget; - this.SourceBufferList.prototype.__proto__ = this.EventTarget.prototype; this.SourceBuffer.__proto__ = this.EventTarget; - this.SourceBuffer.prototype.__proto__ = this.EventTarget.prototype; this.ShadowRoot.__proto__ = this.DocumentFragment; - this.ShadowRoot.prototype.__proto__ = this.DocumentFragment.prototype; this.SecurityPolicyViolationEvent.__proto__ = this.Event; - this.SecurityPolicyViolationEvent.prototype.__proto__ = this.Event.prototype; this.ScriptProcessorNode.__proto__ = this.AudioNode; - this.ScriptProcessorNode.prototype.__proto__ = this.AudioNode.prototype; this.ScreenOrientation.__proto__ = this.EventTarget; - this.ScreenOrientation.prototype.__proto__ = this.EventTarget.prototype; this.Screen.__proto__ = this.EventTarget; - this.Screen.prototype.__proto__ = this.EventTarget.prototype; this.SVGViewElement.__proto__ = this.SVGElement; - this.SVGViewElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGUseElement.__proto__ = this.SVGGraphicsElement; - this.SVGUseElement.prototype.__proto__ = this.SVGGraphicsElement.prototype; this.SVGTitleElement.__proto__ = this.SVGElement; - this.SVGTitleElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGTextPositioningElement.__proto__ = this.SVGTextContentElement; - this.SVGTextPositioningElement.prototype.__proto__ = this.SVGTextContentElement.prototype; this.SVGTextPathElement.__proto__ = this.SVGTextContentElement; - this.SVGTextPathElement.prototype.__proto__ = this.SVGTextContentElement.prototype; this.SVGTextElement.__proto__ = this.SVGTextPositioningElement; - this.SVGTextElement.prototype.__proto__ = this.SVGTextPositioningElement.prototype; this.SVGTextContentElement.__proto__ = this.SVGGraphicsElement; - this.SVGTextContentElement.prototype.__proto__ = this.SVGGraphicsElement.prototype; this.SVGTSpanElement.__proto__ = this.SVGTextPositioningElement; - this.SVGTSpanElement.prototype.__proto__ = this.SVGTextPositioningElement.prototype; this.SVGSymbolElement.__proto__ = this.SVGElement; - this.SVGSymbolElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGSwitchElement.__proto__ = this.SVGGraphicsElement; - this.SVGSwitchElement.prototype.__proto__ = this.SVGGraphicsElement.prototype; this.SVGStyleElement.__proto__ = this.SVGElement; - this.SVGStyleElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGStopElement.__proto__ = this.SVGElement; - this.SVGStopElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGSetElement.__proto__ = this.SVGAnimationElement; - this.SVGSetElement.prototype.__proto__ = this.SVGAnimationElement.prototype; this.SVGScriptElement.__proto__ = this.SVGElement; - this.SVGScriptElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGSVGElement.__proto__ = this.SVGGraphicsElement; - this.SVGSVGElement.prototype.__proto__ = this.SVGGraphicsElement.prototype; this.SVGRectElement.__proto__ = this.SVGGeometryElement; - this.SVGRectElement.prototype.__proto__ = this.SVGGeometryElement.prototype; this.SVGRadialGradientElement.__proto__ = this.SVGGradientElement; - this.SVGRadialGradientElement.prototype.__proto__ = this.SVGGradientElement.prototype; this.SVGPolylineElement.__proto__ = this.SVGGeometryElement; - this.SVGPolylineElement.prototype.__proto__ = this.SVGGeometryElement.prototype; this.SVGPolygonElement.__proto__ = this.SVGGeometryElement; - this.SVGPolygonElement.prototype.__proto__ = this.SVGGeometryElement.prototype; this.SVGPatternElement.__proto__ = this.SVGElement; - this.SVGPatternElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGPathElement.__proto__ = this.SVGGeometryElement; - this.SVGPathElement.prototype.__proto__ = this.SVGGeometryElement.prototype; this.SVGMetadataElement.__proto__ = this.SVGElement; - this.SVGMetadataElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGMaskElement.__proto__ = this.SVGElement; - this.SVGMaskElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGMarkerElement.__proto__ = this.SVGElement; - this.SVGMarkerElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGMPathElement.__proto__ = this.SVGElement; - this.SVGMPathElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGLinearGradientElement.__proto__ = this.SVGGradientElement; - this.SVGLinearGradientElement.prototype.__proto__ = this.SVGGradientElement.prototype; this.SVGLineElement.__proto__ = this.SVGGeometryElement; - this.SVGLineElement.prototype.__proto__ = this.SVGGeometryElement.prototype; this.SVGImageElement.__proto__ = this.SVGGraphicsElement; - this.SVGImageElement.prototype.__proto__ = this.SVGGraphicsElement.prototype; this.SVGGraphicsElement.__proto__ = this.SVGElement; - this.SVGGraphicsElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGGradientElement.__proto__ = this.SVGElement; - this.SVGGradientElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGGeometryElement.__proto__ = this.SVGGraphicsElement; - this.SVGGeometryElement.prototype.__proto__ = this.SVGGraphicsElement.prototype; this.SVGGElement.__proto__ = this.SVGGraphicsElement; - this.SVGGElement.prototype.__proto__ = this.SVGGraphicsElement.prototype; this.SVGForeignObjectElement.__proto__ = this.SVGGraphicsElement; - this.SVGForeignObjectElement.prototype.__proto__ = this.SVGGraphicsElement.prototype; this.SVGFilterElement.__proto__ = this.SVGElement; - this.SVGFilterElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFETurbulenceElement.__proto__ = this.SVGElement; - this.SVGFETurbulenceElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFETileElement.__proto__ = this.SVGElement; - this.SVGFETileElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFESpotLightElement.__proto__ = this.SVGElement; - this.SVGFESpotLightElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFESpecularLightingElement.__proto__ = this.SVGElement; - this.SVGFESpecularLightingElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEPointLightElement.__proto__ = this.SVGElement; - this.SVGFEPointLightElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEOffsetElement.__proto__ = this.SVGElement; - this.SVGFEOffsetElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEMorphologyElement.__proto__ = this.SVGElement; - this.SVGFEMorphologyElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEMergeNodeElement.__proto__ = this.SVGElement; - this.SVGFEMergeNodeElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEMergeElement.__proto__ = this.SVGElement; - this.SVGFEMergeElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEImageElement.__proto__ = this.SVGElement; - this.SVGFEImageElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEGaussianBlurElement.__proto__ = this.SVGElement; - this.SVGFEGaussianBlurElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEFuncRElement.__proto__ = this.SVGComponentTransferFunctionElement; - this.SVGFEFuncRElement.prototype.__proto__ = this.SVGComponentTransferFunctionElement.prototype; this.SVGFEFuncGElement.__proto__ = this.SVGComponentTransferFunctionElement; - this.SVGFEFuncGElement.prototype.__proto__ = this.SVGComponentTransferFunctionElement.prototype; this.SVGFEFuncBElement.__proto__ = this.SVGComponentTransferFunctionElement; - this.SVGFEFuncBElement.prototype.__proto__ = this.SVGComponentTransferFunctionElement.prototype; this.SVGFEFuncAElement.__proto__ = this.SVGComponentTransferFunctionElement; - this.SVGFEFuncAElement.prototype.__proto__ = this.SVGComponentTransferFunctionElement.prototype; this.SVGFEFloodElement.__proto__ = this.SVGElement; - this.SVGFEFloodElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEDropShadowElement.__proto__ = this.SVGElement; - this.SVGFEDropShadowElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEDistantLightElement.__proto__ = this.SVGElement; - this.SVGFEDistantLightElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEDisplacementMapElement.__proto__ = this.SVGElement; - this.SVGFEDisplacementMapElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEDiffuseLightingElement.__proto__ = this.SVGElement; - this.SVGFEDiffuseLightingElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEConvolveMatrixElement.__proto__ = this.SVGElement; - this.SVGFEConvolveMatrixElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFECompositeElement.__proto__ = this.SVGElement; - this.SVGFECompositeElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEComponentTransferElement.__proto__ = this.SVGElement; - this.SVGFEComponentTransferElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEColorMatrixElement.__proto__ = this.SVGElement; - this.SVGFEColorMatrixElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGFEBlendElement.__proto__ = this.SVGElement; - this.SVGFEBlendElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGEllipseElement.__proto__ = this.SVGGeometryElement; - this.SVGEllipseElement.prototype.__proto__ = this.SVGGeometryElement.prototype; this.SVGElement.__proto__ = this.Element; - this.SVGElement.prototype.__proto__ = this.Element.prototype; this.SVGDescElement.__proto__ = this.SVGElement; - this.SVGDescElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGDefsElement.__proto__ = this.SVGGraphicsElement; - this.SVGDefsElement.prototype.__proto__ = this.SVGGraphicsElement.prototype; this.SVGComponentTransferFunctionElement.__proto__ = this.SVGElement; - this.SVGComponentTransferFunctionElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGClipPathElement.__proto__ = this.SVGGraphicsElement; - this.SVGClipPathElement.prototype.__proto__ = this.SVGGraphicsElement.prototype; this.SVGCircleElement.__proto__ = this.SVGGeometryElement; - this.SVGCircleElement.prototype.__proto__ = this.SVGGeometryElement.prototype; this.SVGAnimationElement.__proto__ = this.SVGElement; - this.SVGAnimationElement.prototype.__proto__ = this.SVGElement.prototype; this.SVGAnimateTransformElement.__proto__ = this.SVGAnimationElement; - this.SVGAnimateTransformElement.prototype.__proto__ = this.SVGAnimationElement.prototype; this.SVGAnimateMotionElement.__proto__ = this.SVGAnimationElement; - this.SVGAnimateMotionElement.prototype.__proto__ = this.SVGAnimationElement.prototype; this.SVGAnimateElement.__proto__ = this.SVGAnimationElement; - this.SVGAnimateElement.prototype.__proto__ = this.SVGAnimationElement.prototype; this.SVGAElement.__proto__ = this.SVGGraphicsElement; - this.SVGAElement.prototype.__proto__ = this.SVGGraphicsElement.prototype; this.Range.__proto__ = this.AbstractRange; - this.Range.prototype.__proto__ = this.AbstractRange.prototype; this.RadioNodeList.__proto__ = this.NodeList; - this.RadioNodeList.prototype.__proto__ = this.NodeList.prototype; this.RTCTrackEvent.__proto__ = this.Event; - this.RTCTrackEvent.prototype.__proto__ = this.Event.prototype; this.RTCSctpTransport.__proto__ = this.EventTarget; - this.RTCSctpTransport.prototype.__proto__ = this.EventTarget.prototype; this.RTCPeerConnectionIceEvent.__proto__ = this.Event; - this.RTCPeerConnectionIceEvent.prototype.__proto__ = this.Event.prototype; this.RTCPeerConnectionIceErrorEvent.__proto__ = this.Event; - this.RTCPeerConnectionIceErrorEvent.prototype.__proto__ = this.Event.prototype; this.RTCPeerConnection.__proto__ = this.EventTarget; - this.RTCPeerConnection.prototype.__proto__ = this.EventTarget.prototype; this.RTCIceTransport.__proto__ = this.EventTarget; - this.RTCIceTransport.prototype.__proto__ = this.EventTarget.prototype; this.RTCErrorEvent.__proto__ = this.Event; - this.RTCErrorEvent.prototype.__proto__ = this.Event.prototype; this.RTCError.__proto__ = this.DOMException; - this.RTCError.prototype.__proto__ = this.DOMException.prototype; this.RTCDtlsTransport.__proto__ = this.EventTarget; - this.RTCDtlsTransport.prototype.__proto__ = this.EventTarget.prototype; this.RTCDataChannelEvent.__proto__ = this.Event; - this.RTCDataChannelEvent.prototype.__proto__ = this.Event.prototype; this.RTCDataChannel.__proto__ = this.EventTarget; - this.RTCDataChannel.prototype.__proto__ = this.EventTarget.prototype; this.RTCDTMFToneChangeEvent.__proto__ = this.Event; - this.RTCDTMFToneChangeEvent.prototype.__proto__ = this.Event.prototype; this.RTCDTMFSender.__proto__ = this.EventTarget; - this.RTCDTMFSender.prototype.__proto__ = this.EventTarget.prototype; this.PromiseRejectionEvent.__proto__ = this.Event; - this.PromiseRejectionEvent.prototype.__proto__ = this.Event.prototype; this.ProgressEvent.__proto__ = this.Event; - this.ProgressEvent.prototype.__proto__ = this.Event.prototype; this.Profiler.__proto__ = this.EventTarget; - this.Profiler.prototype.__proto__ = this.EventTarget.prototype; this.ProcessingInstruction.__proto__ = this.CharacterData; - this.ProcessingInstruction.prototype.__proto__ = this.CharacterData.prototype; this.PopStateEvent.__proto__ = this.Event; - this.PopStateEvent.prototype.__proto__ = this.Event.prototype; this.PointerEvent.__proto__ = this.MouseEvent; - this.PointerEvent.prototype.__proto__ = this.MouseEvent.prototype; this.PictureInPictureWindow.__proto__ = this.EventTarget; - this.PictureInPictureWindow.prototype.__proto__ = this.EventTarget.prototype; this.PictureInPictureEvent.__proto__ = this.Event; - this.PictureInPictureEvent.prototype.__proto__ = this.Event.prototype; this.PerformanceResourceTiming.__proto__ = this.PerformanceEntry; - this.PerformanceResourceTiming.prototype.__proto__ = this.PerformanceEntry.prototype; this.PerformancePaintTiming.__proto__ = this.PerformanceEntry; - this.PerformancePaintTiming.prototype.__proto__ = this.PerformanceEntry.prototype; this.PerformanceNavigationTiming.__proto__ = this.PerformanceResourceTiming; - this.PerformanceNavigationTiming.prototype.__proto__ = this.PerformanceResourceTiming.prototype; this.PerformanceMeasure.__proto__ = this.PerformanceEntry; - this.PerformanceMeasure.prototype.__proto__ = this.PerformanceEntry.prototype; this.PerformanceMark.__proto__ = this.PerformanceEntry; - this.PerformanceMark.prototype.__proto__ = this.PerformanceEntry.prototype; this.PerformanceLongTaskTiming.__proto__ = this.PerformanceEntry; - this.PerformanceLongTaskTiming.prototype.__proto__ = this.PerformanceEntry.prototype; this.PerformanceEventTiming.__proto__ = this.PerformanceEntry; - this.PerformanceEventTiming.prototype.__proto__ = this.PerformanceEntry.prototype; this.PerformanceElementTiming.__proto__ = this.PerformanceEntry; - this.PerformanceElementTiming.prototype.__proto__ = this.PerformanceEntry.prototype; this.Performance.__proto__ = this.EventTarget; - this.Performance.prototype.__proto__ = this.EventTarget.prototype; this.PannerNode.__proto__ = this.AudioNode; - this.PannerNode.prototype.__proto__ = this.AudioNode.prototype; this.PageTransitionEvent.__proto__ = this.Event; - this.PageTransitionEvent.prototype.__proto__ = this.Event.prototype; this.OverconstrainedError.__proto__ = this.DOMException; - this.OverconstrainedError.prototype.__proto__ = this.DOMException.prototype; this.OscillatorNode.__proto__ = this.AudioScheduledSourceNode; - this.OscillatorNode.prototype.__proto__ = this.AudioScheduledSourceNode.prototype; this.OffscreenCanvas.__proto__ = this.EventTarget; - this.OffscreenCanvas.prototype.__proto__ = this.EventTarget.prototype; this.OfflineAudioContext.__proto__ = this.BaseAudioContext; - this.OfflineAudioContext.prototype.__proto__ = this.BaseAudioContext.prototype; this.OfflineAudioCompletionEvent.__proto__ = this.Event; - this.OfflineAudioCompletionEvent.prototype.__proto__ = this.Event.prototype; this.Node.__proto__ = this.EventTarget; - this.Node.prototype.__proto__ = this.EventTarget.prototype; this.NetworkInformation.__proto__ = this.EventTarget; - this.NetworkInformation.prototype.__proto__ = this.EventTarget.prototype; this.NavigationHistoryEntry.__proto__ = this.EventTarget; - this.NavigationHistoryEntry.prototype.__proto__ = this.EventTarget.prototype; this.NavigationCurrentEntryChangeEvent.__proto__ = this.Event; - this.NavigationCurrentEntryChangeEvent.prototype.__proto__ = this.Event.prototype; this.Navigation.__proto__ = this.EventTarget; - this.Navigation.prototype.__proto__ = this.EventTarget.prototype; this.NavigateEvent.__proto__ = this.Event; - this.NavigateEvent.prototype.__proto__ = this.Event.prototype; this.MouseEvent.__proto__ = this.UIEvent; - this.MouseEvent.prototype.__proto__ = this.UIEvent.prototype; this.MessagePort.__proto__ = this.EventTarget; - this.MessagePort.prototype.__proto__ = this.EventTarget.prototype; this.MessageEvent.__proto__ = this.Event; - this.MessageEvent.prototype.__proto__ = this.Event.prototype; this.MediaStreamTrackGenerator.__proto__ = this.MediaStreamTrack; - this.MediaStreamTrackGenerator.prototype.__proto__ = this.MediaStreamTrack.prototype; this.MediaStreamTrackEvent.__proto__ = this.Event; - this.MediaStreamTrackEvent.prototype.__proto__ = this.Event.prototype; this.MediaStreamTrack.__proto__ = this.EventTarget; - this.MediaStreamTrack.prototype.__proto__ = this.EventTarget.prototype; this.MediaStreamEvent.__proto__ = this.Event; - this.MediaStreamEvent.prototype.__proto__ = this.Event.prototype; this.MediaStreamAudioSourceNode.__proto__ = this.AudioNode; - this.MediaStreamAudioSourceNode.prototype.__proto__ = this.AudioNode.prototype; this.MediaStreamAudioDestinationNode.__proto__ = this.AudioNode; - this.MediaStreamAudioDestinationNode.prototype.__proto__ = this.AudioNode.prototype; this.MediaStream.__proto__ = this.EventTarget; - this.MediaStream.prototype.__proto__ = this.EventTarget.prototype; this.MediaSource.__proto__ = this.EventTarget; - this.MediaSource.prototype.__proto__ = this.EventTarget.prototype; this.MediaRecorder.__proto__ = this.EventTarget; - this.MediaRecorder.prototype.__proto__ = this.EventTarget.prototype; this.MediaQueryListEvent.__proto__ = this.Event; - this.MediaQueryListEvent.prototype.__proto__ = this.Event.prototype; this.MediaQueryList.__proto__ = this.EventTarget; - this.MediaQueryList.prototype.__proto__ = this.EventTarget.prototype; this.MediaEncryptedEvent.__proto__ = this.Event; - this.MediaEncryptedEvent.prototype.__proto__ = this.Event.prototype; this.MediaElementAudioSourceNode.__proto__ = this.AudioNode; - this.MediaElementAudioSourceNode.prototype.__proto__ = this.AudioNode.prototype; this.MathMLElement.__proto__ = this.Element; - this.MathMLElement.prototype.__proto__ = this.Element.prototype; this.LayoutShift.__proto__ = this.PerformanceEntry; - this.LayoutShift.prototype.__proto__ = this.PerformanceEntry.prototype; this.LargestContentfulPaint.__proto__ = this.PerformanceEntry; - this.LargestContentfulPaint.prototype.__proto__ = this.PerformanceEntry.prototype; this.KeyframeEffect.__proto__ = this.AnimationEffect; - this.KeyframeEffect.prototype.__proto__ = this.AnimationEffect.prototype; this.KeyboardEvent.__proto__ = this.UIEvent; - this.KeyboardEvent.prototype.__proto__ = this.UIEvent.prototype; this.InputEvent.__proto__ = this.UIEvent; - this.InputEvent.prototype.__proto__ = this.UIEvent.prototype; this.InputDeviceInfo.__proto__ = this.MediaDeviceInfo; - this.InputDeviceInfo.prototype.__proto__ = this.MediaDeviceInfo.prototype; this.IIRFilterNode.__proto__ = this.AudioNode; - this.IIRFilterNode.prototype.__proto__ = this.AudioNode.prototype; this.IDBVersionChangeEvent.__proto__ = this.Event; - this.IDBVersionChangeEvent.prototype.__proto__ = this.Event.prototype; this.IDBTransaction.__proto__ = this.EventTarget; - this.IDBTransaction.prototype.__proto__ = this.EventTarget.prototype; this.IDBRequest.__proto__ = this.EventTarget; - this.IDBRequest.prototype.__proto__ = this.EventTarget.prototype; this.IDBOpenDBRequest.__proto__ = this.IDBRequest; - this.IDBOpenDBRequest.prototype.__proto__ = this.IDBRequest.prototype; this.IDBDatabase.__proto__ = this.EventTarget; - this.IDBDatabase.prototype.__proto__ = this.EventTarget.prototype; this.IDBCursorWithValue.__proto__ = this.IDBCursor; - this.IDBCursorWithValue.prototype.__proto__ = this.IDBCursor.prototype; this.HashChangeEvent.__proto__ = this.Event; - this.HashChangeEvent.prototype.__proto__ = this.Event.prototype; this.HTMLVideoElement.__proto__ = this.HTMLMediaElement; - this.HTMLVideoElement.prototype.__proto__ = this.HTMLMediaElement.prototype; this.HTMLUnknownElement.__proto__ = this.HTMLElement; - this.HTMLUnknownElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLUListElement.__proto__ = this.HTMLElement; - this.HTMLUListElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLTrackElement.__proto__ = this.HTMLElement; - this.HTMLTrackElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLTitleElement.__proto__ = this.HTMLElement; - this.HTMLTitleElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLTimeElement.__proto__ = this.HTMLElement; - this.HTMLTimeElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLTextAreaElement.__proto__ = this.HTMLElement; - this.HTMLTextAreaElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLTemplateElement.__proto__ = this.HTMLElement; - this.HTMLTemplateElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLTableSectionElement.__proto__ = this.HTMLElement; - this.HTMLTableSectionElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLTableRowElement.__proto__ = this.HTMLElement; - this.HTMLTableRowElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLTableElement.__proto__ = this.HTMLElement; - this.HTMLTableElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLTableColElement.__proto__ = this.HTMLElement; - this.HTMLTableColElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLTableCellElement.__proto__ = this.HTMLElement; - this.HTMLTableCellElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLTableCaptionElement.__proto__ = this.HTMLElement; - this.HTMLTableCaptionElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLStyleElement.__proto__ = this.HTMLElement; - this.HTMLStyleElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLSpanElement.__proto__ = this.HTMLElement; - this.HTMLSpanElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLSourceElement.__proto__ = this.HTMLElement; - this.HTMLSourceElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLSlotElement.__proto__ = this.HTMLElement; - this.HTMLSlotElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLSelectElement.__proto__ = this.HTMLElement; - this.HTMLSelectElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLScriptElement.__proto__ = this.HTMLElement; - this.HTMLScriptElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLQuoteElement.__proto__ = this.HTMLElement; - this.HTMLQuoteElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLProgressElement.__proto__ = this.HTMLElement; - this.HTMLProgressElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLPreElement.__proto__ = this.HTMLElement; - this.HTMLPreElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLPictureElement.__proto__ = this.HTMLElement; - this.HTMLPictureElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLParamElement.__proto__ = this.HTMLElement; - this.HTMLParamElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLParagraphElement.__proto__ = this.HTMLElement; - this.HTMLParagraphElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLOutputElement.__proto__ = this.HTMLElement; - this.HTMLOutputElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLOptionsCollection.__proto__ = this.HTMLCollection; - this.HTMLOptionsCollection.prototype.__proto__ = this.HTMLCollection.prototype; this.HTMLOptionElement.__proto__ = this.HTMLElement; - this.HTMLOptionElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLOptGroupElement.__proto__ = this.HTMLElement; - this.HTMLOptGroupElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLObjectElement.__proto__ = this.HTMLElement; - this.HTMLObjectElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLOListElement.__proto__ = this.HTMLElement; - this.HTMLOListElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLModElement.__proto__ = this.HTMLElement; - this.HTMLModElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLMeterElement.__proto__ = this.HTMLElement; - this.HTMLMeterElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLMetaElement.__proto__ = this.HTMLElement; - this.HTMLMetaElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLMenuElement.__proto__ = this.HTMLElement; - this.HTMLMenuElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLMediaElement.__proto__ = this.HTMLElement; - this.HTMLMediaElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLMarqueeElement.__proto__ = this.HTMLElement; - this.HTMLMarqueeElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLMapElement.__proto__ = this.HTMLElement; - this.HTMLMapElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLLinkElement.__proto__ = this.HTMLElement; - this.HTMLLinkElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLLegendElement.__proto__ = this.HTMLElement; - this.HTMLLegendElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLLabelElement.__proto__ = this.HTMLElement; - this.HTMLLabelElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLLIElement.__proto__ = this.HTMLElement; - this.HTMLLIElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLInputElement.__proto__ = this.HTMLElement; - this.HTMLInputElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLImageElement.__proto__ = this.HTMLElement; - this.HTMLImageElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLIFrameElement.__proto__ = this.HTMLElement; - this.HTMLIFrameElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLHtmlElement.__proto__ = this.HTMLElement; - this.HTMLHtmlElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLHeadingElement.__proto__ = this.HTMLElement; - this.HTMLHeadingElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLHeadElement.__proto__ = this.HTMLElement; - this.HTMLHeadElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLHRElement.__proto__ = this.HTMLElement; - this.HTMLHRElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLFrameSetElement.__proto__ = this.HTMLElement; - this.HTMLFrameSetElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLFrameElement.__proto__ = this.HTMLElement; - this.HTMLFrameElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLFormElement.__proto__ = this.HTMLElement; - this.HTMLFormElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLFormControlsCollection.__proto__ = this.HTMLCollection; - this.HTMLFormControlsCollection.prototype.__proto__ = this.HTMLCollection.prototype; this.HTMLFontElement.__proto__ = this.HTMLElement; - this.HTMLFontElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLFieldSetElement.__proto__ = this.HTMLElement; - this.HTMLFieldSetElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLEmbedElement.__proto__ = this.HTMLElement; - this.HTMLEmbedElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLElement.__proto__ = this.Element; - this.HTMLElement.prototype.__proto__ = this.Element.prototype; this.HTMLDocument.__proto__ = this.Document; - this.HTMLDocument.prototype.__proto__ = this.Document.prototype; this.HTMLDivElement.__proto__ = this.HTMLElement; - this.HTMLDivElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLDirectoryElement.__proto__ = this.HTMLElement; - this.HTMLDirectoryElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLDialogElement.__proto__ = this.HTMLElement; - this.HTMLDialogElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLDetailsElement.__proto__ = this.HTMLElement; - this.HTMLDetailsElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLDataListElement.__proto__ = this.HTMLElement; - this.HTMLDataListElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLDataElement.__proto__ = this.HTMLElement; - this.HTMLDataElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLDListElement.__proto__ = this.HTMLElement; - this.HTMLDListElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLCanvasElement.__proto__ = this.HTMLElement; - this.HTMLCanvasElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLButtonElement.__proto__ = this.HTMLElement; - this.HTMLButtonElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLBodyElement.__proto__ = this.HTMLElement; - this.HTMLBodyElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLBaseElement.__proto__ = this.HTMLElement; - this.HTMLBaseElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLBRElement.__proto__ = this.HTMLElement; - this.HTMLBRElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLAudioElement.__proto__ = this.HTMLMediaElement; - this.HTMLAudioElement.prototype.__proto__ = this.HTMLMediaElement.prototype; this.HTMLAreaElement.__proto__ = this.HTMLElement; - this.HTMLAreaElement.prototype.__proto__ = this.HTMLElement.prototype; this.HTMLAnchorElement.__proto__ = this.HTMLElement; - this.HTMLAnchorElement.prototype.__proto__ = this.HTMLElement.prototype; this.GamepadEvent.__proto__ = this.Event; - this.GamepadEvent.prototype.__proto__ = this.Event.prototype; this.GainNode.__proto__ = this.AudioNode; - this.GainNode.prototype.__proto__ = this.AudioNode.prototype; this.FormDataEvent.__proto__ = this.Event; - this.FormDataEvent.prototype.__proto__ = this.Event.prototype; this.FontFaceSetLoadEvent.__proto__ = this.Event; - this.FontFaceSetLoadEvent.prototype.__proto__ = this.Event.prototype; this.FocusEvent.__proto__ = this.UIEvent; - this.FocusEvent.prototype.__proto__ = this.UIEvent.prototype; this.FileReader.__proto__ = this.EventTarget; - this.FileReader.prototype.__proto__ = this.EventTarget.prototype; this.File.__proto__ = this.Blob; - this.File.prototype.__proto__ = this.Blob.prototype; this.EventSource.__proto__ = this.EventTarget; - this.EventSource.prototype.__proto__ = this.EventTarget.prototype; this.ErrorEvent.__proto__ = this.Event; - this.ErrorEvent.prototype.__proto__ = this.Event.prototype; this.Element.__proto__ = this.Node; - this.Element.prototype.__proto__ = this.Node.prototype; this.DynamicsCompressorNode.__proto__ = this.AudioNode; - this.DynamicsCompressorNode.prototype.__proto__ = this.AudioNode.prototype; this.DragEvent.__proto__ = this.MouseEvent; - this.DragEvent.prototype.__proto__ = this.MouseEvent.prototype; this.DocumentType.__proto__ = this.Node; - this.DocumentType.prototype.__proto__ = this.Node.prototype; this.DocumentFragment.__proto__ = this.Node; - this.DocumentFragment.prototype.__proto__ = this.Node.prototype; this.Document.__proto__ = this.Node; - this.Document.prototype.__proto__ = this.Node.prototype; this.DelayNode.__proto__ = this.AudioNode; - this.DelayNode.prototype.__proto__ = this.AudioNode.prototype; this.DOMRect.__proto__ = this.DOMRectReadOnly; - this.DOMRect.prototype.__proto__ = this.DOMRectReadOnly.prototype; this.DOMPoint.__proto__ = this.DOMPointReadOnly; - this.DOMPoint.prototype.__proto__ = this.DOMPointReadOnly.prototype; this.DOMMatrix.__proto__ = this.DOMMatrixReadOnly; - this.DOMMatrix.prototype.__proto__ = this.DOMMatrixReadOnly.prototype; this.CustomEvent.__proto__ = this.Event; - this.CustomEvent.prototype.__proto__ = this.Event.prototype; this.ConvolverNode.__proto__ = this.AudioNode; - this.ConvolverNode.prototype.__proto__ = this.AudioNode.prototype; this.ConstantSourceNode.__proto__ = this.AudioScheduledSourceNode; - this.ConstantSourceNode.prototype.__proto__ = this.AudioScheduledSourceNode.prototype; this.CompositionEvent.__proto__ = this.UIEvent; - this.CompositionEvent.prototype.__proto__ = this.UIEvent.prototype; this.Comment.__proto__ = this.CharacterData; - this.Comment.prototype.__proto__ = this.CharacterData.prototype; this.CloseEvent.__proto__ = this.Event; - this.CloseEvent.prototype.__proto__ = this.Event.prototype; this.ClipboardEvent.__proto__ = this.Event; - this.ClipboardEvent.prototype.__proto__ = this.Event.prototype; this.CharacterData.__proto__ = this.Node; - this.CharacterData.prototype.__proto__ = this.Node.prototype; this.ChannelSplitterNode.__proto__ = this.AudioNode; - this.ChannelSplitterNode.prototype.__proto__ = this.AudioNode.prototype; this.ChannelMergerNode.__proto__ = this.AudioNode; - this.ChannelMergerNode.prototype.__proto__ = this.AudioNode.prototype; this.CanvasCaptureMediaStreamTrack.__proto__ = this.MediaStreamTrack; - this.CanvasCaptureMediaStreamTrack.prototype.__proto__ = this.MediaStreamTrack.prototype; this.CSSUnparsedValue.__proto__ = this.CSSStyleValue; - this.CSSUnparsedValue.prototype.__proto__ = this.CSSStyleValue.prototype; this.CSSUnitValue.__proto__ = this.CSSNumericValue; - this.CSSUnitValue.prototype.__proto__ = this.CSSNumericValue.prototype; this.CSSTranslate.__proto__ = this.CSSTransformComponent; - this.CSSTranslate.prototype.__proto__ = this.CSSTransformComponent.prototype; this.CSSTransformValue.__proto__ = this.CSSStyleValue; - this.CSSTransformValue.prototype.__proto__ = this.CSSStyleValue.prototype; this.CSSSupportsRule.__proto__ = this.CSSConditionRule; - this.CSSSupportsRule.prototype.__proto__ = this.CSSConditionRule.prototype; this.CSSStyleSheet.__proto__ = this.StyleSheet; - this.CSSStyleSheet.prototype.__proto__ = this.StyleSheet.prototype; this.CSSStyleRule.__proto__ = this.CSSRule; - this.CSSStyleRule.prototype.__proto__ = this.CSSRule.prototype; this.CSSSkewY.__proto__ = this.CSSTransformComponent; - this.CSSSkewY.prototype.__proto__ = this.CSSTransformComponent.prototype; this.CSSSkewX.__proto__ = this.CSSTransformComponent; - this.CSSSkewX.prototype.__proto__ = this.CSSTransformComponent.prototype; this.CSSSkew.__proto__ = this.CSSTransformComponent; - this.CSSSkew.prototype.__proto__ = this.CSSTransformComponent.prototype; this.CSSScale.__proto__ = this.CSSTransformComponent; - this.CSSScale.prototype.__proto__ = this.CSSTransformComponent.prototype; this.CSSRotate.__proto__ = this.CSSTransformComponent; - this.CSSRotate.prototype.__proto__ = this.CSSTransformComponent.prototype; this.CSSPropertyRule.__proto__ = this.CSSRule; - this.CSSPropertyRule.prototype.__proto__ = this.CSSRule.prototype; this.CSSPositionValue.__proto__ = this.CSSStyleValue; - this.CSSPositionValue.prototype.__proto__ = this.CSSStyleValue.prototype; this.CSSPerspective.__proto__ = this.CSSTransformComponent; - this.CSSPerspective.prototype.__proto__ = this.CSSTransformComponent.prototype; this.CSSPageRule.__proto__ = this.CSSRule; - this.CSSPageRule.prototype.__proto__ = this.CSSRule.prototype; this.CSSNumericValue.__proto__ = this.CSSStyleValue; - this.CSSNumericValue.prototype.__proto__ = this.CSSStyleValue.prototype; this.CSSNamespaceRule.__proto__ = this.CSSRule; - this.CSSNamespaceRule.prototype.__proto__ = this.CSSRule.prototype; this.CSSMediaRule.__proto__ = this.CSSConditionRule; - this.CSSMediaRule.prototype.__proto__ = this.CSSConditionRule.prototype; this.CSSMatrixComponent.__proto__ = this.CSSTransformComponent; - this.CSSMatrixComponent.prototype.__proto__ = this.CSSTransformComponent.prototype; this.CSSMathValue.__proto__ = this.CSSNumericValue; - this.CSSMathValue.prototype.__proto__ = this.CSSNumericValue.prototype; this.CSSMathSum.__proto__ = this.CSSMathValue; - this.CSSMathSum.prototype.__proto__ = this.CSSMathValue.prototype; this.CSSMathProduct.__proto__ = this.CSSMathValue; - this.CSSMathProduct.prototype.__proto__ = this.CSSMathValue.prototype; this.CSSMathNegate.__proto__ = this.CSSMathValue; - this.CSSMathNegate.prototype.__proto__ = this.CSSMathValue.prototype; this.CSSMathMin.__proto__ = this.CSSMathValue; - this.CSSMathMin.prototype.__proto__ = this.CSSMathValue.prototype; this.CSSMathMax.__proto__ = this.CSSMathValue; - this.CSSMathMax.prototype.__proto__ = this.CSSMathValue.prototype; this.CSSMathInvert.__proto__ = this.CSSMathValue; - this.CSSMathInvert.prototype.__proto__ = this.CSSMathValue.prototype; this.CSSMathClamp.__proto__ = this.CSSMathValue; - this.CSSMathClamp.prototype.__proto__ = this.CSSMathValue.prototype; this.CSSLayerStatementRule.__proto__ = this.CSSRule; - this.CSSLayerStatementRule.prototype.__proto__ = this.CSSRule.prototype; this.CSSLayerBlockRule.__proto__ = this.CSSGroupingRule; - this.CSSLayerBlockRule.prototype.__proto__ = this.CSSGroupingRule.prototype; this.CSSKeywordValue.__proto__ = this.CSSStyleValue; - this.CSSKeywordValue.prototype.__proto__ = this.CSSStyleValue.prototype; this.CSSKeyframesRule.__proto__ = this.CSSRule; - this.CSSKeyframesRule.prototype.__proto__ = this.CSSRule.prototype; this.CSSKeyframeRule.__proto__ = this.CSSRule; - this.CSSKeyframeRule.prototype.__proto__ = this.CSSRule.prototype; this.CSSImportRule.__proto__ = this.CSSRule; - this.CSSImportRule.prototype.__proto__ = this.CSSRule.prototype; this.CSSImageValue.__proto__ = this.CSSStyleValue; - this.CSSImageValue.prototype.__proto__ = this.CSSStyleValue.prototype; this.CSSGroupingRule.__proto__ = this.CSSRule; - this.CSSGroupingRule.prototype.__proto__ = this.CSSRule.prototype; this.CSSFontPaletteValuesRule.__proto__ = this.CSSRule; - this.CSSFontPaletteValuesRule.prototype.__proto__ = this.CSSRule.prototype; this.CSSFontFaceRule.__proto__ = this.CSSRule; - this.CSSFontFaceRule.prototype.__proto__ = this.CSSRule.prototype; this.CSSCounterStyleRule.__proto__ = this.CSSRule; - this.CSSCounterStyleRule.prototype.__proto__ = this.CSSRule.prototype; this.CSSContainerRule.__proto__ = this.CSSConditionRule; - this.CSSContainerRule.prototype.__proto__ = this.CSSConditionRule.prototype; this.CSSConditionRule.__proto__ = this.CSSGroupingRule; - this.CSSConditionRule.prototype.__proto__ = this.CSSGroupingRule.prototype; this.CDATASection.__proto__ = this.Text; - this.CDATASection.prototype.__proto__ = this.Text.prototype; this.BroadcastChannel.__proto__ = this.EventTarget; - this.BroadcastChannel.prototype.__proto__ = this.EventTarget.prototype; this.BlobEvent.__proto__ = this.Event; - this.BlobEvent.prototype.__proto__ = this.Event.prototype; this.BiquadFilterNode.__proto__ = this.AudioNode; - this.BiquadFilterNode.prototype.__proto__ = this.AudioNode.prototype; this.BeforeUnloadEvent.__proto__ = this.Event; - this.BeforeUnloadEvent.prototype.__proto__ = this.Event.prototype; this.BeforeInstallPromptEvent.__proto__ = this.Event; - this.BeforeInstallPromptEvent.prototype.__proto__ = this.Event.prototype; this.BaseAudioContext.__proto__ = this.EventTarget; - this.BaseAudioContext.prototype.__proto__ = this.EventTarget.prototype; this.AudioWorkletNode.__proto__ = this.AudioNode; - this.AudioWorkletNode.prototype.__proto__ = this.AudioNode.prototype; this.AudioScheduledSourceNode.__proto__ = this.AudioNode; - this.AudioScheduledSourceNode.prototype.__proto__ = this.AudioNode.prototype; this.AudioProcessingEvent.__proto__ = this.Event; - this.AudioProcessingEvent.prototype.__proto__ = this.Event.prototype; this.AudioNode.__proto__ = this.EventTarget; - this.AudioNode.prototype.__proto__ = this.EventTarget.prototype; this.AudioDestinationNode.__proto__ = this.AudioNode; - this.AudioDestinationNode.prototype.__proto__ = this.AudioNode.prototype; this.AudioContext.__proto__ = this.BaseAudioContext; - this.AudioContext.prototype.__proto__ = this.BaseAudioContext.prototype; this.AudioBufferSourceNode.__proto__ = this.AudioScheduledSourceNode; - this.AudioBufferSourceNode.prototype.__proto__ = this.AudioScheduledSourceNode.prototype; this.Attr.__proto__ = this.Node; - this.Attr.prototype.__proto__ = this.Node.prototype; this.AnimationEvent.__proto__ = this.Event; - this.AnimationEvent.prototype.__proto__ = this.Event.prototype; this.Animation.__proto__ = this.EventTarget; - this.Animation.prototype.__proto__ = this.EventTarget.prototype; this.AnalyserNode.__proto__ = this.AudioNode; - this.AnalyserNode.prototype.__proto__ = this.AudioNode.prototype; this.AbortSignal.__proto__ = this.EventTarget; - this.AbortSignal.prototype.__proto__ = this.EventTarget.prototype; this.AbsoluteOrientationSensor.__proto__ = this.OrientationSensor; - this.AbsoluteOrientationSensor.prototype.__proto__ = this.OrientationSensor.prototype; this.Accelerometer.__proto__ = this.Sensor; - this.Accelerometer.prototype.__proto__ = this.Sensor.prototype; this.AudioWorklet.__proto__ = this.Worklet; - this.AudioWorklet.prototype.__proto__ = this.Worklet.prototype; this.BatteryManager.__proto__ = this.EventTarget; - this.BatteryManager.prototype.__proto__ = this.EventTarget.prototype; this.Clipboard.__proto__ = this.EventTarget; - this.Clipboard.prototype.__proto__ = this.EventTarget.prototype; this.CookieChangeEvent.__proto__ = this.Event; - this.CookieChangeEvent.prototype.__proto__ = this.Event.prototype; this.CookieStore.__proto__ = this.EventTarget; - this.CookieStore.prototype.__proto__ = this.EventTarget.prototype; this.DeviceMotionEvent.__proto__ = this.Event; - this.DeviceMotionEvent.prototype.__proto__ = this.Event.prototype; this.DeviceOrientationEvent.__proto__ = this.Event; - this.DeviceOrientationEvent.prototype.__proto__ = this.Event.prototype; this.FederatedCredential.__proto__ = this.Credential; - this.FederatedCredential.prototype.__proto__ = this.Credential.prototype; this.GPUDevice.__proto__ = this.EventTarget; - this.GPUDevice.prototype.__proto__ = this.EventTarget.prototype; this.GPUInternalError.__proto__ = this.GPUError; - this.GPUInternalError.prototype.__proto__ = this.GPUError.prototype; this.GPUOutOfMemoryError.__proto__ = this.GPUError; - this.GPUOutOfMemoryError.prototype.__proto__ = this.GPUError.prototype; this.GPUPipelineError.__proto__ = this.DOMException; - this.GPUPipelineError.prototype.__proto__ = this.DOMException.prototype; this.GPUUncapturedErrorEvent.__proto__ = this.Event; - this.GPUUncapturedErrorEvent.prototype.__proto__ = this.Event.prototype; this.GPUValidationError.__proto__ = this.GPUError; - this.GPUValidationError.prototype.__proto__ = this.GPUError.prototype; this.GravitySensor.__proto__ = this.Accelerometer; - this.GravitySensor.prototype.__proto__ = this.Accelerometer.prototype; this.Gyroscope.__proto__ = this.Sensor; - this.Gyroscope.prototype.__proto__ = this.Sensor.prototype; this.LinearAccelerationSensor.__proto__ = this.Accelerometer; - this.LinearAccelerationSensor.prototype.__proto__ = this.Accelerometer.prototype; this.MIDIAccess.__proto__ = this.EventTarget; - this.MIDIAccess.prototype.__proto__ = this.EventTarget.prototype; this.MIDIConnectionEvent.__proto__ = this.Event; - this.MIDIConnectionEvent.prototype.__proto__ = this.Event.prototype; this.MIDIInput.__proto__ = this.MIDIPort; - this.MIDIInput.prototype.__proto__ = this.MIDIPort.prototype; this.MIDIMessageEvent.__proto__ = this.Event; - this.MIDIMessageEvent.prototype.__proto__ = this.Event.prototype; this.MIDIOutput.__proto__ = this.MIDIPort; - this.MIDIOutput.prototype.__proto__ = this.MIDIPort.prototype; this.MIDIPort.__proto__ = this.EventTarget; - this.MIDIPort.prototype.__proto__ = this.EventTarget.prototype; this.MediaDevices.__proto__ = this.EventTarget; - this.MediaDevices.prototype.__proto__ = this.EventTarget.prototype; this.MediaKeyMessageEvent.__proto__ = this.Event; - this.MediaKeyMessageEvent.prototype.__proto__ = this.Event.prototype; this.MediaKeySession.__proto__ = this.EventTarget; - this.MediaKeySession.prototype.__proto__ = this.EventTarget.prototype; this.NavigatorManagedData.__proto__ = this.EventTarget; - this.NavigatorManagedData.prototype.__proto__ = this.EventTarget.prototype; this.OrientationSensor.__proto__ = this.Sensor; - this.OrientationSensor.prototype.__proto__ = this.Sensor.prototype; this.PasswordCredential.__proto__ = this.Credential; - this.PasswordCredential.prototype.__proto__ = this.Credential.prototype; this.RelativeOrientationSensor.__proto__ = this.OrientationSensor; - this.RelativeOrientationSensor.prototype.__proto__ = this.OrientationSensor.prototype; this.ScreenDetailed.__proto__ = this.Screen; - this.ScreenDetailed.prototype.__proto__ = this.Screen.prototype; this.ScreenDetails.__proto__ = this.EventTarget; - this.ScreenDetails.prototype.__proto__ = this.EventTarget.prototype; this.Sensor.__proto__ = this.EventTarget; - this.Sensor.prototype.__proto__ = this.EventTarget.prototype; this.SensorErrorEvent.__proto__ = this.Event; - this.SensorErrorEvent.prototype.__proto__ = this.Event.prototype; this.ServiceWorker.__proto__ = this.EventTarget; - this.ServiceWorker.prototype.__proto__ = this.EventTarget.prototype; this.ServiceWorkerContainer.__proto__ = this.EventTarget; - this.ServiceWorkerContainer.prototype.__proto__ = this.EventTarget.prototype; this.ServiceWorkerRegistration.__proto__ = this.EventTarget; - this.ServiceWorkerRegistration.prototype.__proto__ = this.EventTarget.prototype; this.StorageManager.__proto__ = this.EventTarget; - this.StorageManager.prototype.__proto__ = this.EventTarget.prototype; this.VirtualKeyboard.__proto__ = this.EventTarget; - this.VirtualKeyboard.prototype.__proto__ = this.EventTarget.prototype; this.WebTransportError.__proto__ = this.DOMException; - this.WebTransportError.prototype.__proto__ = this.DOMException.prototype; this.XRLayer.__proto__ = this.EventTarget; - this.XRLayer.prototype.__proto__ = this.EventTarget.prototype; this.AudioDecoder.__proto__ = this.EventTarget; - this.AudioDecoder.prototype.__proto__ = this.EventTarget.prototype; this.AudioEncoder.__proto__ = this.EventTarget; - this.AudioEncoder.prototype.__proto__ = this.EventTarget.prototype; this.VideoDecoder.__proto__ = this.EventTarget; - this.VideoDecoder.prototype.__proto__ = this.EventTarget.prototype; this.VideoEncoder.__proto__ = this.EventTarget; - this.VideoEncoder.prototype.__proto__ = this.EventTarget.prototype; this.AuthenticatorAssertionResponse.__proto__ = this.AuthenticatorResponse; - this.AuthenticatorAssertionResponse.prototype.__proto__ = this.AuthenticatorResponse.prototype; this.AuthenticatorAttestationResponse.__proto__ = this.AuthenticatorResponse; - this.AuthenticatorAttestationResponse.prototype.__proto__ = this.AuthenticatorResponse.prototype; this.PublicKeyCredential.__proto__ = this.Credential; - this.PublicKeyCredential.prototype.__proto__ = this.Credential.prototype; this.Bluetooth.__proto__ = this.EventTarget; - this.Bluetooth.prototype.__proto__ = this.EventTarget.prototype; this.BluetoothDevice.__proto__ = this.EventTarget; - this.BluetoothDevice.prototype.__proto__ = this.EventTarget.prototype; this.BluetoothRemoteGATTCharacteristic.__proto__ = this.EventTarget; - this.BluetoothRemoteGATTCharacteristic.prototype.__proto__ = this.EventTarget.prototype; this.CaptureController.__proto__ = this.EventTarget; - this.CaptureController.prototype.__proto__ = this.EventTarget.prototype; this.DocumentPictureInPicture.__proto__ = this.EventTarget; - this.DocumentPictureInPicture.prototype.__proto__ = this.EventTarget.prototype; this.HTMLFencedFrameElement.__proto__ = this.HTMLElement; - this.HTMLFencedFrameElement.prototype.__proto__ = this.HTMLElement.prototype; this.FileSystemDirectoryHandle.__proto__ = this.FileSystemHandle; - this.FileSystemDirectoryHandle.prototype.__proto__ = this.FileSystemHandle.prototype; this.FileSystemFileHandle.__proto__ = this.FileSystemHandle; - this.FileSystemFileHandle.prototype.__proto__ = this.FileSystemHandle.prototype; this.FileSystemWritableFileStream.__proto__ = this.WritableStream; - this.FileSystemWritableFileStream.prototype.__proto__ = this.WritableStream.prototype; this.HID.__proto__ = this.EventTarget; - this.HID.prototype.__proto__ = this.EventTarget.prototype; this.HIDConnectionEvent.__proto__ = this.Event; - this.HIDConnectionEvent.prototype.__proto__ = this.Event.prototype; this.HIDDevice.__proto__ = this.EventTarget; - this.HIDDevice.prototype.__proto__ = this.EventTarget.prototype; this.HIDInputReportEvent.__proto__ = this.Event; - this.HIDInputReportEvent.prototype.__proto__ = this.Event.prototype; this.IdentityCredential.__proto__ = this.Credential; - this.IdentityCredential.prototype.__proto__ = this.Credential.prototype; this.IdleDetector.__proto__ = this.EventTarget; - this.IdleDetector.prototype.__proto__ = this.EventTarget.prototype; this.OTPCredential.__proto__ = this.Credential; - this.OTPCredential.prototype.__proto__ = this.Credential.prototype; this.PaymentRequest.__proto__ = this.EventTarget; - this.PaymentRequest.prototype.__proto__ = this.EventTarget.prototype; this.PaymentResponse.__proto__ = this.EventTarget; - this.PaymentResponse.prototype.__proto__ = this.EventTarget.prototype; this.PaymentMethodChangeEvent.__proto__ = this.PaymentRequestUpdateEvent; - this.PaymentMethodChangeEvent.prototype.__proto__ = this.PaymentRequestUpdateEvent.prototype; this.PresentationAvailability.__proto__ = this.EventTarget; - this.PresentationAvailability.prototype.__proto__ = this.EventTarget.prototype; this.PresentationConnection.__proto__ = this.EventTarget; - this.PresentationConnection.prototype.__proto__ = this.EventTarget.prototype; this.PresentationConnectionAvailableEvent.__proto__ = this.Event; - this.PresentationConnectionAvailableEvent.prototype.__proto__ = this.Event.prototype; this.PresentationConnectionCloseEvent.__proto__ = this.Event; - this.PresentationConnectionCloseEvent.prototype.__proto__ = this.Event.prototype; this.PresentationConnectionList.__proto__ = this.EventTarget; - this.PresentationConnectionList.prototype.__proto__ = this.EventTarget.prototype; this.PresentationRequest.__proto__ = this.EventTarget; - this.PresentationRequest.prototype.__proto__ = this.EventTarget.prototype; this.Serial.__proto__ = this.EventTarget; - this.Serial.prototype.__proto__ = this.EventTarget.prototype; this.SerialPort.__proto__ = this.EventTarget; - this.SerialPort.prototype.__proto__ = this.EventTarget.prototype; this.USB.__proto__ = this.EventTarget; - this.USB.prototype.__proto__ = this.EventTarget.prototype; this.USBConnectionEvent.__proto__ = this.Event; - this.USBConnectionEvent.prototype.__proto__ = this.Event.prototype; this.WakeLockSentinel.__proto__ = this.EventTarget; - this.WakeLockSentinel.prototype.__proto__ = this.EventTarget.prototype; this.WindowControlsOverlay.__proto__ = this.EventTarget; - this.WindowControlsOverlay.prototype.__proto__ = this.EventTarget.prototype; this.WindowControlsOverlayGeometryChangeEvent.__proto__ = this.Event; - this.WindowControlsOverlayGeometryChangeEvent.prototype.__proto__ = this.Event.prototype; this.XRBoundedReferenceSpace.__proto__ = this.XRReferenceSpace; - this.XRBoundedReferenceSpace.prototype.__proto__ = this.XRReferenceSpace.prototype; this.XRCPUDepthInformation.__proto__ = this.XRDepthInformation; - this.XRCPUDepthInformation.prototype.__proto__ = this.XRDepthInformation.prototype; this.XRInputSourceEvent.__proto__ = this.Event; - this.XRInputSourceEvent.prototype.__proto__ = this.Event.prototype; this.XRInputSourcesChangeEvent.__proto__ = this.Event; - this.XRInputSourcesChangeEvent.prototype.__proto__ = this.Event.prototype; this.XRLightProbe.__proto__ = this.EventTarget; - this.XRLightProbe.prototype.__proto__ = this.EventTarget.prototype; this.XRReferenceSpace.__proto__ = this.XRSpace; - this.XRReferenceSpace.prototype.__proto__ = this.XRSpace.prototype; this.XRReferenceSpaceEvent.__proto__ = this.Event; - this.XRReferenceSpaceEvent.prototype.__proto__ = this.Event.prototype; this.XRSession.__proto__ = this.EventTarget; - this.XRSession.prototype.__proto__ = this.EventTarget.prototype; this.XRSessionEvent.__proto__ = this.Event; - this.XRSessionEvent.prototype.__proto__ = this.Event.prototype; this.XRSpace.__proto__ = this.EventTarget; - this.XRSpace.prototype.__proto__ = this.EventTarget.prototype; this.XRSystem.__proto__ = this.EventTarget; - this.XRSystem.prototype.__proto__ = this.EventTarget.prototype; this.XRViewerPose.__proto__ = this.XRPose; - this.XRViewerPose.prototype.__proto__ = this.XRPose.prototype; this.XRWebGLDepthInformation.__proto__ = this.XRDepthInformation; - this.XRWebGLDepthInformation.prototype.__proto__ = this.XRDepthInformation.prototype; this.XRWebGLLayer.__proto__ = this.XRLayer; - this.XRWebGLLayer.prototype.__proto__ = this.XRLayer.prototype; this.AnimationPlaybackEvent.__proto__ = this.Event; - this.AnimationPlaybackEvent.prototype.__proto__ = this.Event.prototype; this.CSSAnimation.__proto__ = this.Animation; - this.CSSAnimation.prototype.__proto__ = this.Animation.prototype; this.CSSTransition.__proto__ = this.Animation; - this.CSSTransition.prototype.__proto__ = this.Animation.prototype; this.DocumentTimeline.__proto__ = this.AnimationTimeline; - this.DocumentTimeline.prototype.__proto__ = this.AnimationTimeline.prototype; this.BackgroundFetchRegistration.__proto__ = this.EventTarget; - this.BackgroundFetchRegistration.prototype.__proto__ = this.EventTarget.prototype; this.BrowserCaptureMediaStreamTrack.__proto__ = this.MediaStreamTrack; - this.BrowserCaptureMediaStreamTrack.prototype.__proto__ = this.MediaStreamTrack.prototype; this.CSSScopeRule.__proto__ = this.CSSConditionRule; - this.CSSScopeRule.prototype.__proto__ = this.CSSConditionRule.prototype; this.CSSStartingStyleRule.__proto__ = this.CSSGroupingRule; - this.CSSStartingStyleRule.prototype.__proto__ = this.CSSGroupingRule.prototype; this.ContentVisibilityAutoStateChangeEvent.__proto__ = this.Event; - this.ContentVisibilityAutoStateChangeEvent.prototype.__proto__ = this.Event.prototype; this.DocumentPictureInPictureEvent.__proto__ = this.Event; - this.DocumentPictureInPictureEvent.prototype.__proto__ = this.Event.prototype; this.MutationEvent.__proto__ = this.Event; - this.MutationEvent.prototype.__proto__ = this.Event.prototype; this.Notification.__proto__ = this.EventTarget; - this.Notification.prototype.__proto__ = this.EventTarget.prototype; this.PaymentRequestUpdateEvent.__proto__ = this.Event; - this.PaymentRequestUpdateEvent.prototype.__proto__ = this.Event.prototype; this.PermissionStatus.__proto__ = this.EventTarget; - this.PermissionStatus.prototype.__proto__ = this.EventTarget.prototype; this.RemotePlayback.__proto__ = this.EventTarget; - this.RemotePlayback.prototype.__proto__ = this.EventTarget.prototype; this.ScrollTimeline.__proto__ = this.AnimationTimeline; - this.ScrollTimeline.prototype.__proto__ = this.AnimationTimeline.prototype; this.ViewTimeline.__proto__ = this.ScrollTimeline; - this.ViewTimeline.prototype.__proto__ = this.ScrollTimeline.prototype; this.SharedWorker.__proto__ = this.EventTarget; - this.SharedWorker.prototype.__proto__ = this.EventTarget.prototype; this.SpeechSynthesisErrorEvent.__proto__ = this.SpeechSynthesisEvent; - this.SpeechSynthesisErrorEvent.prototype.__proto__ = this.SpeechSynthesisEvent.prototype; this.SpeechSynthesisEvent.__proto__ = this.Event; - this.SpeechSynthesisEvent.prototype.__proto__ = this.Event.prototype; this.SpeechSynthesisUtterance.__proto__ = this.EventTarget; - this.SpeechSynthesisUtterance.prototype.__proto__ = this.EventTarget.prototype; this.VisibilityStateEntry.__proto__ = this.PerformanceEntry; - this.VisibilityStateEntry.prototype.__proto__ = this.PerformanceEntry.prototype; -}).call(global.ctr); + function initProto() { + this.Audio.prototype = this.HTMLAudioElement.prototype; + this.Image.prototype = this.HTMLImageElement.prototype; + this.Option.prototype = this.HTMLOptionElement.prototype; + this.Window.prototype.__proto__ = this.EventTarget.prototype; + this.XMLHttpRequestUpload.__proto__ = this.XMLHttpRequestEventTarget; + Object.setPrototypeOf(this.XMLHttpRequestUpload.prototype, this.XMLHttpRequestEventTarget.prototype); + this.XMLHttpRequestEventTarget.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.XMLHttpRequestEventTarget.prototype, this.EventTarget.prototype); + this.XMLHttpRequest.__proto__ = this.XMLHttpRequestEventTarget; + Object.setPrototypeOf(this.XMLHttpRequest.prototype, this.XMLHttpRequestEventTarget.prototype); + this.XMLDocument.__proto__ = this.Document; + Object.setPrototypeOf(this.XMLDocument.prototype, this.Document.prototype); + this.Worker.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.Worker.prototype, this.EventTarget.prototype); + this.Window.__proto__ = this.EventTarget; + this.WheelEvent.__proto__ = this.MouseEvent; + Object.setPrototypeOf(this.WheelEvent.prototype, this.MouseEvent.prototype); + this.WebSocket.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.WebSocket.prototype, this.EventTarget.prototype); + this.WebGLContextEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.WebGLContextEvent.prototype, this.Event.prototype); + this.WaveShaperNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.WaveShaperNode.prototype, this.AudioNode.prototype); + this.VisualViewport.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.VisualViewport.prototype, this.EventTarget.prototype); + this.VTTCue.__proto__ = this.TextTrackCue; + Object.setPrototypeOf(this.VTTCue.prototype, this.TextTrackCue.prototype); + this.UIEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.UIEvent.prototype, this.Event.prototype); + this.TransitionEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.TransitionEvent.prototype, this.Event.prototype); + this.TrackEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.TrackEvent.prototype, this.Event.prototype); + this.TouchEvent.__proto__ = this.UIEvent; + Object.setPrototypeOf(this.TouchEvent.prototype, this.UIEvent.prototype); + this.TextTrackList.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.TextTrackList.prototype, this.EventTarget.prototype); + this.TextTrackCue.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.TextTrackCue.prototype, this.EventTarget.prototype); + this.TextTrack.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.TextTrack.prototype, this.EventTarget.prototype); + this.TextEvent.__proto__ = this.UIEvent; + Object.setPrototypeOf(this.TextEvent.prototype, this.UIEvent.prototype); + this.Text.__proto__ = this.CharacterData; + Object.setPrototypeOf(this.Text.prototype, this.CharacterData.prototype); + this.TaskAttributionTiming.__proto__ = this.PerformanceEntry; + Object.setPrototypeOf(this.TaskAttributionTiming.prototype, this.PerformanceEntry.prototype); + this.SubmitEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.SubmitEvent.prototype, this.Event.prototype); + this.StylePropertyMap.__proto__ = this.StylePropertyMapReadOnly; + Object.setPrototypeOf(this.StylePropertyMap.prototype, this.StylePropertyMapReadOnly.prototype); + this.StorageEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.StorageEvent.prototype, this.Event.prototype); + this.StereoPannerNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.StereoPannerNode.prototype, this.AudioNode.prototype); + this.StaticRange.__proto__ = this.AbstractRange; + Object.setPrototypeOf(this.StaticRange.prototype, this.AbstractRange.prototype); + this.ShadowRoot.__proto__ = this.DocumentFragment; + Object.setPrototypeOf(this.ShadowRoot.prototype, this.DocumentFragment.prototype); + this.SecurityPolicyViolationEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.SecurityPolicyViolationEvent.prototype, this.Event.prototype); + this.ScriptProcessorNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.ScriptProcessorNode.prototype, this.AudioNode.prototype); + this.ScreenOrientation.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.ScreenOrientation.prototype, this.EventTarget.prototype); + this.Screen.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.Screen.prototype, this.EventTarget.prototype); + this.SVGViewElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGViewElement.prototype, this.SVGElement.prototype); + this.SVGUseElement.__proto__ = this.SVGGraphicsElement; + Object.setPrototypeOf(this.SVGUseElement.prototype, this.SVGGraphicsElement.prototype); + this.SVGTitleElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGTitleElement.prototype, this.SVGElement.prototype); + this.SVGTextPositioningElement.__proto__ = this.SVGTextContentElement; + Object.setPrototypeOf(this.SVGTextPositioningElement.prototype, this.SVGTextContentElement.prototype); + this.SVGTextPathElement.__proto__ = this.SVGTextContentElement; + Object.setPrototypeOf(this.SVGTextPathElement.prototype, this.SVGTextContentElement.prototype); + this.SVGTextElement.__proto__ = this.SVGTextPositioningElement; + Object.setPrototypeOf(this.SVGTextElement.prototype, this.SVGTextPositioningElement.prototype); + this.SVGTextContentElement.__proto__ = this.SVGGraphicsElement; + Object.setPrototypeOf(this.SVGTextContentElement.prototype, this.SVGGraphicsElement.prototype); + this.SVGTSpanElement.__proto__ = this.SVGTextPositioningElement; + Object.setPrototypeOf(this.SVGTSpanElement.prototype, this.SVGTextPositioningElement.prototype); + this.SVGSymbolElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGSymbolElement.prototype, this.SVGElement.prototype); + this.SVGSwitchElement.__proto__ = this.SVGGraphicsElement; + Object.setPrototypeOf(this.SVGSwitchElement.prototype, this.SVGGraphicsElement.prototype); + this.SVGStyleElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGStyleElement.prototype, this.SVGElement.prototype); + this.SVGStopElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGStopElement.prototype, this.SVGElement.prototype); + this.SVGSetElement.__proto__ = this.SVGAnimationElement; + Object.setPrototypeOf(this.SVGSetElement.prototype, this.SVGAnimationElement.prototype); + this.SVGScriptElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGScriptElement.prototype, this.SVGElement.prototype); + this.SVGSVGElement.__proto__ = this.SVGGraphicsElement; + Object.setPrototypeOf(this.SVGSVGElement.prototype, this.SVGGraphicsElement.prototype); + this.SVGRectElement.__proto__ = this.SVGGeometryElement; + Object.setPrototypeOf(this.SVGRectElement.prototype, this.SVGGeometryElement.prototype); + this.SVGRadialGradientElement.__proto__ = this.SVGGradientElement; + Object.setPrototypeOf(this.SVGRadialGradientElement.prototype, this.SVGGradientElement.prototype); + this.SVGPolylineElement.__proto__ = this.SVGGeometryElement; + Object.setPrototypeOf(this.SVGPolylineElement.prototype, this.SVGGeometryElement.prototype); + this.SVGPolygonElement.__proto__ = this.SVGGeometryElement; + Object.setPrototypeOf(this.SVGPolygonElement.prototype, this.SVGGeometryElement.prototype); + this.SVGPatternElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGPatternElement.prototype, this.SVGElement.prototype); + this.SVGPathElement.__proto__ = this.SVGGeometryElement; + Object.setPrototypeOf(this.SVGPathElement.prototype, this.SVGGeometryElement.prototype); + this.SVGMetadataElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGMetadataElement.prototype, this.SVGElement.prototype); + this.SVGMaskElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGMaskElement.prototype, this.SVGElement.prototype); + this.SVGMarkerElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGMarkerElement.prototype, this.SVGElement.prototype); + this.SVGMPathElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGMPathElement.prototype, this.SVGElement.prototype); + this.SVGLinearGradientElement.__proto__ = this.SVGGradientElement; + Object.setPrototypeOf(this.SVGLinearGradientElement.prototype, this.SVGGradientElement.prototype); + this.SVGLineElement.__proto__ = this.SVGGeometryElement; + Object.setPrototypeOf(this.SVGLineElement.prototype, this.SVGGeometryElement.prototype); + this.SVGImageElement.__proto__ = this.SVGGraphicsElement; + Object.setPrototypeOf(this.SVGImageElement.prototype, this.SVGGraphicsElement.prototype); + this.SVGGraphicsElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGGraphicsElement.prototype, this.SVGElement.prototype); + this.SVGGradientElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGGradientElement.prototype, this.SVGElement.prototype); + this.SVGGeometryElement.__proto__ = this.SVGGraphicsElement; + Object.setPrototypeOf(this.SVGGeometryElement.prototype, this.SVGGraphicsElement.prototype); + this.SVGGElement.__proto__ = this.SVGGraphicsElement; + Object.setPrototypeOf(this.SVGGElement.prototype, this.SVGGraphicsElement.prototype); + this.SVGForeignObjectElement.__proto__ = this.SVGGraphicsElement; + Object.setPrototypeOf(this.SVGForeignObjectElement.prototype, this.SVGGraphicsElement.prototype); + this.SVGFilterElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFilterElement.prototype, this.SVGElement.prototype); + this.SVGFETurbulenceElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFETurbulenceElement.prototype, this.SVGElement.prototype); + this.SVGFETileElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFETileElement.prototype, this.SVGElement.prototype); + this.SVGFESpotLightElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFESpotLightElement.prototype, this.SVGElement.prototype); + this.SVGFESpecularLightingElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFESpecularLightingElement.prototype, this.SVGElement.prototype); + this.SVGFEPointLightElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEPointLightElement.prototype, this.SVGElement.prototype); + this.SVGFEOffsetElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEOffsetElement.prototype, this.SVGElement.prototype); + this.SVGFEMorphologyElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEMorphologyElement.prototype, this.SVGElement.prototype); + this.SVGFEMergeNodeElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEMergeNodeElement.prototype, this.SVGElement.prototype); + this.SVGFEMergeElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEMergeElement.prototype, this.SVGElement.prototype); + this.SVGFEImageElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEImageElement.prototype, this.SVGElement.prototype); + this.SVGFEGaussianBlurElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEGaussianBlurElement.prototype, this.SVGElement.prototype); + this.SVGFEFuncRElement.__proto__ = this.SVGComponentTransferFunctionElement; + Object.setPrototypeOf(this.SVGFEFuncRElement.prototype, this.SVGComponentTransferFunctionElement.prototype); + this.SVGFEFuncGElement.__proto__ = this.SVGComponentTransferFunctionElement; + Object.setPrototypeOf(this.SVGFEFuncGElement.prototype, this.SVGComponentTransferFunctionElement.prototype); + this.SVGFEFuncBElement.__proto__ = this.SVGComponentTransferFunctionElement; + Object.setPrototypeOf(this.SVGFEFuncBElement.prototype, this.SVGComponentTransferFunctionElement.prototype); + this.SVGFEFuncAElement.__proto__ = this.SVGComponentTransferFunctionElement; + Object.setPrototypeOf(this.SVGFEFuncAElement.prototype, this.SVGComponentTransferFunctionElement.prototype); + this.SVGFEFloodElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEFloodElement.prototype, this.SVGElement.prototype); + this.SVGFEDropShadowElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEDropShadowElement.prototype, this.SVGElement.prototype); + this.SVGFEDistantLightElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEDistantLightElement.prototype, this.SVGElement.prototype); + this.SVGFEDisplacementMapElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEDisplacementMapElement.prototype, this.SVGElement.prototype); + this.SVGFEDiffuseLightingElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEDiffuseLightingElement.prototype, this.SVGElement.prototype); + this.SVGFEConvolveMatrixElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEConvolveMatrixElement.prototype, this.SVGElement.prototype); + this.SVGFECompositeElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFECompositeElement.prototype, this.SVGElement.prototype); + this.SVGFEComponentTransferElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEComponentTransferElement.prototype, this.SVGElement.prototype); + this.SVGFEColorMatrixElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEColorMatrixElement.prototype, this.SVGElement.prototype); + this.SVGFEBlendElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGFEBlendElement.prototype, this.SVGElement.prototype); + this.SVGEllipseElement.__proto__ = this.SVGGeometryElement; + Object.setPrototypeOf(this.SVGEllipseElement.prototype, this.SVGGeometryElement.prototype); + this.SVGElement.__proto__ = this.Element; + Object.setPrototypeOf(this.SVGElement.prototype, this.Element.prototype); + this.SVGDescElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGDescElement.prototype, this.SVGElement.prototype); + this.SVGDefsElement.__proto__ = this.SVGGraphicsElement; + Object.setPrototypeOf(this.SVGDefsElement.prototype, this.SVGGraphicsElement.prototype); + this.SVGComponentTransferFunctionElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGComponentTransferFunctionElement.prototype, this.SVGElement.prototype); + this.SVGClipPathElement.__proto__ = this.SVGGraphicsElement; + Object.setPrototypeOf(this.SVGClipPathElement.prototype, this.SVGGraphicsElement.prototype); + this.SVGCircleElement.__proto__ = this.SVGGeometryElement; + Object.setPrototypeOf(this.SVGCircleElement.prototype, this.SVGGeometryElement.prototype); + this.SVGAnimationElement.__proto__ = this.SVGElement; + Object.setPrototypeOf(this.SVGAnimationElement.prototype, this.SVGElement.prototype); + this.SVGAnimateTransformElement.__proto__ = this.SVGAnimationElement; + Object.setPrototypeOf(this.SVGAnimateTransformElement.prototype, this.SVGAnimationElement.prototype); + this.SVGAnimateMotionElement.__proto__ = this.SVGAnimationElement; + Object.setPrototypeOf(this.SVGAnimateMotionElement.prototype, this.SVGAnimationElement.prototype); + this.SVGAnimateElement.__proto__ = this.SVGAnimationElement; + Object.setPrototypeOf(this.SVGAnimateElement.prototype, this.SVGAnimationElement.prototype); + this.SVGAElement.__proto__ = this.SVGGraphicsElement; + Object.setPrototypeOf(this.SVGAElement.prototype, this.SVGGraphicsElement.prototype); + this.Range.__proto__ = this.AbstractRange; + Object.setPrototypeOf(this.Range.prototype, this.AbstractRange.prototype); + this.RadioNodeList.__proto__ = this.NodeList; + Object.setPrototypeOf(this.RadioNodeList.prototype, this.NodeList.prototype); + this.RTCTrackEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.RTCTrackEvent.prototype, this.Event.prototype); + this.RTCSctpTransport.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.RTCSctpTransport.prototype, this.EventTarget.prototype); + this.RTCPeerConnectionIceEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.RTCPeerConnectionIceEvent.prototype, this.Event.prototype); + this.RTCPeerConnectionIceErrorEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.RTCPeerConnectionIceErrorEvent.prototype, this.Event.prototype); + this.RTCPeerConnection.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.RTCPeerConnection.prototype, this.EventTarget.prototype); + this.RTCErrorEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.RTCErrorEvent.prototype, this.Event.prototype); + this.RTCError.__proto__ = this.DOMException; + Object.setPrototypeOf(this.RTCError.prototype, this.DOMException.prototype); + this.RTCDtlsTransport.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.RTCDtlsTransport.prototype, this.EventTarget.prototype); + this.RTCDataChannelEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.RTCDataChannelEvent.prototype, this.Event.prototype); + this.RTCDataChannel.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.RTCDataChannel.prototype, this.EventTarget.prototype); + this.RTCDTMFToneChangeEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.RTCDTMFToneChangeEvent.prototype, this.Event.prototype); + this.RTCDTMFSender.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.RTCDTMFSender.prototype, this.EventTarget.prototype); + this.PromiseRejectionEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.PromiseRejectionEvent.prototype, this.Event.prototype); + this.ProgressEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.ProgressEvent.prototype, this.Event.prototype); + this.ProcessingInstruction.__proto__ = this.CharacterData; + Object.setPrototypeOf(this.ProcessingInstruction.prototype, this.CharacterData.prototype); + this.PopStateEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.PopStateEvent.prototype, this.Event.prototype); + this.PointerEvent.__proto__ = this.MouseEvent; + Object.setPrototypeOf(this.PointerEvent.prototype, this.MouseEvent.prototype); + this.PerformanceResourceTiming.__proto__ = this.PerformanceEntry; + Object.setPrototypeOf(this.PerformanceResourceTiming.prototype, this.PerformanceEntry.prototype); + this.PerformancePaintTiming.__proto__ = this.PerformanceEntry; + Object.setPrototypeOf(this.PerformancePaintTiming.prototype, this.PerformanceEntry.prototype); + this.PerformanceNavigationTiming.__proto__ = this.PerformanceResourceTiming; + Object.setPrototypeOf(this.PerformanceNavigationTiming.prototype, this.PerformanceResourceTiming.prototype); + this.PerformanceMeasure.__proto__ = this.PerformanceEntry; + Object.setPrototypeOf(this.PerformanceMeasure.prototype, this.PerformanceEntry.prototype); + this.PerformanceMark.__proto__ = this.PerformanceEntry; + Object.setPrototypeOf(this.PerformanceMark.prototype, this.PerformanceEntry.prototype); + this.PerformanceLongTaskTiming.__proto__ = this.PerformanceEntry; + Object.setPrototypeOf(this.PerformanceLongTaskTiming.prototype, this.PerformanceEntry.prototype); + this.PerformanceEventTiming.__proto__ = this.PerformanceEntry; + Object.setPrototypeOf(this.PerformanceEventTiming.prototype, this.PerformanceEntry.prototype); + this.PerformanceElementTiming.__proto__ = this.PerformanceEntry; + Object.setPrototypeOf(this.PerformanceElementTiming.prototype, this.PerformanceEntry.prototype); + this.Performance.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.Performance.prototype, this.EventTarget.prototype); + this.PannerNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.PannerNode.prototype, this.AudioNode.prototype); + this.PageTransitionEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.PageTransitionEvent.prototype, this.Event.prototype); + this.OscillatorNode.__proto__ = this.AudioScheduledSourceNode; + Object.setPrototypeOf(this.OscillatorNode.prototype, this.AudioScheduledSourceNode.prototype); + this.OffscreenCanvas.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.OffscreenCanvas.prototype, this.EventTarget.prototype); + this.OfflineAudioContext.__proto__ = this.BaseAudioContext; + Object.setPrototypeOf(this.OfflineAudioContext.prototype, this.BaseAudioContext.prototype); + this.OfflineAudioCompletionEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.OfflineAudioCompletionEvent.prototype, this.Event.prototype); + this.Node.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.Node.prototype, this.EventTarget.prototype); + this.NetworkInformation.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.NetworkInformation.prototype, this.EventTarget.prototype); + this.MouseEvent.__proto__ = this.UIEvent; + Object.setPrototypeOf(this.MouseEvent.prototype, this.UIEvent.prototype); + this.MessagePort.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.MessagePort.prototype, this.EventTarget.prototype); + this.MessageEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.MessageEvent.prototype, this.Event.prototype); + this.MediaStreamTrackEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.MediaStreamTrackEvent.prototype, this.Event.prototype); + this.MediaStreamEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.MediaStreamEvent.prototype, this.Event.prototype); + this.MediaStreamAudioSourceNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.MediaStreamAudioSourceNode.prototype, this.AudioNode.prototype); + this.MediaStreamAudioDestinationNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.MediaStreamAudioDestinationNode.prototype, this.AudioNode.prototype); + this.MediaStream.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.MediaStream.prototype, this.EventTarget.prototype); + this.MediaRecorder.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.MediaRecorder.prototype, this.EventTarget.prototype); + this.MediaQueryListEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.MediaQueryListEvent.prototype, this.Event.prototype); + this.MediaQueryList.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.MediaQueryList.prototype, this.EventTarget.prototype); + this.MediaEncryptedEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.MediaEncryptedEvent.prototype, this.Event.prototype); + this.MediaElementAudioSourceNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.MediaElementAudioSourceNode.prototype, this.AudioNode.prototype); + this.LayoutShift.__proto__ = this.PerformanceEntry; + Object.setPrototypeOf(this.LayoutShift.prototype, this.PerformanceEntry.prototype); + this.LargestContentfulPaint.__proto__ = this.PerformanceEntry; + Object.setPrototypeOf(this.LargestContentfulPaint.prototype, this.PerformanceEntry.prototype); + this.KeyframeEffect.__proto__ = this.AnimationEffect; + Object.setPrototypeOf(this.KeyframeEffect.prototype, this.AnimationEffect.prototype); + this.KeyboardEvent.__proto__ = this.UIEvent; + Object.setPrototypeOf(this.KeyboardEvent.prototype, this.UIEvent.prototype); + this.InputEvent.__proto__ = this.UIEvent; + Object.setPrototypeOf(this.InputEvent.prototype, this.UIEvent.prototype); + this.InputDeviceInfo.__proto__ = this.MediaDeviceInfo; + Object.setPrototypeOf(this.InputDeviceInfo.prototype, this.MediaDeviceInfo.prototype); + this.IIRFilterNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.IIRFilterNode.prototype, this.AudioNode.prototype); + this.IDBVersionChangeEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.IDBVersionChangeEvent.prototype, this.Event.prototype); + this.IDBTransaction.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.IDBTransaction.prototype, this.EventTarget.prototype); + this.IDBRequest.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.IDBRequest.prototype, this.EventTarget.prototype); + this.IDBOpenDBRequest.__proto__ = this.IDBRequest; + Object.setPrototypeOf(this.IDBOpenDBRequest.prototype, this.IDBRequest.prototype); + this.IDBDatabase.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.IDBDatabase.prototype, this.EventTarget.prototype); + this.IDBCursorWithValue.__proto__ = this.IDBCursor; + Object.setPrototypeOf(this.IDBCursorWithValue.prototype, this.IDBCursor.prototype); + this.HashChangeEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.HashChangeEvent.prototype, this.Event.prototype); + this.HTMLVideoElement.__proto__ = this.HTMLMediaElement; + Object.setPrototypeOf(this.HTMLVideoElement.prototype, this.HTMLMediaElement.prototype); + this.HTMLUnknownElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLUnknownElement.prototype, this.HTMLElement.prototype); + this.HTMLUListElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLUListElement.prototype, this.HTMLElement.prototype); + this.HTMLTrackElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLTrackElement.prototype, this.HTMLElement.prototype); + this.HTMLTitleElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLTitleElement.prototype, this.HTMLElement.prototype); + this.HTMLTimeElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLTimeElement.prototype, this.HTMLElement.prototype); + this.HTMLTextAreaElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLTextAreaElement.prototype, this.HTMLElement.prototype); + this.HTMLTemplateElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLTemplateElement.prototype, this.HTMLElement.prototype); + this.HTMLTableSectionElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLTableSectionElement.prototype, this.HTMLElement.prototype); + this.HTMLTableRowElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLTableRowElement.prototype, this.HTMLElement.prototype); + this.HTMLTableElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLTableElement.prototype, this.HTMLElement.prototype); + this.HTMLTableColElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLTableColElement.prototype, this.HTMLElement.prototype); + this.HTMLTableCellElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLTableCellElement.prototype, this.HTMLElement.prototype); + this.HTMLTableCaptionElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLTableCaptionElement.prototype, this.HTMLElement.prototype); + this.HTMLStyleElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLStyleElement.prototype, this.HTMLElement.prototype); + this.HTMLSpanElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLSpanElement.prototype, this.HTMLElement.prototype); + this.HTMLSourceElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLSourceElement.prototype, this.HTMLElement.prototype); + this.HTMLSlotElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLSlotElement.prototype, this.HTMLElement.prototype); + this.HTMLSelectElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLSelectElement.prototype, this.HTMLElement.prototype); + this.HTMLScriptElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLScriptElement.prototype, this.HTMLElement.prototype); + this.HTMLQuoteElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLQuoteElement.prototype, this.HTMLElement.prototype); + this.HTMLProgressElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLProgressElement.prototype, this.HTMLElement.prototype); + this.HTMLPreElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLPreElement.prototype, this.HTMLElement.prototype); + this.HTMLPictureElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLPictureElement.prototype, this.HTMLElement.prototype); + this.HTMLParamElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLParamElement.prototype, this.HTMLElement.prototype); + this.HTMLParagraphElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLParagraphElement.prototype, this.HTMLElement.prototype); + this.HTMLOutputElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLOutputElement.prototype, this.HTMLElement.prototype); + this.HTMLOptionsCollection.__proto__ = this.HTMLCollection; + Object.setPrototypeOf(this.HTMLOptionsCollection.prototype, this.HTMLCollection.prototype); + this.HTMLOptionElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLOptionElement.prototype, this.HTMLElement.prototype); + this.HTMLOptGroupElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLOptGroupElement.prototype, this.HTMLElement.prototype); + this.HTMLObjectElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLObjectElement.prototype, this.HTMLElement.prototype); + this.HTMLOListElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLOListElement.prototype, this.HTMLElement.prototype); + this.HTMLModElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLModElement.prototype, this.HTMLElement.prototype); + this.HTMLMeterElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLMeterElement.prototype, this.HTMLElement.prototype); + this.HTMLMetaElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLMetaElement.prototype, this.HTMLElement.prototype); + this.HTMLMenuElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLMenuElement.prototype, this.HTMLElement.prototype); + this.HTMLMediaElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLMediaElement.prototype, this.HTMLElement.prototype); + this.HTMLMarqueeElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLMarqueeElement.prototype, this.HTMLElement.prototype); + this.HTMLMapElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLMapElement.prototype, this.HTMLElement.prototype); + this.HTMLLinkElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLLinkElement.prototype, this.HTMLElement.prototype); + this.HTMLLegendElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLLegendElement.prototype, this.HTMLElement.prototype); + this.HTMLLabelElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLLabelElement.prototype, this.HTMLElement.prototype); + this.HTMLLIElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLLIElement.prototype, this.HTMLElement.prototype); + this.HTMLInputElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLInputElement.prototype, this.HTMLElement.prototype); + this.HTMLImageElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLImageElement.prototype, this.HTMLElement.prototype); + this.HTMLIFrameElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLIFrameElement.prototype, this.HTMLElement.prototype); + this.HTMLHtmlElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLHtmlElement.prototype, this.HTMLElement.prototype); + this.HTMLHeadingElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLHeadingElement.prototype, this.HTMLElement.prototype); + this.HTMLHeadElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLHeadElement.prototype, this.HTMLElement.prototype); + this.HTMLHRElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLHRElement.prototype, this.HTMLElement.prototype); + this.HTMLFrameSetElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLFrameSetElement.prototype, this.HTMLElement.prototype); + this.HTMLFrameElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLFrameElement.prototype, this.HTMLElement.prototype); + this.HTMLFormElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLFormElement.prototype, this.HTMLElement.prototype); + this.HTMLFormControlsCollection.__proto__ = this.HTMLCollection; + Object.setPrototypeOf(this.HTMLFormControlsCollection.prototype, this.HTMLCollection.prototype); + this.HTMLFontElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLFontElement.prototype, this.HTMLElement.prototype); + this.HTMLFieldSetElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLFieldSetElement.prototype, this.HTMLElement.prototype); + this.HTMLEmbedElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLEmbedElement.prototype, this.HTMLElement.prototype); + this.HTMLElement.__proto__ = this.Element; + Object.setPrototypeOf(this.HTMLElement.prototype, this.Element.prototype); + this.HTMLDocument.__proto__ = this.Document; + Object.setPrototypeOf(this.HTMLDocument.prototype, this.Document.prototype); + this.HTMLDivElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLDivElement.prototype, this.HTMLElement.prototype); + this.HTMLDirectoryElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLDirectoryElement.prototype, this.HTMLElement.prototype); + this.HTMLDialogElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLDialogElement.prototype, this.HTMLElement.prototype); + this.HTMLDetailsElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLDetailsElement.prototype, this.HTMLElement.prototype); + this.HTMLDataListElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLDataListElement.prototype, this.HTMLElement.prototype); + this.HTMLDataElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLDataElement.prototype, this.HTMLElement.prototype); + this.HTMLDListElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLDListElement.prototype, this.HTMLElement.prototype); + this.HTMLCanvasElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLCanvasElement.prototype, this.HTMLElement.prototype); + this.HTMLButtonElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLButtonElement.prototype, this.HTMLElement.prototype); + this.HTMLBodyElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLBodyElement.prototype, this.HTMLElement.prototype); + this.HTMLBaseElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLBaseElement.prototype, this.HTMLElement.prototype); + this.HTMLBRElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLBRElement.prototype, this.HTMLElement.prototype); + this.HTMLAudioElement.__proto__ = this.HTMLMediaElement; + Object.setPrototypeOf(this.HTMLAudioElement.prototype, this.HTMLMediaElement.prototype); + this.HTMLAreaElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLAreaElement.prototype, this.HTMLElement.prototype); + this.HTMLAnchorElement.__proto__ = this.HTMLElement; + Object.setPrototypeOf(this.HTMLAnchorElement.prototype, this.HTMLElement.prototype); + this.GamepadEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.GamepadEvent.prototype, this.Event.prototype); + this.GainNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.GainNode.prototype, this.AudioNode.prototype); + this.FormDataEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.FormDataEvent.prototype, this.Event.prototype); + this.FontFaceSetLoadEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.FontFaceSetLoadEvent.prototype, this.Event.prototype); + this.FocusEvent.__proto__ = this.UIEvent; + Object.setPrototypeOf(this.FocusEvent.prototype, this.UIEvent.prototype); + this.FileReader.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.FileReader.prototype, this.EventTarget.prototype); + this.File.__proto__ = this.Blob; + Object.setPrototypeOf(this.File.prototype, this.Blob.prototype); + this.EventSource.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.EventSource.prototype, this.EventTarget.prototype); + this.ErrorEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.ErrorEvent.prototype, this.Event.prototype); + this.Element.__proto__ = this.Node; + Object.setPrototypeOf(this.Element.prototype, this.Node.prototype); + this.DynamicsCompressorNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.DynamicsCompressorNode.prototype, this.AudioNode.prototype); + this.DragEvent.__proto__ = this.MouseEvent; + Object.setPrototypeOf(this.DragEvent.prototype, this.MouseEvent.prototype); + this.DocumentType.__proto__ = this.Node; + Object.setPrototypeOf(this.DocumentType.prototype, this.Node.prototype); + this.DocumentFragment.__proto__ = this.Node; + Object.setPrototypeOf(this.DocumentFragment.prototype, this.Node.prototype); + this.Document.__proto__ = this.Node; + Object.setPrototypeOf(this.Document.prototype, this.Node.prototype); + this.DelayNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.DelayNode.prototype, this.AudioNode.prototype); + this.DOMRect.__proto__ = this.DOMRectReadOnly; + Object.setPrototypeOf(this.DOMRect.prototype, this.DOMRectReadOnly.prototype); + this.DOMPoint.__proto__ = this.DOMPointReadOnly; + Object.setPrototypeOf(this.DOMPoint.prototype, this.DOMPointReadOnly.prototype); + this.DOMMatrix.__proto__ = this.DOMMatrixReadOnly; + Object.setPrototypeOf(this.DOMMatrix.prototype, this.DOMMatrixReadOnly.prototype); + this.CustomEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.CustomEvent.prototype, this.Event.prototype); + this.ConvolverNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.ConvolverNode.prototype, this.AudioNode.prototype); + this.ConstantSourceNode.__proto__ = this.AudioScheduledSourceNode; + Object.setPrototypeOf(this.ConstantSourceNode.prototype, this.AudioScheduledSourceNode.prototype); + this.CompositionEvent.__proto__ = this.UIEvent; + Object.setPrototypeOf(this.CompositionEvent.prototype, this.UIEvent.prototype); + this.Comment.__proto__ = this.CharacterData; + Object.setPrototypeOf(this.Comment.prototype, this.CharacterData.prototype); + this.CloseEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.CloseEvent.prototype, this.Event.prototype); + this.ClipboardEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.ClipboardEvent.prototype, this.Event.prototype); + this.CharacterData.__proto__ = this.Node; + Object.setPrototypeOf(this.CharacterData.prototype, this.Node.prototype); + this.ChannelSplitterNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.ChannelSplitterNode.prototype, this.AudioNode.prototype); + this.ChannelMergerNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.ChannelMergerNode.prototype, this.AudioNode.prototype); + this.CanvasCaptureMediaStreamTrack.__proto__ = this.MediaStreamTrack; + Object.setPrototypeOf(this.CanvasCaptureMediaStreamTrack.prototype, this.MediaStreamTrack.prototype); + this.CSSUnparsedValue.__proto__ = this.CSSStyleValue; + Object.setPrototypeOf(this.CSSUnparsedValue.prototype, this.CSSStyleValue.prototype); + this.CSSUnitValue.__proto__ = this.CSSNumericValue; + Object.setPrototypeOf(this.CSSUnitValue.prototype, this.CSSNumericValue.prototype); + this.CSSTranslate.__proto__ = this.CSSTransformComponent; + Object.setPrototypeOf(this.CSSTranslate.prototype, this.CSSTransformComponent.prototype); + this.CSSTransformValue.__proto__ = this.CSSStyleValue; + Object.setPrototypeOf(this.CSSTransformValue.prototype, this.CSSStyleValue.prototype); + this.CSSSupportsRule.__proto__ = this.CSSConditionRule; + Object.setPrototypeOf(this.CSSSupportsRule.prototype, this.CSSConditionRule.prototype); + this.CSSStyleSheet.__proto__ = this.StyleSheet; + Object.setPrototypeOf(this.CSSStyleSheet.prototype, this.StyleSheet.prototype); + this.CSSStyleRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSStyleRule.prototype, this.CSSRule.prototype); + this.CSSSkewY.__proto__ = this.CSSTransformComponent; + Object.setPrototypeOf(this.CSSSkewY.prototype, this.CSSTransformComponent.prototype); + this.CSSSkewX.__proto__ = this.CSSTransformComponent; + Object.setPrototypeOf(this.CSSSkewX.prototype, this.CSSTransformComponent.prototype); + this.CSSSkew.__proto__ = this.CSSTransformComponent; + Object.setPrototypeOf(this.CSSSkew.prototype, this.CSSTransformComponent.prototype); + this.CSSScale.__proto__ = this.CSSTransformComponent; + Object.setPrototypeOf(this.CSSScale.prototype, this.CSSTransformComponent.prototype); + this.CSSRotate.__proto__ = this.CSSTransformComponent; + Object.setPrototypeOf(this.CSSRotate.prototype, this.CSSTransformComponent.prototype); + this.CSSPropertyRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSPropertyRule.prototype, this.CSSRule.prototype); + this.CSSPositionValue.__proto__ = this.CSSStyleValue; + Object.setPrototypeOf(this.CSSPositionValue.prototype, this.CSSStyleValue.prototype); + this.CSSPerspective.__proto__ = this.CSSTransformComponent; + Object.setPrototypeOf(this.CSSPerspective.prototype, this.CSSTransformComponent.prototype); + this.CSSPageRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSPageRule.prototype, this.CSSRule.prototype); + this.CSSNumericValue.__proto__ = this.CSSStyleValue; + Object.setPrototypeOf(this.CSSNumericValue.prototype, this.CSSStyleValue.prototype); + this.CSSNamespaceRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSNamespaceRule.prototype, this.CSSRule.prototype); + this.CSSMediaRule.__proto__ = this.CSSConditionRule; + Object.setPrototypeOf(this.CSSMediaRule.prototype, this.CSSConditionRule.prototype); + this.CSSMatrixComponent.__proto__ = this.CSSTransformComponent; + Object.setPrototypeOf(this.CSSMatrixComponent.prototype, this.CSSTransformComponent.prototype); + this.CSSMathValue.__proto__ = this.CSSNumericValue; + Object.setPrototypeOf(this.CSSMathValue.prototype, this.CSSNumericValue.prototype); + this.CSSMathSum.__proto__ = this.CSSMathValue; + Object.setPrototypeOf(this.CSSMathSum.prototype, this.CSSMathValue.prototype); + this.CSSMathProduct.__proto__ = this.CSSMathValue; + Object.setPrototypeOf(this.CSSMathProduct.prototype, this.CSSMathValue.prototype); + this.CSSMathNegate.__proto__ = this.CSSMathValue; + Object.setPrototypeOf(this.CSSMathNegate.prototype, this.CSSMathValue.prototype); + this.CSSMathMin.__proto__ = this.CSSMathValue; + Object.setPrototypeOf(this.CSSMathMin.prototype, this.CSSMathValue.prototype); + this.CSSMathMax.__proto__ = this.CSSMathValue; + Object.setPrototypeOf(this.CSSMathMax.prototype, this.CSSMathValue.prototype); + this.CSSMathInvert.__proto__ = this.CSSMathValue; + Object.setPrototypeOf(this.CSSMathInvert.prototype, this.CSSMathValue.prototype); + this.CSSMathClamp.__proto__ = this.CSSMathValue; + Object.setPrototypeOf(this.CSSMathClamp.prototype, this.CSSMathValue.prototype); + this.CSSLayerStatementRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSLayerStatementRule.prototype, this.CSSRule.prototype); + this.CSSLayerBlockRule.__proto__ = this.CSSGroupingRule; + Object.setPrototypeOf(this.CSSLayerBlockRule.prototype, this.CSSGroupingRule.prototype); + this.CSSKeywordValue.__proto__ = this.CSSStyleValue; + Object.setPrototypeOf(this.CSSKeywordValue.prototype, this.CSSStyleValue.prototype); + this.CSSKeyframesRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSKeyframesRule.prototype, this.CSSRule.prototype); + this.CSSKeyframeRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSKeyframeRule.prototype, this.CSSRule.prototype); + this.CSSImportRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSImportRule.prototype, this.CSSRule.prototype); + this.CSSImageValue.__proto__ = this.CSSStyleValue; + Object.setPrototypeOf(this.CSSImageValue.prototype, this.CSSStyleValue.prototype); + this.CSSGroupingRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSGroupingRule.prototype, this.CSSRule.prototype); + this.CSSFontFaceRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSFontFaceRule.prototype, this.CSSRule.prototype); + this.CSSCounterStyleRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSCounterStyleRule.prototype, this.CSSRule.prototype); + this.CSSConditionRule.__proto__ = this.CSSGroupingRule; + Object.setPrototypeOf(this.CSSConditionRule.prototype, this.CSSGroupingRule.prototype); + this.CDATASection.__proto__ = this.Text; + Object.setPrototypeOf(this.CDATASection.prototype, this.Text.prototype); + this.BroadcastChannel.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.BroadcastChannel.prototype, this.EventTarget.prototype); + this.BlobEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.BlobEvent.prototype, this.Event.prototype); + this.BiquadFilterNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.BiquadFilterNode.prototype, this.AudioNode.prototype); + this.BeforeUnloadEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.BeforeUnloadEvent.prototype, this.Event.prototype); + this.BeforeInstallPromptEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.BeforeInstallPromptEvent.prototype, this.Event.prototype); + this.BaseAudioContext.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.BaseAudioContext.prototype, this.EventTarget.prototype); + this.AudioWorkletNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.AudioWorkletNode.prototype, this.AudioNode.prototype); + this.AudioScheduledSourceNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.AudioScheduledSourceNode.prototype, this.AudioNode.prototype); + this.AudioProcessingEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.AudioProcessingEvent.prototype, this.Event.prototype); + this.AudioNode.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.AudioNode.prototype, this.EventTarget.prototype); + this.AudioDestinationNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.AudioDestinationNode.prototype, this.AudioNode.prototype); + this.AudioContext.__proto__ = this.BaseAudioContext; + Object.setPrototypeOf(this.AudioContext.prototype, this.BaseAudioContext.prototype); + this.AudioBufferSourceNode.__proto__ = this.AudioScheduledSourceNode; + Object.setPrototypeOf(this.AudioBufferSourceNode.prototype, this.AudioScheduledSourceNode.prototype); + this.Attr.__proto__ = this.Node; + Object.setPrototypeOf(this.Attr.prototype, this.Node.prototype); + this.AnimationEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.AnimationEvent.prototype, this.Event.prototype); + this.Animation.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.Animation.prototype, this.EventTarget.prototype); + this.AnalyserNode.__proto__ = this.AudioNode; + Object.setPrototypeOf(this.AnalyserNode.prototype, this.AudioNode.prototype); + this.AbortSignal.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.AbortSignal.prototype, this.EventTarget.prototype); + this.AbsoluteOrientationSensor.__proto__ = this.OrientationSensor; + Object.setPrototypeOf(this.AbsoluteOrientationSensor.prototype, this.OrientationSensor.prototype); + this.Accelerometer.__proto__ = this.Sensor; + Object.setPrototypeOf(this.Accelerometer.prototype, this.Sensor.prototype); + this.AudioWorklet.__proto__ = this.Worklet; + Object.setPrototypeOf(this.AudioWorklet.prototype, this.Worklet.prototype); + this.Clipboard.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.Clipboard.prototype, this.EventTarget.prototype); + this.CookieChangeEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.CookieChangeEvent.prototype, this.Event.prototype); + this.CookieStore.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.CookieStore.prototype, this.EventTarget.prototype); + this.DeviceMotionEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.DeviceMotionEvent.prototype, this.Event.prototype); + this.DeviceOrientationEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.DeviceOrientationEvent.prototype, this.Event.prototype); + this.FederatedCredential.__proto__ = this.Credential; + Object.setPrototypeOf(this.FederatedCredential.prototype, this.Credential.prototype); + this.Gyroscope.__proto__ = this.Sensor; + Object.setPrototypeOf(this.Gyroscope.prototype, this.Sensor.prototype); + this.LinearAccelerationSensor.__proto__ = this.Accelerometer; + Object.setPrototypeOf(this.LinearAccelerationSensor.prototype, this.Accelerometer.prototype); + this.MIDIAccess.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.MIDIAccess.prototype, this.EventTarget.prototype); + this.MIDIConnectionEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.MIDIConnectionEvent.prototype, this.Event.prototype); + this.MIDIInput.__proto__ = this.MIDIPort; + Object.setPrototypeOf(this.MIDIInput.prototype, this.MIDIPort.prototype); + this.MIDIMessageEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.MIDIMessageEvent.prototype, this.Event.prototype); + this.MIDIOutput.__proto__ = this.MIDIPort; + Object.setPrototypeOf(this.MIDIOutput.prototype, this.MIDIPort.prototype); + this.MIDIPort.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.MIDIPort.prototype, this.EventTarget.prototype); + this.MediaDevices.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.MediaDevices.prototype, this.EventTarget.prototype); + this.MediaKeyMessageEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.MediaKeyMessageEvent.prototype, this.Event.prototype); + this.MediaKeySession.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.MediaKeySession.prototype, this.EventTarget.prototype); + this.NavigatorManagedData.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.NavigatorManagedData.prototype, this.EventTarget.prototype); + this.OrientationSensor.__proto__ = this.Sensor; + Object.setPrototypeOf(this.OrientationSensor.prototype, this.Sensor.prototype); + this.PasswordCredential.__proto__ = this.Credential; + Object.setPrototypeOf(this.PasswordCredential.prototype, this.Credential.prototype); + this.RTCIceTransport.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.RTCIceTransport.prototype, this.EventTarget.prototype); + this.RelativeOrientationSensor.__proto__ = this.OrientationSensor; + Object.setPrototypeOf(this.RelativeOrientationSensor.prototype, this.OrientationSensor.prototype); + this.Sensor.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.Sensor.prototype, this.EventTarget.prototype); + this.SensorErrorEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.SensorErrorEvent.prototype, this.Event.prototype); + this.ServiceWorker.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.ServiceWorker.prototype, this.EventTarget.prototype); + this.ServiceWorkerContainer.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.ServiceWorkerContainer.prototype, this.EventTarget.prototype); + this.ServiceWorkerRegistration.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.ServiceWorkerRegistration.prototype, this.EventTarget.prototype); + this.StorageManager.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.StorageManager.prototype, this.EventTarget.prototype); + this.XRLayer.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.XRLayer.prototype, this.EventTarget.prototype); + this.AuthenticatorAssertionResponse.__proto__ = this.AuthenticatorResponse; + Object.setPrototypeOf(this.AuthenticatorAssertionResponse.prototype, this.AuthenticatorResponse.prototype); + this.AuthenticatorAttestationResponse.__proto__ = this.AuthenticatorResponse; + Object.setPrototypeOf(this.AuthenticatorAttestationResponse.prototype, this.AuthenticatorResponse.prototype); + this.PublicKeyCredential.__proto__ = this.Credential; + Object.setPrototypeOf(this.PublicKeyCredential.prototype, this.Credential.prototype); + this.BatteryManager.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.BatteryManager.prototype, this.EventTarget.prototype); + this.Bluetooth.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.Bluetooth.prototype, this.EventTarget.prototype); + this.BluetoothDevice.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.BluetoothDevice.prototype, this.EventTarget.prototype); + this.BluetoothRemoteGATTCharacteristic.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.BluetoothRemoteGATTCharacteristic.prototype, this.EventTarget.prototype); + this.BrowserCaptureMediaStreamTrack.__proto__ = this.MediaStreamTrack; + Object.setPrototypeOf(this.BrowserCaptureMediaStreamTrack.prototype, this.MediaStreamTrack.prototype); + this.FileSystemDirectoryHandle.__proto__ = this.FileSystemHandle; + Object.setPrototypeOf(this.FileSystemDirectoryHandle.prototype, this.FileSystemHandle.prototype); + this.FileSystemFileHandle.__proto__ = this.FileSystemHandle; + Object.setPrototypeOf(this.FileSystemFileHandle.prototype, this.FileSystemHandle.prototype); + this.FileSystemWritableFileStream.__proto__ = this.WritableStream; + Object.setPrototypeOf(this.FileSystemWritableFileStream.prototype, this.WritableStream.prototype); + this.GravitySensor.__proto__ = this.Accelerometer; + Object.setPrototypeOf(this.GravitySensor.prototype, this.Accelerometer.prototype); + this.HID.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.HID.prototype, this.EventTarget.prototype); + this.HIDConnectionEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.HIDConnectionEvent.prototype, this.Event.prototype); + this.HIDDevice.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.HIDDevice.prototype, this.EventTarget.prototype); + this.HIDInputReportEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.HIDInputReportEvent.prototype, this.Event.prototype); + this.IdleDetector.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.IdleDetector.prototype, this.EventTarget.prototype); + this.MediaStreamTrackGenerator.__proto__ = this.MediaStreamTrack; + Object.setPrototypeOf(this.MediaStreamTrackGenerator.prototype, this.MediaStreamTrack.prototype); + this.OTPCredential.__proto__ = this.Credential; + Object.setPrototypeOf(this.OTPCredential.prototype, this.Credential.prototype); + this.PaymentRequest.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.PaymentRequest.prototype, this.EventTarget.prototype); + this.PaymentResponse.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.PaymentResponse.prototype, this.EventTarget.prototype); + this.PaymentMethodChangeEvent.__proto__ = this.PaymentRequestUpdateEvent; + Object.setPrototypeOf(this.PaymentMethodChangeEvent.prototype, this.PaymentRequestUpdateEvent.prototype); + this.PresentationAvailability.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.PresentationAvailability.prototype, this.EventTarget.prototype); + this.PresentationConnection.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.PresentationConnection.prototype, this.EventTarget.prototype); + this.PresentationConnectionAvailableEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.PresentationConnectionAvailableEvent.prototype, this.Event.prototype); + this.PresentationConnectionCloseEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.PresentationConnectionCloseEvent.prototype, this.Event.prototype); + this.PresentationConnectionList.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.PresentationConnectionList.prototype, this.EventTarget.prototype); + this.PresentationRequest.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.PresentationRequest.prototype, this.EventTarget.prototype); + this.Profiler.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.Profiler.prototype, this.EventTarget.prototype); + this.ScreenDetailed.__proto__ = this.Screen; + Object.setPrototypeOf(this.ScreenDetailed.prototype, this.Screen.prototype); + this.ScreenDetails.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.ScreenDetails.prototype, this.EventTarget.prototype); + this.Serial.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.Serial.prototype, this.EventTarget.prototype); + this.SerialPort.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.SerialPort.prototype, this.EventTarget.prototype); + this.USB.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.USB.prototype, this.EventTarget.prototype); + this.USBConnectionEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.USBConnectionEvent.prototype, this.Event.prototype); + this.VirtualKeyboard.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.VirtualKeyboard.prototype, this.EventTarget.prototype); + this.WakeLockSentinel.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.WakeLockSentinel.prototype, this.EventTarget.prototype); + this.WebTransportError.__proto__ = this.DOMException; + Object.setPrototypeOf(this.WebTransportError.prototype, this.DOMException.prototype); + this.XRBoundedReferenceSpace.__proto__ = this.XRReferenceSpace; + Object.setPrototypeOf(this.XRBoundedReferenceSpace.prototype, this.XRReferenceSpace.prototype); + this.XRInputSourceEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.XRInputSourceEvent.prototype, this.Event.prototype); + this.XRInputSourcesChangeEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.XRInputSourcesChangeEvent.prototype, this.Event.prototype); + this.XRReferenceSpace.__proto__ = this.XRSpace; + Object.setPrototypeOf(this.XRReferenceSpace.prototype, this.XRSpace.prototype); + this.XRReferenceSpaceEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.XRReferenceSpaceEvent.prototype, this.Event.prototype); + this.XRSession.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.XRSession.prototype, this.EventTarget.prototype); + this.XRSessionEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.XRSessionEvent.prototype, this.Event.prototype); + this.XRSpace.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.XRSpace.prototype, this.EventTarget.prototype); + this.XRSystem.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.XRSystem.prototype, this.EventTarget.prototype); + this.XRViewerPose.__proto__ = this.XRPose; + Object.setPrototypeOf(this.XRViewerPose.prototype, this.XRPose.prototype); + this.XRWebGLLayer.__proto__ = this.XRLayer; + Object.setPrototypeOf(this.XRWebGLLayer.prototype, this.XRLayer.prototype); + this.XRCPUDepthInformation.__proto__ = this.XRDepthInformation; + Object.setPrototypeOf(this.XRCPUDepthInformation.prototype, this.XRDepthInformation.prototype); + this.XRWebGLDepthInformation.__proto__ = this.XRDepthInformation; + Object.setPrototypeOf(this.XRWebGLDepthInformation.prototype, this.XRDepthInformation.prototype); + this.XRLightProbe.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.XRLightProbe.prototype, this.EventTarget.prototype); + this.AnimationPlaybackEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.AnimationPlaybackEvent.prototype, this.Event.prototype); + this.CSSAnimation.__proto__ = this.Animation; + Object.setPrototypeOf(this.CSSAnimation.prototype, this.Animation.prototype); + this.CSSTransition.__proto__ = this.Animation; + Object.setPrototypeOf(this.CSSTransition.prototype, this.Animation.prototype); + this.DocumentTimeline.__proto__ = this.AnimationTimeline; + Object.setPrototypeOf(this.DocumentTimeline.prototype, this.AnimationTimeline.prototype); + this.BackgroundFetchRegistration.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.BackgroundFetchRegistration.prototype, this.EventTarget.prototype); + this.CSSFontPaletteValuesRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSFontPaletteValuesRule.prototype, this.CSSRule.prototype); + this.MediaSource.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.MediaSource.prototype, this.EventTarget.prototype); + this.SourceBuffer.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.SourceBuffer.prototype, this.EventTarget.prototype); + this.SourceBufferList.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.SourceBufferList.prototype, this.EventTarget.prototype); + this.MediaStreamTrack.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.MediaStreamTrack.prototype, this.EventTarget.prototype); + this.NavigateEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.NavigateEvent.prototype, this.Event.prototype); + this.Navigation.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.Navigation.prototype, this.EventTarget.prototype); + this.NavigationCurrentEntryChangeEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.NavigationCurrentEntryChangeEvent.prototype, this.Event.prototype); + this.NavigationHistoryEntry.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.NavigationHistoryEntry.prototype, this.EventTarget.prototype); + this.Notification.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.Notification.prototype, this.EventTarget.prototype); + this.PaymentRequestUpdateEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.PaymentRequestUpdateEvent.prototype, this.Event.prototype); + this.PermissionStatus.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.PermissionStatus.prototype, this.EventTarget.prototype); + this.PictureInPictureEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.PictureInPictureEvent.prototype, this.Event.prototype); + this.PictureInPictureWindow.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.PictureInPictureWindow.prototype, this.EventTarget.prototype); + this.RemotePlayback.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.RemotePlayback.prototype, this.EventTarget.prototype); + this.TaskController.__proto__ = this.AbortController; + Object.setPrototypeOf(this.TaskController.prototype, this.AbortController.prototype); + this.TaskPriorityChangeEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.TaskPriorityChangeEvent.prototype, this.Event.prototype); + this.TaskSignal.__proto__ = this.AbortSignal; + Object.setPrototypeOf(this.TaskSignal.prototype, this.AbortSignal.prototype); + this.SharedWorker.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.SharedWorker.prototype, this.EventTarget.prototype); + this.SpeechSynthesisErrorEvent.__proto__ = this.SpeechSynthesisEvent; + Object.setPrototypeOf(this.SpeechSynthesisErrorEvent.prototype, this.SpeechSynthesisEvent.prototype); + this.SpeechSynthesisEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.SpeechSynthesisEvent.prototype, this.Event.prototype); + this.SpeechSynthesisUtterance.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.SpeechSynthesisUtterance.prototype, this.EventTarget.prototype); + this.TrustedTypePolicyFactory.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.TrustedTypePolicyFactory.prototype, this.EventTarget.prototype); + this.VirtualKeyboardGeometryChangeEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.VirtualKeyboardGeometryChangeEvent.prototype, this.Event.prototype); + + // 20250119 + this.TextUpdateEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.TextUpdateEvent.prototype, this.Event.prototype); + this.TextFormatUpdateEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.TextFormatUpdateEvent.prototype, this.Event.prototype); + this.EditContext.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.EditContext.prototype, this.EventTarget.prototype); + this.CloseWatcher.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.CloseWatcher.prototype, this.EventTarget.prototype); + this.CharacterBoundsUpdateEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.CharacterBoundsUpdateEvent.prototype, this.Event.prototype); + this.CSSPositionTryRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSPositionTryRule.prototype, this.CSSRule.prototype); + this.CSSPositionTryDescriptors.__proto__ = this.CSSStyleDeclaration; + Object.setPrototypeOf(this.CSSPositionTryDescriptors.prototype, this.CSSStyleDeclaration.prototype); + this.IdentityCredentialError.__proto__ = this.DOMException; + Object.setPrototypeOf(this.IdentityCredentialError.prototype, this.DOMException.prototype); + this.XRJointPose.__proto__ = this.XRPose; + Object.setPrototypeOf(this.XRJointPose.prototype, this.XRPose.prototype); + this.XRJointSpace.__proto__ = this.XRSpace; + Object.setPrototypeOf(this.XRJointSpace.prototype, this.XRSpace.prototype); + this.CSSMarginRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSMarginRule.prototype, this.CSSRule.prototype); + this.CSSNestedDeclarations.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSNestedDeclarations.prototype, this.CSSRule.prototype); + this.CSSViewTransitionRule.__proto__ = this.CSSRule; + Object.setPrototypeOf(this.CSSViewTransitionRule.prototype, this.CSSRule.prototype); + this.PageRevealEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.PageRevealEvent.prototype, this.Event.prototype); + this.PageSwapEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.PageSwapEvent.prototype, this.Event.prototype); + this.PerformanceLongAnimationFrameTiming.__proto__ = this.PerformanceEntry; + Object.setPrototypeOf(this.PerformanceLongAnimationFrameTiming.prototype, this.PerformanceEntry.prototype); + this.PerformanceScriptTiming.__proto__ = this.PerformanceEntry; + Object.setPrototypeOf(this.PerformanceScriptTiming.prototype, this.PerformanceEntry.prototype); + this.SnapEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.SnapEvent.prototype, this.Event.prototype); + this.SpeechSynthesis.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.SpeechSynthesis.prototype, this.EventTarget.prototype); + this.WebSocketError.__proto__ = this.DOMException; + Object.setPrototypeOf(this.WebSocketError.prototype, this.DOMException.prototype); + this.SpeechRecognition.__proto__ = this.EventTarget; + Object.setPrototypeOf(this.SpeechRecognition.prototype, this.EventTarget.prototype); + this.SpeechRecognitionEvent.__proto__ = this.Event; + Object.setPrototypeOf(this.SpeechRecognitionEvent.prototype, this.Event.prototype); + + // proto + Object.setPrototypeOf(this.FontFaceSet.prototype, this.EventTarget.prototype); + Object.setPrototypeOf(this.SpeechSynthesis.prototype, this.EventTarget.prototype); + // worker + this.WorkerGlobalScope.__proto__ = EventTarget; + Object.setPrototypeOf(this.WorkerGlobalScope.prototype, this.EventTarget.prototype); + this.DedicatedWorkerGlobalScope.__proto__ = this.WorkerGlobalScope; + Object.setPrototypeOf(this.DedicatedWorkerGlobalScope.prototype, this.WorkerGlobalScope.prototype); + + } + + initProto.call(global.ctr); +}(); -// cbb_wf.console_log = function(){} // 置空这个vm所有环境里的console log/warn/ 躲避检测 (function(){ global.static_env_code = ""; @@ -619,7 +1098,7 @@ global.ctr = {}; }); new Function(static_env_code).call(cbb_wf); global.init_code = fs.readFileSync("./util/init.js") + ''; -})() +})(); function test() { @@ -633,8 +1112,8 @@ function test() { })); } -test(); -my_api.clearMemory() -test() -my_api.clearMemory() -test() \ No newline at end of file +// test(); +// my_api.clearMemory() +// test() +// my_api.clearMemory() +// test() \ No newline at end of file diff --git a/node.zip b/node.zip index b57d275..0682ad1 100644 Binary files a/node.zip and b/node.zip differ diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json deleted file mode 100644 index 90c5bda..0000000 --- a/node_modules/.package-lock.json +++ /dev/null @@ -1,614 +0,0 @@ -{ - "name": "node沙箱", - "lockfileVersion": 2, - "requires": true, - "packages": { - "node_modules/@tootallnate/once": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", - "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", - "engines": { - "node": ">= 10" - } - }, - "node_modules/abab": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", - "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==" - }, - "node_modules/acorn": { - "version": "8.8.2", - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-globals": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-7.0.1.tgz", - "integrity": "sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==", - "dependencies": { - "acorn": "^8.1.0", - "acorn-walk": "^8.0.2" - } - }, - "node_modules/acorn-walk": { - "version": "8.2.0", - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "node_modules/canvas": { - "version": "2.11.0", - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@mapbox/node-pre-gyp": "^1.0.0", - "nan": "^2.17.0", - "simple-get": "^3.0.3" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/cssom": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz", - "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==" - }, - "node_modules/cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dependencies": { - "cssom": "~0.3.6" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cssstyle/node_modules/cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" - }, - "node_modules/data-urls": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", - "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", - "dependencies": { - "abab": "^2.0.6", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decimal.js": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", - "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/domexception": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", - "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", - "dependencies": { - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/entities": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", - "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/escodegen": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", - "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=6.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" - }, - "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/html-encoding-sniffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", - "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", - "dependencies": { - "whatwg-encoding": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", - "dependencies": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==" - }, - "node_modules/jsdom": { - "version": "21.1.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-21.1.0.tgz", - "integrity": "sha512-m0lzlP7qOtthD918nenK3hdItSd2I+V3W9IrBcB36sqDwG+KnUs66IF5GY7laGWUnlM9vTsD0W1QwSEBYWWcJg==", - "dependencies": { - "abab": "^2.0.6", - "acorn": "^8.8.1", - "acorn-globals": "^7.0.0", - "cssom": "^0.5.0", - "cssstyle": "^2.3.0", - "data-urls": "^3.0.2", - "decimal.js": "^10.4.2", - "domexception": "^4.0.0", - "escodegen": "^2.0.0", - "form-data": "^4.0.0", - "html-encoding-sniffer": "^3.0.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.1", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.2", - "parse5": "^7.1.1", - "saxes": "^6.0.0", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.1.2", - "w3c-xmlserializer": "^4.0.0", - "webidl-conversions": "^7.0.0", - "whatwg-encoding": "^2.0.0", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0", - "ws": "^8.11.0", - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/nwsapi": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.2.tgz", - "integrity": "sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw==" - }, - "node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/parse5": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", - "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", - "dependencies": { - "entities": "^4.4.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" - }, - "node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/querystringify": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" - }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "node_modules/saxes": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", - "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", - "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=v12.22.7" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" - }, - "node_modules/tough-cookie": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz", - "integrity": "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==", - "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tr46": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", - "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "dependencies": { - "prelude-ls": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/universalify": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", - "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/url-parse": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", - "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "dependencies": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, - "node_modules/w3c-xmlserializer": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", - "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", - "dependencies": { - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", - "engines": { - "node": ">=12" - } - }, - "node_modules/whatwg-encoding": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", - "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", - "dependencies": { - "iconv-lite": "0.6.3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/whatwg-mimetype": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", - "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", - "engines": { - "node": ">=12" - } - }, - "node_modules/whatwg-url": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", - "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", - "dependencies": { - "tr46": "^3.0.0", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ws": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.0.tgz", - "integrity": "sha512-kU62emKIdKVeEIOIKVegvqpXMSTAMLJozpHZaJNDYqBjzlSYXQGviYwN1osDLJ9av68qHd4a2oSjd7yD4pacig==", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xml-name-validator": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", - "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", - "engines": { - "node": ">=12" - } - }, - "node_modules/xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" - } - } -} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..fbbe128 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3450 @@ +{ + "name": "class-sandbox", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "dependencies": { + "@babel/generator": "^7.20.4", + "@babel/parser": "^7.20.3", + "@babel/traverse": "^7.20.1", + "@babel/types": "^7.20.2", + "atob": "^2.1.2", + "axios": "^1.7.9", + "btoa": "^1.2.1", + "chrome-remote-interface": "^0.33.0", + "deasync": "^0.1.28", + "fs": "^0.0.1-security", + "gm-crypto": "^0.1.8", + "jsdom": "^20.0.3", + "python-struct": "^1.1.3", + "traceur": "^0.0.111", + "vm2": "^3.9.13" + }, + "devDependencies": { + "javascript-obfuscator": "^4.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "dependencies": { + "@babel/highlight": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/generator": { + "version": "7.20.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.4.tgz", + "integrity": "sha512-luCf7yk/cm7yab6CAW1aiFnmEfBJplb/JojV56MYEK7ziWfGmFlTfmL9Ehwfy4gFhbjBfWO1wj7/TuSbVNEEtA==", + "dependencies": { + "@babel/types": "^7.20.2", + "@jridgewell/gen-mapping": "^0.3.2", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", + "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", + "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", + "dependencies": { + "@babel/template": "^7.18.10", + "@babel/types": "^7.19.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.19.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", + "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.20.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.3.tgz", + "integrity": "sha512-OP/s5a94frIPXwjzEcv5S/tpQfc6XhxYUnmWpgdqMWGgYCuErA3SzozaRAMQgSZWKeTJxht9aWAkUY+0UzvOFg==", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/template": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", + "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "dependencies": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.18.10", + "@babel/types": "^7.18.10" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.1.tgz", + "integrity": "sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA==", + "dependencies": { + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.20.1", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.19.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.20.1", + "@babel/types": "^7.20.0", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.2.tgz", + "integrity": "sha512-FnnvsNWgZCr232sqtXggapvlkk/tuwR/qhGzcmxI0GXLCjmPYQPzio2FbdlWuY6y1sHFfQKk+rRbUZ9VStQMog==", + "dependencies": { + "@babel/helper-string-parser": "^7.19.4", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@javascript-obfuscator/escodegen": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@javascript-obfuscator/escodegen/-/escodegen-2.3.0.tgz", + "integrity": "sha512-QVXwMIKqYMl3KwtTirYIA6gOCiJ0ZDtptXqAv/8KWLG9uQU2fZqTVy7a/A5RvcoZhbDoFfveTxuGxJ5ibzQtkw==", + "dev": true, + "dependencies": { + "@javascript-obfuscator/estraverse": "^5.3.0", + "esprima": "^4.0.1", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/@javascript-obfuscator/estraverse": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@javascript-obfuscator/estraverse/-/estraverse-5.4.0.tgz", + "integrity": "sha512-CZFX7UZVN9VopGbjTx4UXaXsi9ewoM1buL0kY7j1ftYdSs7p2spv9opxFjHlQ/QGTgh4UqufYqJJ0WKLml7b6w==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.17", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", + "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", + "dependencies": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "node_modules/@tootallnate/once": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", + "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", + "engines": { + "node": ">= 10" + } + }, + "node_modules/@types/minimatch": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", + "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==", + "dev": true + }, + "node_modules/abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==" + }, + "node_modules/acorn": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", + "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-globals": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-7.0.1.tgz", + "integrity": "sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==", + "dependencies": { + "acorn": "^8.1.0", + "acorn-walk": "^8.0.2" + } + }, + "node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", + "engines": { + "node": ">=0.4.2" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/array-differ": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-3.0.0.tgz", + "integrity": "sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/arrify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", + "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/assert": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/assert/-/assert-2.0.0.tgz", + "integrity": "sha512-se5Cd+js9dXJnu6Ag2JFc00t+HmHOen+8Q+L7O9zI0PqQXr20uk2J0XQqMxZEeo5U50o8Nvmmx7dZrl+Ufr35A==", + "dev": true, + "dependencies": { + "es6-object-assign": "^1.1.0", + "is-nan": "^1.2.1", + "object-is": "^1.0.1", + "util": "^0.12.0" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axios": { + "version": "1.7.9", + "resolved": "https://registry.npmmirror.com/axios/-/axios-1.7.9.tgz", + "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "dependencies": { + "file-uri-to-path": "1.0.0" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/btoa": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz", + "integrity": "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g==", + "bin": { + "btoa": "bin/btoa.js" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chance": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/chance/-/chance-1.1.8.tgz", + "integrity": "sha512-v7fi5Hj2VbR6dJEGRWLmJBA83LJMS47pkAbmROFxHWd9qmE1esHRZW8Clf1Fhzr3rjxnNZVCjOEv/ivFxeIMtg==", + "dev": true + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/charenc": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", + "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/chrome-remote-interface": { + "version": "0.33.0", + "resolved": "https://registry.npmjs.org/chrome-remote-interface/-/chrome-remote-interface-0.33.0.tgz", + "integrity": "sha512-tv/SgeBfShXk43fwFpQ9wnS7mOCPzETnzDXTNxCb6TqKOiOeIfbrJz+2NAp8GmzwizpKa058wnU1Te7apONaYg==", + "dependencies": { + "commander": "2.11.x", + "ws": "^7.2.0" + }, + "bin": { + "chrome-remote-interface": "bin/client.js" + } + }, + "node_modules/chrome-remote-interface/node_modules/commander": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", + "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==" + }, + "node_modules/chrome-remote-interface/node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/class-validator": { + "version": "0.13.2", + "resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.13.2.tgz", + "integrity": "sha512-yBUcQy07FPlGzUjoLuUfIOXzgynnQPPruyK1Ge2B74k9ROwnle1E+NxLWnUv5OLU8hA/qL5leAE9XnXq3byaBw==", + "dev": true, + "dependencies": { + "libphonenumber-js": "^1.9.43", + "validator": "^13.7.0" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.0.0.tgz", + "integrity": "sha512-JJfP2saEKbQqvW+FI93OYUB4ByV5cizMpFMiiJI8xDbBvQvSkIk0VvQdn1CZ8mqAO8Loq2h0gYTYtDFUZUeERw==", + "dev": true, + "engines": { + "node": "^12.20.0 || >=14" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/crypt": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", + "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/cssom": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz", + "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==" + }, + "node_modules/cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" + }, + "node_modules/data-urls": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", + "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", + "dependencies": { + "abab": "^2.0.6", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/deasync": { + "version": "0.1.28", + "resolved": "https://registry.npmjs.org/deasync/-/deasync-0.1.28.tgz", + "integrity": "sha512-QqLF6inIDwiATrfROIyQtwOQxjZuek13WRYZ7donU5wJPLoP67MnYxA6QtqdvdBy2mMqv5m3UefBVdJjvevOYg==", + "hasInstallScript": true, + "dependencies": { + "bindings": "^1.5.0", + "node-addon-api": "^1.7.1" + }, + "engines": { + "node": ">=0.11.0" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" + }, + "node_modules/define-properties": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", + "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", + "dev": true, + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/domexception": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", + "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", + "dependencies": { + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/entities": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", + "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/es6-object-assign": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es6-object-assign/-/es6-object-assign-1.1.0.tgz", + "integrity": "sha512-MEl9uirslVwqQU369iHNWZXsI8yaZYGg/D65aOgZkeyFJwHYSxilf7rQzXKI7DdDuBPrBXbfk3sl9hJhmd5AUw==", + "dev": true + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/escodegen": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", + "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/eslint-scope": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.0.tgz", + "integrity": "sha512-aWwkhnS0qAXqNOgKOK0dJ2nvzEbhEvpy8OlJ9kZ0FeZnA6zpjv1/Vei+puGFFX7zkPCkHHXb7IDX3A+7yPrRWg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.2.0.tgz", + "integrity": "sha512-IOzT0X126zn7ALX0dwFiUQEdsfzrm4+ISsQS8nukaJXwEyYKRSnEIIDULYg1mCtGp7UUXgfGl7BIolXREQK+XQ==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" + }, + "node_modules/file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" + }, + "node_modules/follow-redirects": { + "version": "1.15.9", + "resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.9.tgz", + "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs": { + "version": "0.0.1-security", + "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", + "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==" + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/get-intrinsic": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", + "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "5.0.15", + "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", + "integrity": "sha512-c9IPMazfRITpmAAKi22dK1VKxGDX9ehhqfABDriL/lzO92xcUKEJPQHrVA/2YHSNFB4iFlykVmWvwo48nr3OxA==", + "dependencies": { + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "2 || 3", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/gm-crypto": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/gm-crypto/-/gm-crypto-0.1.8.tgz", + "integrity": "sha512-gbTkobkbj3F70HJDQNhN9JNTvcR3O1YQJ0xGc8jTc4bZ1KuikmkjuFm5kZhyUbWxK/PwWDpPuTNyGwRYOopBLw==", + "dependencies": { + "buffer": "^5.7.0", + "jsbn": "^1.1.0", + "to-arraybuffer": "^1.0.1" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-readlink": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", + "integrity": "sha512-8tLu60LgxF6XpdbK8OW3FA+IfTNBn1ZHGHKF4KQbEeSkajYw5PlYJcKluntgegDPTg8UkHjpet1T82vk6TQ68w==" + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/html-encoding-sniffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", + "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", + "dependencies": { + "whatwg-encoding": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/http-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", + "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/inversify": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/inversify/-/inversify-6.0.1.tgz", + "integrity": "sha512-B3ex30927698TJENHR++8FfEaJGqoWOgI6ZY5Ht/nLUsFCwHn6akbwtnUAPCgUepAnTpe2qHxhDNjoKLyz6rgQ==", + "dev": true + }, + "node_modules/is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-generator-function": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-nan": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz", + "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==" + }, + "node_modules/is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/javascript-obfuscator": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/javascript-obfuscator/-/javascript-obfuscator-4.0.0.tgz", + "integrity": "sha512-vS/8w/9eKISzwXNLd+OLMCCwjD+dFMdOlCDOo919iR/MWdBs+7u1ybpwRoWOmODToPQKVYw5GasvZoIiPs5nPw==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@javascript-obfuscator/escodegen": "2.3.0", + "@javascript-obfuscator/estraverse": "5.4.0", + "acorn": "8.7.0", + "assert": "2.0.0", + "chalk": "4.1.2", + "chance": "1.1.8", + "class-validator": "0.13.2", + "commander": "9.0.0", + "eslint-scope": "7.1.0", + "eslint-visitor-keys": "3.2.0", + "fast-deep-equal": "3.1.3", + "inversify": "6.0.1", + "js-string-escape": "1.0.1", + "md5": "2.3.0", + "mkdirp": "1.0.4", + "multimatch": "5.0.0", + "opencollective-postinstall": "2.0.3", + "process": "0.11.10", + "reflect-metadata": "0.1.13", + "source-map-support": "0.5.21", + "string-template": "1.0.0", + "stringz": "2.1.0", + "tslib": "2.3.1" + }, + "bin": { + "javascript-obfuscator": "bin/javascript-obfuscator" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/javascript-obfuscator" + } + }, + "node_modules/javascript-obfuscator/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/javascript-obfuscator/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/javascript-obfuscator/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/javascript-obfuscator/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/javascript-obfuscator/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/javascript-obfuscator/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/js-string-escape": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz", + "integrity": "sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/jsbn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==" + }, + "node_modules/jsdom": { + "version": "20.0.3", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz", + "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==", + "dependencies": { + "abab": "^2.0.6", + "acorn": "^8.8.1", + "acorn-globals": "^7.0.0", + "cssom": "^0.5.0", + "cssstyle": "^2.3.0", + "data-urls": "^3.0.2", + "decimal.js": "^10.4.2", + "domexception": "^4.0.0", + "escodegen": "^2.0.0", + "form-data": "^4.0.0", + "html-encoding-sniffer": "^3.0.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.1", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.2", + "parse5": "^7.1.1", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.1.2", + "w3c-xmlserializer": "^4.0.0", + "webidl-conversions": "^7.0.0", + "whatwg-encoding": "^2.0.0", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0", + "ws": "^8.11.0", + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/acorn": { + "version": "8.8.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", + "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/libphonenumber-js": { + "version": "1.10.14", + "resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.10.14.tgz", + "integrity": "sha512-McGS7GV/WjJ2KjfOGhJU1oJn29RYeo7Q+RpANRbUNMQ9gj5XArpbjurSuyYPTejFwbaUojstQ4XyWCrAzGOUXw==", + "dev": true + }, + "node_modules/long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + }, + "node_modules/md5": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz", + "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", + "dev": true, + "dependencies": { + "charenc": "0.0.2", + "crypt": "0.0.2", + "is-buffer": "~1.1.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/multimatch": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-5.0.0.tgz", + "integrity": "sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==", + "dev": true, + "dependencies": { + "@types/minimatch": "^3.0.3", + "array-differ": "^3.0.0", + "array-union": "^2.1.0", + "arrify": "^2.0.1", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/node-addon-api": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.7.2.tgz", + "integrity": "sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==" + }, + "node_modules/nwsapi": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.2.tgz", + "integrity": "sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw==" + }, + "node_modules/object-is": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", + "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/opencollective-postinstall": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz", + "integrity": "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==", + "dev": true, + "bin": { + "opencollective-postinstall": "index.js" + } + }, + "node_modules/optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dependencies": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "dependencies": { + "entities": "^4.4.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true, + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, + "node_modules/psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" + }, + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/python-struct": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/python-struct/-/python-struct-1.1.3.tgz", + "integrity": "sha512-UsI/mNvk25jRpGKYI38Nfbv84z48oiIWwG67DLVvjRhy8B/0aIK+5Ju5WOHgw/o9rnEmbAS00v4rgKFQeC332Q==", + "dependencies": { + "long": "^4.0.0" + } + }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" + }, + "node_modules/reflect-metadata": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", + "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==", + "dev": true + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" + }, + "node_modules/rsvp": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-3.6.2.tgz", + "integrity": "sha512-OfWGQTb9vnwRjwtA2QwpG2ICclHC3pgXZO5xt8H2EfgDquO0qVdSb5T88L4qJVAEugbS56pAuV4XZM58UX8ulw==", + "engines": { + "node": "0.12.* || 4.* || 6.* || >= 7.*" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/saxes": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", + "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=v12.22.7" + } + }, + "node_modules/semver": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz", + "integrity": "sha512-IrpJ+yoG4EOH8DFWuVg+8H1kW1Oaof0Wxe7cPcXW3x9BjkN/eVo54F15LyqemnDIUYskQWr9qvl/RihmSy6+xQ==", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "devOptional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/string-template": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/string-template/-/string-template-1.0.0.tgz", + "integrity": "sha512-SLqR3GBUXuoPP5MmYtD7ompvXiG87QjT6lzOszyXjTM86Uu7At7vNnt2xgyTLq5o9T4IxTYFyGxcULqpsmsfdg==", + "dev": true + }, + "node_modules/stringz": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/stringz/-/stringz-2.1.0.tgz", + "integrity": "sha512-KlywLT+MZ+v0IRepfMxRtnSvDCMc3nR1qqCs3m/qIbSOWkNZYT8XHQA31rS3TnKp0c5xjZu3M4GY/2aRKSi/6A==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" + }, + "node_modules/to-arraybuffer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", + "integrity": "sha512-okFlQcoGTi4LQBG/PgSYblw9VOyptsz2KJZqc6qtgGdes8VktzUQkj4BI2blit072iS8VODNcMA+tvnS9dnuMA==" + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "engines": { + "node": ">=4" + } + }, + "node_modules/tough-cookie": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz", + "integrity": "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==", + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tr46": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/traceur": { + "version": "0.0.111", + "resolved": "https://registry.npmjs.org/traceur/-/traceur-0.0.111.tgz", + "integrity": "sha512-Zy0NCrl3+k1VZvDrZGQJHjLM4Hwz7XHSedhVTdsbV3RNWVtgw/GUP44Rl5WqqcctLkzyQ60eTU2jxfLrlrjWZQ==", + "dependencies": { + "commander": "2.9.x", + "glob": "5.0.x", + "rsvp": "^3.0.13", + "semver": "^4.3.3", + "source-map-support": "~0.2.8" + }, + "bin": { + "traceur": "traceur" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/traceur/node_modules/commander": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", + "integrity": "sha512-bmkUukX8wAOjHdN26xj5c4ctEV22TQ7dQYhSmuckKhToXrkUn0iIaolHdIxYYqD55nhpSPA9zPQ1yP57GdXP2A==", + "dependencies": { + "graceful-readlink": ">= 1.0.0" + }, + "engines": { + "node": ">= 0.6.x" + } + }, + "node_modules/traceur/node_modules/source-map": { + "version": "0.1.32", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.32.tgz", + "integrity": "sha512-htQyLrrRLkQ87Zfrir4/yN+vAUd6DNjVayEjTSHXu29AYQJw57I4/xEL/M6p6E/woPNJwvZt6rVlzc7gFEJccQ==", + "dependencies": { + "amdefine": ">=0.0.4" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/traceur/node_modules/source-map-support": { + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.2.10.tgz", + "integrity": "sha512-gGKOSat73z0V8wBKo9AGxZZyekczBireh1hHktbt+kb9acsCB5OfVCF2DCWlztcQ3r5oNN7f2BL0B2xOcoJ/DQ==", + "dependencies": { + "source-map": "0.1.32" + } + }, + "node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "dev": true + }, + "node_modules/type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "dependencies": { + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "node_modules/util": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } + }, + "node_modules/validator": { + "version": "13.7.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.7.0.tgz", + "integrity": "sha512-nYXQLCBkpJ8X6ltALua9dRrZDHVYxjJ1wgskNt1lH9fzGjs3tgojGSCBjmEPwkWS1y29+DrizMTW19Pr9uB2nw==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/vm2": { + "version": "3.9.13", + "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.13.tgz", + "integrity": "sha512-0rvxpB8P8Shm4wX2EKOiMp7H2zq+HUE/UwodY0pCZXs9IffIKZq6vUti5OgkVCTakKo9e/fgO4X1fkwfjWxE3Q==", + "dependencies": { + "acorn": "^8.7.0", + "acorn-walk": "^8.2.0" + }, + "bin": { + "vm2": "bin/vm2" + }, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/w3c-xmlserializer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", + "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", + "dependencies": { + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-encoding": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", + "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", + "dependencies": { + "iconv-lite": "0.6.3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-mimetype": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", + "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-url": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "dependencies": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/ws": { + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", + "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml-name-validator": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", + "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", + "engines": { + "node": ">=12" + } + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" + } + }, + "dependencies": { + "@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "requires": { + "@babel/highlight": "^7.18.6" + } + }, + "@babel/generator": { + "version": "7.20.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.4.tgz", + "integrity": "sha512-luCf7yk/cm7yab6CAW1aiFnmEfBJplb/JojV56MYEK7ziWfGmFlTfmL9Ehwfy4gFhbjBfWO1wj7/TuSbVNEEtA==", + "requires": { + "@babel/types": "^7.20.2", + "@jridgewell/gen-mapping": "^0.3.2", + "jsesc": "^2.5.1" + } + }, + "@babel/helper-environment-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", + "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==" + }, + "@babel/helper-function-name": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", + "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", + "requires": { + "@babel/template": "^7.18.10", + "@babel/types": "^7.19.0" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-string-parser": { + "version": "7.19.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", + "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==" + }, + "@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" + }, + "@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "requires": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + } + }, + "@babel/parser": { + "version": "7.20.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.3.tgz", + "integrity": "sha512-OP/s5a94frIPXwjzEcv5S/tpQfc6XhxYUnmWpgdqMWGgYCuErA3SzozaRAMQgSZWKeTJxht9aWAkUY+0UzvOFg==" + }, + "@babel/template": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", + "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.18.10", + "@babel/types": "^7.18.10" + } + }, + "@babel/traverse": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.1.tgz", + "integrity": "sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA==", + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.20.1", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.19.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.20.1", + "@babel/types": "^7.20.0", + "debug": "^4.1.0", + "globals": "^11.1.0" + } + }, + "@babel/types": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.2.tgz", + "integrity": "sha512-FnnvsNWgZCr232sqtXggapvlkk/tuwR/qhGzcmxI0GXLCjmPYQPzio2FbdlWuY6y1sHFfQKk+rRbUZ9VStQMog==", + "requires": { + "@babel/helper-string-parser": "^7.19.4", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" + } + }, + "@javascript-obfuscator/escodegen": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@javascript-obfuscator/escodegen/-/escodegen-2.3.0.tgz", + "integrity": "sha512-QVXwMIKqYMl3KwtTirYIA6gOCiJ0ZDtptXqAv/8KWLG9uQU2fZqTVy7a/A5RvcoZhbDoFfveTxuGxJ5ibzQtkw==", + "dev": true, + "requires": { + "@javascript-obfuscator/estraverse": "^5.3.0", + "esprima": "^4.0.1", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" + } + }, + "@javascript-obfuscator/estraverse": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@javascript-obfuscator/estraverse/-/estraverse-5.4.0.tgz", + "integrity": "sha512-CZFX7UZVN9VopGbjTx4UXaXsi9ewoM1buL0kY7j1ftYdSs7p2spv9opxFjHlQ/QGTgh4UqufYqJJ0WKLml7b6w==", + "dev": true + }, + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==" + }, + "@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==" + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + }, + "@jridgewell/trace-mapping": { + "version": "0.3.17", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", + "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", + "requires": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "@tootallnate/once": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", + "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==" + }, + "@types/minimatch": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", + "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==", + "dev": true + }, + "abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==" + }, + "acorn": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", + "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==" + }, + "acorn-globals": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-7.0.1.tgz", + "integrity": "sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==", + "requires": { + "acorn": "^8.1.0", + "acorn-walk": "^8.0.2" + } + }, + "acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==" + }, + "agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "requires": { + "debug": "4" + } + }, + "amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==" + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "^1.9.0" + } + }, + "array-differ": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-3.0.0.tgz", + "integrity": "sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==", + "dev": true + }, + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true + }, + "arrify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", + "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", + "dev": true + }, + "assert": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/assert/-/assert-2.0.0.tgz", + "integrity": "sha512-se5Cd+js9dXJnu6Ag2JFc00t+HmHOen+8Q+L7O9zI0PqQXr20uk2J0XQqMxZEeo5U50o8Nvmmx7dZrl+Ufr35A==", + "dev": true, + "requires": { + "es6-object-assign": "^1.1.0", + "is-nan": "^1.2.1", + "object-is": "^1.0.1", + "util": "^0.12.0" + } + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" + }, + "available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true + }, + "axios": { + "version": "1.7.9", + "resolved": "https://registry.npmmirror.com/axios/-/axios-1.7.9.tgz", + "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", + "requires": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" + }, + "bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "requires": { + "file-uri-to-path": "1.0.0" + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "btoa": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz", + "integrity": "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g==" + }, + "buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, + "requires": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "chance": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/chance/-/chance-1.1.8.tgz", + "integrity": "sha512-v7fi5Hj2VbR6dJEGRWLmJBA83LJMS47pkAbmROFxHWd9qmE1esHRZW8Clf1Fhzr3rjxnNZVCjOEv/ivFxeIMtg==", + "dev": true + }, + "char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true + }, + "charenc": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", + "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", + "dev": true + }, + "chrome-remote-interface": { + "version": "0.33.0", + "resolved": "https://registry.npmjs.org/chrome-remote-interface/-/chrome-remote-interface-0.33.0.tgz", + "integrity": "sha512-tv/SgeBfShXk43fwFpQ9wnS7mOCPzETnzDXTNxCb6TqKOiOeIfbrJz+2NAp8GmzwizpKa058wnU1Te7apONaYg==", + "requires": { + "commander": "2.11.x", + "ws": "^7.2.0" + }, + "dependencies": { + "commander": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", + "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==" + }, + "ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "requires": {} + } + } + }, + "class-validator": { + "version": "0.13.2", + "resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.13.2.tgz", + "integrity": "sha512-yBUcQy07FPlGzUjoLuUfIOXzgynnQPPruyK1Ge2B74k9ROwnle1E+NxLWnUv5OLU8hA/qL5leAE9XnXq3byaBw==", + "dev": true, + "requires": { + "libphonenumber-js": "^1.9.43", + "validator": "^13.7.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.0.0.tgz", + "integrity": "sha512-JJfP2saEKbQqvW+FI93OYUB4ByV5cizMpFMiiJI8xDbBvQvSkIk0VvQdn1CZ8mqAO8Loq2h0gYTYtDFUZUeERw==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "crypt": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", + "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", + "dev": true + }, + "cssom": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz", + "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==" + }, + "cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "requires": { + "cssom": "~0.3.6" + }, + "dependencies": { + "cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" + } + } + }, + "data-urls": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", + "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", + "requires": { + "abab": "^2.0.6", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0" + } + }, + "deasync": { + "version": "0.1.28", + "resolved": "https://registry.npmjs.org/deasync/-/deasync-0.1.28.tgz", + "integrity": "sha512-QqLF6inIDwiATrfROIyQtwOQxjZuek13WRYZ7donU5wJPLoP67MnYxA6QtqdvdBy2mMqv5m3UefBVdJjvevOYg==", + "requires": { + "bindings": "^1.5.0", + "node-addon-api": "^1.7.1" + } + }, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "decimal.js": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" + }, + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" + }, + "define-properties": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", + "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", + "dev": true, + "requires": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" + }, + "domexception": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", + "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", + "requires": { + "webidl-conversions": "^7.0.0" + } + }, + "entities": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", + "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==" + }, + "es6-object-assign": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es6-object-assign/-/es6-object-assign-1.1.0.tgz", + "integrity": "sha512-MEl9uirslVwqQU369iHNWZXsI8yaZYGg/D65aOgZkeyFJwHYSxilf7rQzXKI7DdDuBPrBXbfk3sl9hJhmd5AUw==", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" + }, + "escodegen": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", + "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", + "requires": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" + } + }, + "eslint-scope": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.0.tgz", + "integrity": "sha512-aWwkhnS0qAXqNOgKOK0dJ2nvzEbhEvpy8OlJ9kZ0FeZnA6zpjv1/Vei+puGFFX7zkPCkHHXb7IDX3A+7yPrRWg==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + } + }, + "eslint-visitor-keys": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.2.0.tgz", + "integrity": "sha512-IOzT0X126zn7ALX0dwFiUQEdsfzrm4+ISsQS8nukaJXwEyYKRSnEIIDULYg1mCtGp7UUXgfGl7BIolXREQK+XQ==", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "requires": { + "estraverse": "^5.2.0" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" + }, + "file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" + }, + "follow-redirects": { + "version": "1.15.9", + "resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.9.tgz", + "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==" + }, + "for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "requires": { + "is-callable": "^1.1.3" + } + }, + "form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, + "fs": { + "version": "0.0.1-security", + "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", + "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==" + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "get-intrinsic": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", + "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "dev": true, + "requires": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + } + }, + "glob": { + "version": "5.0.15", + "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", + "integrity": "sha512-c9IPMazfRITpmAAKi22dK1VKxGDX9ehhqfABDriL/lzO92xcUKEJPQHrVA/2YHSNFB4iFlykVmWvwo48nr3OxA==", + "requires": { + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "2 || 3", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" + }, + "gm-crypto": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/gm-crypto/-/gm-crypto-0.1.8.tgz", + "integrity": "sha512-gbTkobkbj3F70HJDQNhN9JNTvcR3O1YQJ0xGc8jTc4bZ1KuikmkjuFm5kZhyUbWxK/PwWDpPuTNyGwRYOopBLw==", + "requires": { + "buffer": "^5.7.0", + "jsbn": "^1.1.0", + "to-arraybuffer": "^1.0.1" + } + }, + "gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "requires": { + "get-intrinsic": "^1.1.3" + } + }, + "graceful-readlink": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", + "integrity": "sha512-8tLu60LgxF6XpdbK8OW3FA+IfTNBn1ZHGHKF4KQbEeSkajYw5PlYJcKluntgegDPTg8UkHjpet1T82vk6TQ68w==" + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" + }, + "has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dev": true, + "requires": { + "get-intrinsic": "^1.1.1" + } + }, + "has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true + }, + "has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "requires": { + "has-symbols": "^1.0.2" + } + }, + "html-encoding-sniffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", + "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", + "requires": { + "whatwg-encoding": "^2.0.0" + } + }, + "http-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", + "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "requires": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + } + }, + "https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "requires": { + "agent-base": "6", + "debug": "4" + } + }, + "iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + } + }, + "ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "inversify": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/inversify/-/inversify-6.0.1.tgz", + "integrity": "sha512-B3ex30927698TJENHR++8FfEaJGqoWOgI6ZY5Ht/nLUsFCwHn6akbwtnUAPCgUepAnTpe2qHxhDNjoKLyz6rgQ==", + "dev": true + }, + "is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true + }, + "is-generator-function": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-nan": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz", + "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", + "dev": true, + "requires": { + "call-bind": "^1.0.0", + "define-properties": "^1.1.3" + } + }, + "is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==" + }, + "is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "dev": true, + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + } + }, + "javascript-obfuscator": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/javascript-obfuscator/-/javascript-obfuscator-4.0.0.tgz", + "integrity": "sha512-vS/8w/9eKISzwXNLd+OLMCCwjD+dFMdOlCDOo919iR/MWdBs+7u1ybpwRoWOmODToPQKVYw5GasvZoIiPs5nPw==", + "dev": true, + "requires": { + "@javascript-obfuscator/escodegen": "2.3.0", + "@javascript-obfuscator/estraverse": "5.4.0", + "acorn": "8.7.0", + "assert": "2.0.0", + "chalk": "4.1.2", + "chance": "1.1.8", + "class-validator": "0.13.2", + "commander": "9.0.0", + "eslint-scope": "7.1.0", + "eslint-visitor-keys": "3.2.0", + "fast-deep-equal": "3.1.3", + "inversify": "6.0.1", + "js-string-escape": "1.0.1", + "md5": "2.3.0", + "mkdirp": "1.0.4", + "multimatch": "5.0.0", + "opencollective-postinstall": "2.0.3", + "process": "0.11.10", + "reflect-metadata": "0.1.13", + "source-map-support": "0.5.21", + "string-template": "1.0.0", + "stringz": "2.1.0", + "tslib": "2.3.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "js-string-escape": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz", + "integrity": "sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "jsbn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==" + }, + "jsdom": { + "version": "20.0.3", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz", + "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==", + "requires": { + "abab": "^2.0.6", + "acorn": "^8.8.1", + "acorn-globals": "^7.0.0", + "cssom": "^0.5.0", + "cssstyle": "^2.3.0", + "data-urls": "^3.0.2", + "decimal.js": "^10.4.2", + "domexception": "^4.0.0", + "escodegen": "^2.0.0", + "form-data": "^4.0.0", + "html-encoding-sniffer": "^3.0.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.1", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.2", + "parse5": "^7.1.1", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.1.2", + "w3c-xmlserializer": "^4.0.0", + "webidl-conversions": "^7.0.0", + "whatwg-encoding": "^2.0.0", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0", + "ws": "^8.11.0", + "xml-name-validator": "^4.0.0" + }, + "dependencies": { + "acorn": { + "version": "8.8.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", + "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==" + } + } + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } + }, + "libphonenumber-js": { + "version": "1.10.14", + "resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.10.14.tgz", + "integrity": "sha512-McGS7GV/WjJ2KjfOGhJU1oJn29RYeo7Q+RpANRbUNMQ9gj5XArpbjurSuyYPTejFwbaUojstQ4XyWCrAzGOUXw==", + "dev": true + }, + "long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + }, + "md5": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz", + "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", + "dev": true, + "requires": { + "charenc": "0.0.2", + "crypt": "0.0.2", + "is-buffer": "~1.1.6" + } + }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "multimatch": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-5.0.0.tgz", + "integrity": "sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==", + "dev": true, + "requires": { + "@types/minimatch": "^3.0.3", + "array-differ": "^3.0.0", + "array-union": "^2.1.0", + "arrify": "^2.0.1", + "minimatch": "^3.0.4" + } + }, + "node-addon-api": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.7.2.tgz", + "integrity": "sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==" + }, + "nwsapi": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.2.tgz", + "integrity": "sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw==" + }, + "object-is": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", + "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + } + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "requires": { + "wrappy": "1" + } + }, + "opencollective-postinstall": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz", + "integrity": "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==", + "dev": true + }, + "optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + } + }, + "parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "requires": { + "entities": "^4.4.0" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==" + }, + "process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true + }, + "proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, + "psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + }, + "python-struct": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/python-struct/-/python-struct-1.1.3.tgz", + "integrity": "sha512-UsI/mNvk25jRpGKYI38Nfbv84z48oiIWwG67DLVvjRhy8B/0aIK+5Ju5WOHgw/o9rnEmbAS00v4rgKFQeC332Q==", + "requires": { + "long": "^4.0.0" + } + }, + "querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" + }, + "reflect-metadata": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", + "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==", + "dev": true + }, + "requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" + }, + "rsvp": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-3.6.2.tgz", + "integrity": "sha512-OfWGQTb9vnwRjwtA2QwpG2ICclHC3pgXZO5xt8H2EfgDquO0qVdSb5T88L4qJVAEugbS56pAuV4XZM58UX8ulw==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "saxes": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", + "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "requires": { + "xmlchars": "^2.2.0" + } + }, + "semver": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz", + "integrity": "sha512-IrpJ+yoG4EOH8DFWuVg+8H1kW1Oaof0Wxe7cPcXW3x9BjkN/eVo54F15LyqemnDIUYskQWr9qvl/RihmSy6+xQ==" + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "devOptional": true + }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "string-template": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/string-template/-/string-template-1.0.0.tgz", + "integrity": "sha512-SLqR3GBUXuoPP5MmYtD7ompvXiG87QjT6lzOszyXjTM86Uu7At7vNnt2xgyTLq5o9T4IxTYFyGxcULqpsmsfdg==", + "dev": true + }, + "stringz": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/stringz/-/stringz-2.1.0.tgz", + "integrity": "sha512-KlywLT+MZ+v0IRepfMxRtnSvDCMc3nR1qqCs3m/qIbSOWkNZYT8XHQA31rS3TnKp0c5xjZu3M4GY/2aRKSi/6A==", + "dev": true, + "requires": { + "char-regex": "^1.0.2" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "requires": { + "has-flag": "^3.0.0" + } + }, + "symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" + }, + "to-arraybuffer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", + "integrity": "sha512-okFlQcoGTi4LQBG/PgSYblw9VOyptsz2KJZqc6qtgGdes8VktzUQkj4BI2blit072iS8VODNcMA+tvnS9dnuMA==" + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==" + }, + "tough-cookie": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz", + "integrity": "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==", + "requires": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + } + }, + "tr46": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "requires": { + "punycode": "^2.1.1" + } + }, + "traceur": { + "version": "0.0.111", + "resolved": "https://registry.npmjs.org/traceur/-/traceur-0.0.111.tgz", + "integrity": "sha512-Zy0NCrl3+k1VZvDrZGQJHjLM4Hwz7XHSedhVTdsbV3RNWVtgw/GUP44Rl5WqqcctLkzyQ60eTU2jxfLrlrjWZQ==", + "requires": { + "commander": "2.9.x", + "glob": "5.0.x", + "rsvp": "^3.0.13", + "semver": "^4.3.3", + "source-map-support": "~0.2.8" + }, + "dependencies": { + "commander": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", + "integrity": "sha512-bmkUukX8wAOjHdN26xj5c4ctEV22TQ7dQYhSmuckKhToXrkUn0iIaolHdIxYYqD55nhpSPA9zPQ1yP57GdXP2A==", + "requires": { + "graceful-readlink": ">= 1.0.0" + } + }, + "source-map": { + "version": "0.1.32", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.32.tgz", + "integrity": "sha512-htQyLrrRLkQ87Zfrir4/yN+vAUd6DNjVayEjTSHXu29AYQJw57I4/xEL/M6p6E/woPNJwvZt6rVlzc7gFEJccQ==", + "requires": { + "amdefine": ">=0.0.4" + } + }, + "source-map-support": { + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.2.10.tgz", + "integrity": "sha512-gGKOSat73z0V8wBKo9AGxZZyekczBireh1hHktbt+kb9acsCB5OfVCF2DCWlztcQ3r5oNN7f2BL0B2xOcoJ/DQ==", + "requires": { + "source-map": "0.1.32" + } + } + } + }, + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "dev": true + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "requires": { + "prelude-ls": "~1.1.2" + } + }, + "universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==" + }, + "url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "requires": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "util": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } + }, + "validator": { + "version": "13.7.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.7.0.tgz", + "integrity": "sha512-nYXQLCBkpJ8X6ltALua9dRrZDHVYxjJ1wgskNt1lH9fzGjs3tgojGSCBjmEPwkWS1y29+DrizMTW19Pr9uB2nw==", + "dev": true + }, + "vm2": { + "version": "3.9.13", + "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.13.tgz", + "integrity": "sha512-0rvxpB8P8Shm4wX2EKOiMp7H2zq+HUE/UwodY0pCZXs9IffIKZq6vUti5OgkVCTakKo9e/fgO4X1fkwfjWxE3Q==", + "requires": { + "acorn": "^8.7.0", + "acorn-walk": "^8.2.0" + } + }, + "w3c-xmlserializer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", + "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", + "requires": { + "xml-name-validator": "^4.0.0" + } + }, + "webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==" + }, + "whatwg-encoding": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", + "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", + "requires": { + "iconv-lite": "0.6.3" + } + }, + "whatwg-mimetype": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", + "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==" + }, + "whatwg-url": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "requires": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + } + }, + "which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "dev": true, + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + } + }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==" + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "ws": { + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", + "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "requires": {} + }, + "xml-name-validator": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", + "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==" + }, + "xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..ad7b56d --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "dependencies": { + "@babel/generator": "^7.20.4", + "@babel/parser": "^7.20.3", + "@babel/traverse": "^7.20.1", + "@babel/types": "^7.20.2", + "atob": "^2.1.2", + "axios": "^1.7.9", + "btoa": "^1.2.1", + "canvas": "^2.5.0", + "chrome-remote-interface": "^0.33.0", + "deasync": "^0.1.28", + "fs": "^0.0.1-security", + "gm-crypto": "^0.1.8", + "jsdom": "^20.0.3", + "python-struct": "^1.1.3", + "traceur": "^0.0.111", + "vm2": "^3.9.13" + }, + "devDependencies": { + "javascript-obfuscator": "^4.0.0" + } +} diff --git a/static_env/code.js b/static_env/code.js index ab20efd..94ddf31 100644 --- a/static_env/code.js +++ b/static_env/code.js @@ -1,174655 +1,118654 @@ -this.Option_get_disabled = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Option"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "disabled"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Option_get_disabled, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Option_set_disabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Option"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "disabled", val); - if (cbb_wf.is_log) { - console.log("[*] Option_set_disabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Option_get_form = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Option"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "form"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Option_get_form, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Option_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Option"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Option_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Option_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Option"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] Option_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Option_get_defaultSelected = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Option"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "defaultSelected"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Option_get_defaultSelected, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Option_set_defaultSelected = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Option"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "defaultSelected", val); - if (cbb_wf.is_log) { - console.log("[*] Option_set_defaultSelected, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Option_get_selected = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Option"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "selected"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Option_get_selected, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Option_set_selected = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Option"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "selected", val); - if (cbb_wf.is_log) { - console.log("[*] Option_set_selected, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Option_get_value = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Option"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "value"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Option_get_value, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Option_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Option"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "value", val); - if (cbb_wf.is_log) { - console.log("[*] Option_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Option_get_text = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Option"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "text"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Option_get_text, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Option_set_text = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Option"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "text", val); - if (cbb_wf.is_log) { - console.log("[*] Option_set_text, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Option_get_index = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Option"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "index"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Option_get_index, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_get_alt = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "alt"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_alt, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_alt = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "alt", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_alt, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_src = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "src"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_src, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_src = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "src", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_src, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_srcset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "srcset"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_srcset, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_srcset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "srcset", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_srcset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_sizes = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "sizes"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_sizes, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_sizes = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "sizes", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_sizes, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_crossOrigin = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "crossOrigin"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_crossOrigin, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_crossOrigin = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "crossOrigin", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_crossOrigin, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_useMap = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "useMap"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_useMap, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_useMap = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "useMap", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_useMap, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_isMap = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "isMap"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_isMap, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_isMap = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "isMap", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_isMap, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_width = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "width"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_width, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "width", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_height = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "height"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_height, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "height", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_naturalWidth = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "naturalWidth"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_naturalWidth, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_get_naturalHeight = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "naturalHeight"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_naturalHeight, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_get_complete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "complete"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_complete, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_get_currentSrc = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "currentSrc"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_currentSrc, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_get_referrerPolicy = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "referrerPolicy"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_referrerPolicy, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_referrerPolicy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "referrerPolicy", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_referrerPolicy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_decoding = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "decoding"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_decoding, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_decoding = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "decoding", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_decoding, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_fetchPriority = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "fetchPriority"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_fetchPriority, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_fetchPriority = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "fetchPriority", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_fetchPriority, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_loading = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "loading"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_loading, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_loading = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "loading", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_loading, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_name = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "name"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_name, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "name", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_lowsrc = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "lowsrc"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_lowsrc, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_lowsrc = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "lowsrc", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_lowsrc, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_align = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "align"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_align, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "align", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_hspace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "hspace"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_hspace, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_hspace = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "hspace", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_hspace, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_vspace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "vspace"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_vspace, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_vspace = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "vspace", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_vspace, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_longDesc = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "longDesc"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_longDesc, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_longDesc = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "longDesc", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_longDesc, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_border = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "border"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_border, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_border = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "border", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_border, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_x = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "x"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_x, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_get_y = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "y"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_y, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_decode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Image_decode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Image_get_attributionSrc = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "attributionSrc"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_attributionSrc, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_attributionSrc = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "attributionSrc", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_attributionSrc, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Image_get_sharedStorageWritable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "sharedStorageWritable"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Image_get_sharedStorageWritable, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Image_set_sharedStorageWritable = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Image"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "sharedStorageWritable", val); - if (cbb_wf.is_log) { - console.log("[*] Image_set_sharedStorageWritable, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.XSLTProcessor_clearParameters = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XSLTProcessor_clearParameters, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XSLTProcessor_getParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XSLTProcessor_getParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XSLTProcessor_importStylesheet = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XSLTProcessor_importStylesheet, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XSLTProcessor_removeParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XSLTProcessor_removeParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XSLTProcessor_reset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XSLTProcessor_reset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XSLTProcessor_setParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XSLTProcessor_setParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XSLTProcessor_transformToDocument = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XSLTProcessor_transformToDocument, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XSLTProcessor_transformToFragment = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XSLTProcessor_transformToFragment, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.XPathResult_get_resultType = function () { - // 非法调用 + // 就是vm的this,走到node层的函数, this就变成了global let r = cbb_wf.checkIllegal(this, "XPathResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "resultType"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.resultType; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] XPathResult_get_resultType, 返回object'); + break + case "function": + cbb_wf.console.log('[*] XPathResult_get_resultType, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XPathResult_get_resultType, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XPathResult_get_resultType, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.XPathResult_get_numberValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XPathResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "numberValue"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.numberValue; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] XPathResult_get_numberValue, 返回object'); + break + case "function": + cbb_wf.console.log('[*] XPathResult_get_numberValue, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XPathResult_get_numberValue, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XPathResult_get_numberValue, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.XPathResult_get_stringValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XPathResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "stringValue"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.stringValue; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] XPathResult_get_stringValue, 返回object'); + break + case "function": + cbb_wf.console.log('[*] XPathResult_get_stringValue, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XPathResult_get_stringValue, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XPathResult_get_stringValue, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.XPathResult_get_booleanValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XPathResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "booleanValue"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.booleanValue; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] XPathResult_get_booleanValue, 返回object'); + break + case "function": + cbb_wf.console.log('[*] XPathResult_get_booleanValue, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XPathResult_get_booleanValue, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XPathResult_get_booleanValue, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.XPathResult_get_singleNodeValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XPathResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "singleNodeValue"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.singleNodeValue; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] XPathResult_get_singleNodeValue, 返回object'); + break + case "function": + cbb_wf.console.log('[*] XPathResult_get_singleNodeValue, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XPathResult_get_singleNodeValue, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XPathResult_get_singleNodeValue, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.XPathResult_get_invalidIteratorState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XPathResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "invalidIteratorState"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.invalidIteratorState; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] XPathResult_get_invalidIteratorState, 返回object'); + break + case "function": + cbb_wf.console.log('[*] XPathResult_get_invalidIteratorState, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XPathResult_get_invalidIteratorState, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XPathResult_get_invalidIteratorState, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.XPathResult_get_snapshotLength = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XPathResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "snapshotLength"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.snapshotLength; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] XPathResult_get_snapshotLength, 返回object'); + break + case "function": + cbb_wf.console.log('[*] XPathResult_get_snapshotLength, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XPathResult_get_snapshotLength, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XPathResult_get_snapshotLength, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.XPathResult_iterateNext = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XPathResult"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XPathResult_iterateNext, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XPathResult"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.iterateNext.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] XPathResult_iterateNext, 返回object'); + break + case "function": + cbb_wf.console.log('[*] XPathResult_iterateNext, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XPathResult_iterateNext, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.XPathResult_snapshotItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XPathResult"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XPathResult_snapshotItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XPathResult"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.snapshotItem.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] XPathResult_snapshotItem, 返回object'); + break + case "function": + cbb_wf.console.log('[*] XPathResult_snapshotItem, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XPathResult_snapshotItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.XPathExpression_evaluate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XPathExpression"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XPathExpression_evaluate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XPathExpression"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.evaluate.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] XPathExpression_evaluate, 返回object'); + break + case "function": + cbb_wf.console.log('[*] XPathExpression_evaluate, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XPathExpression_evaluate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.XPathEvaluator_createExpression = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XPathEvaluator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XPathEvaluator_createExpression, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XPathEvaluator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createExpression.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] XPathEvaluator_createExpression, 返回object'); + break + case "function": + cbb_wf.console.log('[*] XPathEvaluator_createExpression, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XPathEvaluator_createExpression, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.XPathEvaluator_createNSResolver = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XPathEvaluator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XPathEvaluator_createNSResolver, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XPathEvaluator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createNSResolver.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] XPathEvaluator_createNSResolver, 返回object'); + break + case "function": + cbb_wf.console.log('[*] XPathEvaluator_createNSResolver, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XPathEvaluator_createNSResolver, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.XPathEvaluator_evaluate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XPathEvaluator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XPathEvaluator_evaluate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XPathEvaluator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.evaluate.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] XPathEvaluator_evaluate, 返回object'); + break + case "function": + cbb_wf.console.log('[*] XPathEvaluator_evaluate, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XPathEvaluator_evaluate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.XMLSerializer_serializeToString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLSerializer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XMLSerializer_serializeToString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XMLSerializer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.serializeToString.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] XMLSerializer_serializeToString, 返回object'); + break + case "function": + cbb_wf.console.log('[*] XMLSerializer_serializeToString, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLSerializer_serializeToString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XMLHttpRequestEventTarget_get_onloadstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onloadstart"); + + let result = cbb_wf.getValue(this, 'onloadstart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequestEventTarget_get_onloadstart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequestEventTarget_get_onloadstart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequestEventTarget_set_onloadstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onloadstart", val); - if (cbb_wf.is_log) { - console.log("[*] XMLHttpRequestEventTarget_set_onloadstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onloadstart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequestEventTarget_set_onloadstart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XMLHttpRequestEventTarget_get_onprogress = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onprogress"); + + let result = cbb_wf.getValue(this, 'onprogress'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequestEventTarget_get_onprogress, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequestEventTarget_get_onprogress, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequestEventTarget_set_onprogress = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onprogress", val); - if (cbb_wf.is_log) { - console.log("[*] XMLHttpRequestEventTarget_set_onprogress, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onprogress', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequestEventTarget_set_onprogress, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XMLHttpRequestEventTarget_get_onabort = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onabort"); + + let result = cbb_wf.getValue(this, 'onabort'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequestEventTarget_get_onabort, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequestEventTarget_get_onabort, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequestEventTarget_set_onabort = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onabort", val); - if (cbb_wf.is_log) { - console.log("[*] XMLHttpRequestEventTarget_set_onabort, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onabort', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequestEventTarget_set_onabort, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XMLHttpRequestEventTarget_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + + let result = cbb_wf.getValue(this, 'onerror'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequestEventTarget_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequestEventTarget_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequestEventTarget_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] XMLHttpRequestEventTarget_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequestEventTarget_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XMLHttpRequestEventTarget_get_onload = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onload"); + + let result = cbb_wf.getValue(this, 'onload'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequestEventTarget_get_onload, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequestEventTarget_get_onload, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequestEventTarget_set_onload = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onload", val); - if (cbb_wf.is_log) { - console.log("[*] XMLHttpRequestEventTarget_set_onload, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onload', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequestEventTarget_set_onload, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XMLHttpRequestEventTarget_get_ontimeout = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ontimeout"); + + let result = cbb_wf.getValue(this, 'ontimeout'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequestEventTarget_get_ontimeout, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequestEventTarget_get_ontimeout, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequestEventTarget_set_ontimeout = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ontimeout", val); - if (cbb_wf.is_log) { - console.log("[*] XMLHttpRequestEventTarget_set_ontimeout, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.XMLHttpRequestEventTarget_get_onloadend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onloadend"); + cbb_wf.setValue(this, 'ontimeout', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequestEventTarget_get_onloadend, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequestEventTarget_set_ontimeout, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.XMLHttpRequestEventTarget_get_onloadend = function () { + let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onloadend'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequestEventTarget_get_onloadend, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequestEventTarget_set_onloadend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onloadend", val); - if (cbb_wf.is_log) { - console.log("[*] XMLHttpRequestEventTarget_set_onloadend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XMLHttpRequestEventTarget"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onloadend', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequestEventTarget_set_onloadend, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XMLHttpRequest_get_onreadystatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onreadystatechange"); + + let result = cbb_wf.getValue(this, 'onreadystatechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequest_get_onreadystatechange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_get_onreadystatechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequest_set_onreadystatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onreadystatechange", val); - if (cbb_wf.is_log) { - console.log("[*] XMLHttpRequest_set_onreadystatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onreadystatechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_set_onreadystatechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XMLHttpRequest_get_readyState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "readyState"); + + let result = cbb_wf.getValue(this, 'readyState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequest_get_readyState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_get_readyState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequest_get_timeout = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "timeout"); + + let result = cbb_wf.getValue(this, 'timeout'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequest_get_timeout, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_get_timeout, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequest_set_timeout = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "timeout", val); - if (cbb_wf.is_log) { - console.log("[*] XMLHttpRequest_set_timeout, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'timeout', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_set_timeout, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XMLHttpRequest_get_withCredentials = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "withCredentials"); + + let result = cbb_wf.getValue(this, 'withCredentials'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequest_get_withCredentials, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_get_withCredentials, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequest_set_withCredentials = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "withCredentials", val); - if (cbb_wf.is_log) { - console.log("[*] XMLHttpRequest_set_withCredentials, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'withCredentials', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_set_withCredentials, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XMLHttpRequest_get_upload = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "upload"); + + let result = cbb_wf.getValue(this, 'upload'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequest_get_upload, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_get_upload, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequest_get_responseURL = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "responseURL"); + + let result = cbb_wf.getValue(this, 'responseURL'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequest_get_responseURL, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_get_responseURL, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequest_get_status = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "status"); + + let result = cbb_wf.getValue(this, 'status'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequest_get_status, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_get_status, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequest_get_statusText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "statusText"); + + let result = cbb_wf.getValue(this, 'statusText'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequest_get_statusText, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_get_statusText, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequest_get_responseType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "responseType"); + + let result = cbb_wf.getValue(this, 'responseType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequest_get_responseType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_get_responseType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequest_set_responseType = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "responseType", val); - if (cbb_wf.is_log) { - console.log("[*] XMLHttpRequest_set_responseType, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'responseType', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_set_responseType, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XMLHttpRequest_get_response = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "response"); + + let result = cbb_wf.getValue(this, 'response'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequest_get_response, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_get_response, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequest_get_responseText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "responseText"); + + let result = cbb_wf.getValue(this, 'responseText'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequest_get_responseText, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_get_responseText, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequest_get_responseXML = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "responseXML"); + + let result = cbb_wf.getValue(this, 'responseXML'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XMLHttpRequest_get_responseXML, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_get_responseXML, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XMLHttpRequest_abort = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XMLHttpRequest_abort, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_abort, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XMLHttpRequest_getAllResponseHeaders = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XMLHttpRequest_getAllResponseHeaders, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_getAllResponseHeaders, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XMLHttpRequest_getResponseHeader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XMLHttpRequest_getResponseHeader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_getResponseHeader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XMLHttpRequest_open = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XMLHttpRequest_open, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_open, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XMLHttpRequest_overrideMimeType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XMLHttpRequest_overrideMimeType, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_overrideMimeType, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XMLHttpRequest_send = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XMLHttpRequest_send, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_send, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XMLHttpRequest_setRequestHeader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XMLHttpRequest_setRequestHeader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.XMLHttpRequest_setAttributionReporting = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XMLHttpRequest_setAttributionReporting, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XMLHttpRequest_setPrivateToken = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XMLHttpRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XMLHttpRequest_setPrivateToken, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XMLHttpRequest_setRequestHeader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } + return result; +} this.WritableStreamDefaultWriter_get_closed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WritableStreamDefaultWriter"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "closed"); + + let result = cbb_wf.getValue(this, 'closed'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WritableStreamDefaultWriter_get_closed, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WritableStreamDefaultWriter_get_closed, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WritableStreamDefaultWriter_get_desiredSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WritableStreamDefaultWriter"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "desiredSize"); + + let result = cbb_wf.getValue(this, 'desiredSize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WritableStreamDefaultWriter_get_desiredSize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WritableStreamDefaultWriter_get_desiredSize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WritableStreamDefaultWriter_get_ready = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WritableStreamDefaultWriter"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ready"); + + let result = cbb_wf.getValue(this, 'ready'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WritableStreamDefaultWriter_get_ready, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WritableStreamDefaultWriter_get_ready, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WritableStreamDefaultWriter_abort = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WritableStreamDefaultWriter"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WritableStreamDefaultWriter_abort, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WritableStreamDefaultWriter"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WritableStreamDefaultWriter_abort, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.WritableStreamDefaultWriter_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WritableStreamDefaultWriter"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WritableStreamDefaultWriter_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WritableStreamDefaultWriter"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WritableStreamDefaultWriter_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.WritableStreamDefaultWriter_releaseLock = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WritableStreamDefaultWriter"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WritableStreamDefaultWriter_releaseLock, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WritableStreamDefaultWriter"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WritableStreamDefaultWriter_releaseLock, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.WritableStreamDefaultWriter_write = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WritableStreamDefaultWriter"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WritableStreamDefaultWriter_write, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WritableStreamDefaultWriter"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WritableStreamDefaultWriter_write, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.WritableStreamDefaultController_get_signal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WritableStreamDefaultController"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "signal"); + + let result = cbb_wf.getValue(this, 'signal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WritableStreamDefaultController_get_signal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WritableStreamDefaultController_get_signal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WritableStreamDefaultController_error = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WritableStreamDefaultController"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WritableStreamDefaultController_error, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WritableStreamDefaultController"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WritableStreamDefaultController_error, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.WritableStream_get_locked = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WritableStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "locked"); + + let result = cbb_wf.getValue(this, 'locked'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WritableStream_get_locked, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WritableStream_get_locked, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WritableStream_abort = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WritableStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WritableStream_abort, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WritableStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WritableStream_abort, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.WritableStream_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WritableStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WritableStream_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WritableStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WritableStream_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.WritableStream_getWriter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WritableStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WritableStream_getWriter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WritableStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WritableStream_getWriter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Worker_get_onmessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Worker"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmessage"); + + let result = cbb_wf.getValue(this, 'onmessage'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Worker_get_onmessage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Worker_get_onmessage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Worker_set_onmessage = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Worker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmessage", val); - if (cbb_wf.is_log) { - console.log("[*] Worker_set_onmessage, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Worker_postMessage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Worker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Worker_postMessage, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Worker_terminate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Worker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Worker_terminate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Worker_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Worker"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + cbb_wf.setValue(this, 'onmessage', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Worker_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Worker_set_onmessage, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.Worker_postMessage = function () { + let r = cbb_wf.checkIllegal(this, "Worker"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Worker_postMessage, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.Worker_terminate = function () { + let r = cbb_wf.checkIllegal(this, "Worker"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Worker_terminate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Worker_get_onerror = function () { + let r = cbb_wf.checkIllegal(this, "Worker"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'onerror'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Worker_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.Worker_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Worker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] Worker_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.WindowControlsOverlayGeometryChangeEvent_get_titlebarAreaRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WindowControlsOverlayGeometryChangeEvent"); + let r = cbb_wf.checkIllegal(this, "Worker"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "titlebarAreaRect"); + cbb_wf.setValue(this, 'onerror', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WindowControlsOverlayGeometryChangeEvent_get_titlebarAreaRect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Worker_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - -this.WindowControlsOverlayGeometryChangeEvent_get_visible = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WindowControlsOverlayGeometryChangeEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "visible"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WindowControlsOverlayGeometryChangeEvent_get_visible, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WindowControlsOverlay_get_visible = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WindowControlsOverlay"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "visible"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WindowControlsOverlay_get_visible, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WindowControlsOverlay_get_ongeometrychange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WindowControlsOverlay"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ongeometrychange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WindowControlsOverlay_get_ongeometrychange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WindowControlsOverlay_set_ongeometrychange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WindowControlsOverlay"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ongeometrychange", val); - if (cbb_wf.is_log) { - console.log("[*] WindowControlsOverlay_set_ongeometrychange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.WindowControlsOverlay_getTitlebarAreaRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WindowControlsOverlay"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WindowControlsOverlay_getTitlebarAreaRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.WheelEvent_get_deltaX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WheelEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "deltaX"); + + let result = cbb_wf.getValue(this, 'deltaX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WheelEvent_get_deltaX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WheelEvent_get_deltaX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WheelEvent_get_deltaY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WheelEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "deltaY"); + + let result = cbb_wf.getValue(this, 'deltaY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WheelEvent_get_deltaY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WheelEvent_get_deltaY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WheelEvent_get_deltaZ = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WheelEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "deltaZ"); + + let result = cbb_wf.getValue(this, 'deltaZ'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WheelEvent_get_deltaZ, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WheelEvent_get_deltaZ, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WheelEvent_get_deltaMode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WheelEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "deltaMode"); + + let result = cbb_wf.getValue(this, 'deltaMode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WheelEvent_get_deltaMode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WheelEvent_get_deltaMode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WheelEvent_get_wheelDeltaX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WheelEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "wheelDeltaX"); + + let result = cbb_wf.getValue(this, 'wheelDeltaX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WheelEvent_get_wheelDeltaX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WheelEvent_get_wheelDeltaX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WheelEvent_get_wheelDeltaY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WheelEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "wheelDeltaY"); + + let result = cbb_wf.getValue(this, 'wheelDeltaY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WheelEvent_get_wheelDeltaY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WheelEvent_get_wheelDeltaY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WheelEvent_get_wheelDelta = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WheelEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "wheelDelta"); + + let result = cbb_wf.getValue(this, 'wheelDelta'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WheelEvent_get_wheelDelta, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WheelEvent_get_wheelDelta, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocket_get_url = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocket"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "url"); + + let result = cbb_wf.getValue(this, 'url'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocket_get_url, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_get_url, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocket_get_readyState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocket"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "readyState"); + + let result = cbb_wf.getValue(this, 'readyState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocket_get_readyState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_get_readyState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocket_get_bufferedAmount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocket"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "bufferedAmount"); + + let result = cbb_wf.getValue(this, 'bufferedAmount'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocket_get_bufferedAmount, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_get_bufferedAmount, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocket_get_onopen = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocket"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onopen"); + + let result = cbb_wf.getValue(this, 'onopen'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocket_get_onopen, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_get_onopen, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocket_set_onopen = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebSocket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onopen", val); - if (cbb_wf.is_log) { - console.log("[*] WebSocket_set_onopen, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "WebSocket"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onopen', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_set_onopen, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.WebSocket_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocket"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + + let result = cbb_wf.getValue(this, 'onerror'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocket_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocket_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebSocket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] WebSocket_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "WebSocket"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.WebSocket_get_onclose = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocket"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onclose"); + + let result = cbb_wf.getValue(this, 'onclose'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocket_get_onclose, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_get_onclose, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocket_set_onclose = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebSocket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onclose", val); - if (cbb_wf.is_log) { - console.log("[*] WebSocket_set_onclose, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "WebSocket"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onclose', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_set_onclose, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.WebSocket_get_extensions = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocket"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "extensions"); + + let result = cbb_wf.getValue(this, 'extensions'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocket_get_extensions, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_get_extensions, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocket_get_protocol = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocket"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "protocol"); + + let result = cbb_wf.getValue(this, 'protocol'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocket_get_protocol, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_get_protocol, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocket_get_onmessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocket"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmessage"); + + let result = cbb_wf.getValue(this, 'onmessage'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocket_get_onmessage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_get_onmessage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocket_set_onmessage = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebSocket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmessage", val); - if (cbb_wf.is_log) { - console.log("[*] WebSocket_set_onmessage, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.WebSocket_get_binaryType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocket"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "binaryType"); + cbb_wf.setValue(this, 'onmessage', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocket_get_binaryType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_set_onmessage, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.WebSocket_get_binaryType = function () { + let r = cbb_wf.checkIllegal(this, "WebSocket"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'binaryType'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_get_binaryType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocket_set_binaryType = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebSocket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "binaryType", val); - if (cbb_wf.is_log) { - console.log("[*] WebSocket_set_binaryType, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "WebSocket"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'binaryType', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_set_binaryType, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.WebSocket_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebSocket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebSocket_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WebSocket"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.WebSocket_send = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebSocket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebSocket_send, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WebSocket"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebSocket_send, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.WebGLShaderPrecisionFormat_get_rangeMin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGLShaderPrecisionFormat"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rangeMin"); + + let result = cbb_wf.getValue(this, 'rangeMin'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGLShaderPrecisionFormat_get_rangeMin, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLShaderPrecisionFormat_get_rangeMin, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebGLShaderPrecisionFormat_get_rangeMax = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGLShaderPrecisionFormat"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rangeMax"); + + let result = cbb_wf.getValue(this, 'rangeMax'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGLShaderPrecisionFormat_get_rangeMax, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLShaderPrecisionFormat_get_rangeMax, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebGLShaderPrecisionFormat_get_precision = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGLShaderPrecisionFormat"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "precision"); + + let result = cbb_wf.getValue(this, 'precision'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGLShaderPrecisionFormat_get_precision, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLShaderPrecisionFormat_get_precision, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebGLRenderingContext_get_canvas = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "canvas"); + + let result = cbb_wf.getValue(this, 'canvas'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGLRenderingContext_get_canvas, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_get_canvas, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebGLRenderingContext_get_drawingBufferWidth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "drawingBufferWidth"); + + let result = cbb_wf.getValue(this, 'drawingBufferWidth'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGLRenderingContext_get_drawingBufferWidth, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_get_drawingBufferWidth, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebGLRenderingContext_get_drawingBufferHeight = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "drawingBufferHeight"); + + let result = cbb_wf.getValue(this, 'drawingBufferHeight'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGLRenderingContext_get_drawingBufferHeight, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_get_drawingBufferHeight, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.WebGLRenderingContext_get_drawingBufferColorSpace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "drawingBufferColorSpace"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGLRenderingContext_get_drawingBufferColorSpace, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebGLRenderingContext_set_drawingBufferColorSpace = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "drawingBufferColorSpace", val); - if (cbb_wf.is_log) { - console.log("[*] WebGLRenderingContext_set_drawingBufferColorSpace, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.WebGLRenderingContext_get_unpackColorSpace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "unpackColorSpace"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGLRenderingContext_get_unpackColorSpace, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebGLRenderingContext_set_unpackColorSpace = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "unpackColorSpace", val); - if (cbb_wf.is_log) { - console.log("[*] WebGLRenderingContext_set_unpackColorSpace, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } this.WebGLRenderingContext_activeTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_activeTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_attachShader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_attachShader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_bindAttribLocation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_bindAttribLocation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_bindRenderbuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_bindRenderbuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_blendColor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_blendColor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_blendEquation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_blendEquation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_blendEquationSeparate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_blendEquationSeparate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_blendFunc = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_blendFunc, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_blendFuncSeparate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_blendFuncSeparate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_bufferData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_bufferData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_bufferSubData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_bufferSubData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_checkFramebufferStatus = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_checkFramebufferStatus, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_compileShader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_compileShader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_compressedTexImage2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_compressedTexImage2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_compressedTexSubImage2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_compressedTexSubImage2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_copyTexImage2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_copyTexImage2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_copyTexSubImage2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_copyTexSubImage2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_createBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_createBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_createFramebuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_createFramebuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_createProgram = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_createProgram, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_createRenderbuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_createRenderbuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_createShader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_createShader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_createTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_createTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_cullFace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_cullFace, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_deleteBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_deleteBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_deleteFramebuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_deleteFramebuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_deleteProgram = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_deleteProgram, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_deleteRenderbuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_deleteRenderbuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_deleteShader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_deleteShader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_deleteTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_deleteTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_depthFunc = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_depthFunc, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_depthMask = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_depthMask, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_depthRange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_depthRange, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_detachShader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_detachShader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_disable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_disable, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_enable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_enable, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_finish = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_finish, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_flush = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_flush, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_framebufferRenderbuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_framebufferRenderbuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_framebufferTexture2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_framebufferTexture2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_frontFace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_frontFace, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_generateMipmap = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_generateMipmap, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getActiveAttrib = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getActiveAttrib, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getActiveUniform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getActiveUniform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getAttachedShaders = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getAttachedShaders, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getAttribLocation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getAttribLocation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getBufferParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getBufferParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getContextAttributes = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getContextAttributes, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getError = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getError, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getExtension = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getExtension, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getFramebufferAttachmentParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getFramebufferAttachmentParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getProgramInfoLog = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getProgramInfoLog, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getProgramParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getProgramParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getRenderbufferParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getRenderbufferParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getShaderInfoLog = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getShaderInfoLog, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getShaderParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getShaderParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getShaderPrecisionFormat = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getShaderPrecisionFormat, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getShaderSource = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getShaderSource, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getSupportedExtensions = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getSupportedExtensions, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getTexParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getTexParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getUniform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getUniform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getUniformLocation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getUniformLocation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getVertexAttrib = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getVertexAttrib, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_getVertexAttribOffset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_getVertexAttribOffset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_hint = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_hint, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_isBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_isBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_isContextLost = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_isContextLost, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_isEnabled = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_isEnabled, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_isFramebuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_isFramebuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_isProgram = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_isProgram, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_isRenderbuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_isRenderbuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_isShader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_isShader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_isTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_isTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_lineWidth = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_lineWidth, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_linkProgram = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_linkProgram, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_pixelStorei = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_pixelStorei, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_polygonOffset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_polygonOffset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_readPixels = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_readPixels, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_renderbufferStorage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_renderbufferStorage, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_sampleCoverage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_sampleCoverage, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_shaderSource = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_shaderSource, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_stencilFunc = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_stencilFunc, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_stencilFuncSeparate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_stencilFuncSeparate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_stencilMask = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_stencilMask, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_stencilMaskSeparate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_stencilMaskSeparate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_stencilOp = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_stencilOp, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_stencilOpSeparate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_stencilOpSeparate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_texImage2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_texImage2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_texParameterf = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_texParameterf, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_texParameteri = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_texParameteri, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_texSubImage2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_texSubImage2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_useProgram = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_useProgram, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_validateProgram = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_validateProgram, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_bindBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_bindBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_bindFramebuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_bindFramebuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_bindTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_bindTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_clearColor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_clearColor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_clearDepth = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_clearDepth, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_clearStencil = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_clearStencil, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_colorMask = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_colorMask, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_disableVertexAttribArray = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_disableVertexAttribArray, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_drawArrays = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_drawArrays, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_drawElements = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_drawElements, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_enableVertexAttribArray = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_enableVertexAttribArray, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_scissor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_scissor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform1f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform1f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform1fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform1fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform1i = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform1i, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform1iv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform1iv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform2f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform2f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform2fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform2fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform2i = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform2i, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform2iv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform2iv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform3f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform3f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform3fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform3fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform3i = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform3i, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform3iv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform3iv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform4f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform4f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform4fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform4fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform4i = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform4i, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniform4iv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniform4iv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniformMatrix2fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniformMatrix2fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniformMatrix3fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniformMatrix3fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_uniformMatrix4fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_uniformMatrix4fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_vertexAttrib1f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_vertexAttrib1f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_vertexAttrib1fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_vertexAttrib1fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_vertexAttrib2f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_vertexAttrib2f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_vertexAttrib2fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_vertexAttrib2fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_vertexAttrib3f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_vertexAttrib3f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_vertexAttrib3fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_vertexAttrib3fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_vertexAttrib4f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_vertexAttrib4f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_vertexAttrib4fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_vertexAttrib4fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_vertexAttribPointer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_vertexAttribPointer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_viewport = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_viewport, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGLRenderingContext_get_drawingBufferFormat = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "drawingBufferFormat"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGLRenderingContext_get_drawingBufferFormat, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_activeTexture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.WebGLRenderingContext_attachShader = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_attachShader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_bindAttribLocation = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_bindAttribLocation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_bindRenderbuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_bindRenderbuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_blendColor = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_blendColor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_blendEquation = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_blendEquation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_blendEquationSeparate = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_blendEquationSeparate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_blendFunc = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_blendFunc, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_blendFuncSeparate = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_blendFuncSeparate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_bufferData = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_bufferData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_bufferSubData = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_bufferSubData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_checkFramebufferStatus = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_checkFramebufferStatus, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_compileShader = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_compileShader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_compressedTexImage2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_compressedTexImage2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_compressedTexSubImage2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_compressedTexSubImage2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_copyTexImage2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_copyTexImage2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_copyTexSubImage2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_copyTexSubImage2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_createBuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_createBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_createFramebuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_createFramebuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_createProgram = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_createProgram, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_createRenderbuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_createRenderbuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_createShader = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_createShader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_createTexture = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_createTexture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_cullFace = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_cullFace, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_deleteBuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_deleteBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_deleteFramebuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_deleteFramebuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_deleteProgram = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_deleteProgram, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_deleteRenderbuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_deleteRenderbuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_deleteShader = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_deleteShader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_deleteTexture = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_deleteTexture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_depthFunc = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_depthFunc, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_depthMask = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_depthMask, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_depthRange = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_depthRange, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_detachShader = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_detachShader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_disable = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_disable, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_enable = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_enable, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_finish = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_finish, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_flush = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_flush, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_framebufferRenderbuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_framebufferRenderbuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_framebufferTexture2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_framebufferTexture2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_frontFace = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_frontFace, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_generateMipmap = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_generateMipmap, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getActiveAttrib = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getActiveAttrib, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getActiveUniform = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getActiveUniform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getAttachedShaders = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getAttachedShaders, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getAttribLocation = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getAttribLocation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getBufferParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getBufferParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getContextAttributes = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getContextAttributes, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getError = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getError, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getExtension = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getExtension, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getFramebufferAttachmentParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getFramebufferAttachmentParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getProgramInfoLog = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getProgramInfoLog, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getProgramParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getProgramParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getRenderbufferParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getRenderbufferParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getShaderInfoLog = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getShaderInfoLog, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getShaderParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getShaderParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getShaderPrecisionFormat = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getShaderPrecisionFormat, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getShaderSource = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getShaderSource, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getSupportedExtensions = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getSupportedExtensions, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getTexParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getTexParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getUniform = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getUniform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getUniformLocation = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getUniformLocation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getVertexAttrib = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getVertexAttrib, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_getVertexAttribOffset = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_getVertexAttribOffset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_hint = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_hint, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_isBuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_isBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_isContextLost = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_isContextLost, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_isEnabled = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_isEnabled, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_isFramebuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_isFramebuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_isProgram = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_isProgram, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_isRenderbuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_isRenderbuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_isShader = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_isShader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_isTexture = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_isTexture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_lineWidth = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_lineWidth, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_linkProgram = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_linkProgram, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_pixelStorei = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_pixelStorei, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_polygonOffset = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_polygonOffset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_readPixels = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_readPixels, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_renderbufferStorage = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_renderbufferStorage, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_sampleCoverage = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_sampleCoverage, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_shaderSource = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_shaderSource, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_stencilFunc = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_stencilFunc, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_stencilFuncSeparate = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_stencilFuncSeparate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_stencilMask = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_stencilMask, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_stencilMaskSeparate = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_stencilMaskSeparate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_stencilOp = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_stencilOp, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_stencilOpSeparate = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_stencilOpSeparate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_texImage2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_texImage2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_texParameterf = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_texParameterf, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_texParameteri = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_texParameteri, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_texSubImage2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_texSubImage2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_useProgram = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_useProgram, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_validateProgram = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_validateProgram, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_bindBuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_bindBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_bindFramebuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_bindFramebuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_bindTexture = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_bindTexture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_clear = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_clearColor = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_clearColor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_clearDepth = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_clearDepth, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_clearStencil = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_clearStencil, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_colorMask = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_colorMask, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_disableVertexAttribArray = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_disableVertexAttribArray, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_drawArrays = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_drawArrays, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_drawElements = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_drawElements, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_enableVertexAttribArray = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_enableVertexAttribArray, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_scissor = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_scissor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform1f = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform1f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform1fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform1fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform1i = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform1i, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform1iv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform1iv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform2f = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform2f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform2fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform2fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform2i = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform2i, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform2iv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform2iv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform3f = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform3f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform3fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform3fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform3i = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform3i, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform3iv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform3iv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform4f = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform4f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform4fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform4fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform4i = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform4i, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniform4iv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniform4iv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniformMatrix2fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniformMatrix2fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniformMatrix3fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniformMatrix3fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_uniformMatrix4fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_uniformMatrix4fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_vertexAttrib1f = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_vertexAttrib1f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_vertexAttrib1fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_vertexAttrib1fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_vertexAttrib2f = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_vertexAttrib2f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_vertexAttrib2fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_vertexAttrib2fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_vertexAttrib3f = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_vertexAttrib3f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_vertexAttrib3fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_vertexAttrib3fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_vertexAttrib4f = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_vertexAttrib4f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_vertexAttrib4fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_vertexAttrib4fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_vertexAttribPointer = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_vertexAttribPointer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_viewport = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_viewport, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLRenderingContext_get_drawingBufferColorSpace = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } -this.WebGLRenderingContext_drawingBufferStorage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_drawingBufferStorage, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result = cbb_wf.getValue(this, 'drawingBufferColorSpace'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_get_drawingBufferColorSpace, this =>", toString.call(this), ", result => ", '' + result, info); } + return result; +} +this.WebGLRenderingContext_set_drawingBufferColorSpace = function (val) { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'drawingBufferColorSpace', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_set_drawingBufferColorSpace, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.WebGLRenderingContext_get_unpackColorSpace = function () { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'unpackColorSpace'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_get_unpackColorSpace, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebGLRenderingContext_set_unpackColorSpace = function (val) { + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'unpackColorSpace', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_set_unpackColorSpace, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.WebGLRenderingContext_makeXRCompatible = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGLRenderingContext_makeXRCompatible, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WebGLRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLRenderingContext_makeXRCompatible, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.WebGLContextEvent_get_statusMessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGLContextEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "statusMessage"); + + let result = cbb_wf.getValue(this, 'statusMessage'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGLContextEvent_get_statusMessage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLContextEvent_get_statusMessage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebGLActiveInfo_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGLActiveInfo"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + + let result = cbb_wf.getValue(this, 'size'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGLActiveInfo_get_size, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLActiveInfo_get_size, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebGLActiveInfo_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGLActiveInfo"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGLActiveInfo_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLActiveInfo_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebGLActiveInfo_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGLActiveInfo"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGLActiveInfo_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGLActiveInfo_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebGL2RenderingContext_get_canvas = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "canvas"); + + let result = cbb_wf.getValue(this, 'canvas'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGL2RenderingContext_get_canvas, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_get_canvas, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebGL2RenderingContext_get_drawingBufferWidth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "drawingBufferWidth"); + + let result = cbb_wf.getValue(this, 'drawingBufferWidth'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGL2RenderingContext_get_drawingBufferWidth, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_get_drawingBufferWidth, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebGL2RenderingContext_get_drawingBufferHeight = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "drawingBufferHeight"); + + let result = cbb_wf.getValue(this, 'drawingBufferHeight'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGL2RenderingContext_get_drawingBufferHeight, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_get_drawingBufferHeight, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.WebGL2RenderingContext_get_drawingBufferColorSpace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "drawingBufferColorSpace"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGL2RenderingContext_get_drawingBufferColorSpace, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebGL2RenderingContext_set_drawingBufferColorSpace = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "drawingBufferColorSpace", val); - if (cbb_wf.is_log) { - console.log("[*] WebGL2RenderingContext_set_drawingBufferColorSpace, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.WebGL2RenderingContext_get_unpackColorSpace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "unpackColorSpace"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGL2RenderingContext_get_unpackColorSpace, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebGL2RenderingContext_set_unpackColorSpace = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "unpackColorSpace", val); - if (cbb_wf.is_log) { - console.log("[*] WebGL2RenderingContext_set_unpackColorSpace, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } this.WebGL2RenderingContext_activeTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_activeTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_attachShader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_attachShader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_beginQuery = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_beginQuery, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_beginTransformFeedback = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_beginTransformFeedback, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_bindAttribLocation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_bindAttribLocation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_bindBufferBase = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_bindBufferBase, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_bindBufferRange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_bindBufferRange, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_bindRenderbuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_bindRenderbuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_bindSampler = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_bindSampler, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_bindTransformFeedback = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_bindTransformFeedback, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_bindVertexArray = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_bindVertexArray, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_blendColor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_blendColor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_blendEquation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_blendEquation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_blendEquationSeparate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_blendEquationSeparate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_blendFunc = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_blendFunc, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_blendFuncSeparate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_blendFuncSeparate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_blitFramebuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_blitFramebuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_bufferData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_bufferData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_bufferSubData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_bufferSubData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_checkFramebufferStatus = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_checkFramebufferStatus, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_clientWaitSync = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_clientWaitSync, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_compileShader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_compileShader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_compressedTexImage2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_compressedTexImage2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_compressedTexImage3D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_compressedTexImage3D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_compressedTexSubImage2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_compressedTexSubImage2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_compressedTexSubImage3D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_compressedTexSubImage3D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_copyBufferSubData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_copyBufferSubData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_copyTexImage2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_copyTexImage2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_copyTexSubImage2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_copyTexSubImage2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_copyTexSubImage3D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_copyTexSubImage3D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_createBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_createBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_createFramebuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_createFramebuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_createProgram = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_createProgram, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_createQuery = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_createQuery, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_createRenderbuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_createRenderbuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_createSampler = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_createSampler, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_createShader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_createShader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_createTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_createTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_createTransformFeedback = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_createTransformFeedback, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_createVertexArray = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_createVertexArray, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_cullFace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_cullFace, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_deleteBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_deleteBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_deleteFramebuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_deleteFramebuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_deleteProgram = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_deleteProgram, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_deleteQuery = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_deleteQuery, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_deleteRenderbuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_deleteRenderbuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_deleteSampler = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_deleteSampler, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_deleteShader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_deleteShader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_deleteSync = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_deleteSync, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_deleteTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_deleteTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_deleteTransformFeedback = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_deleteTransformFeedback, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_deleteVertexArray = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_deleteVertexArray, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_depthFunc = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_depthFunc, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_depthMask = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_depthMask, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_depthRange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_depthRange, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_detachShader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_detachShader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_disable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_disable, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_drawArraysInstanced = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_drawArraysInstanced, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_drawElementsInstanced = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_drawElementsInstanced, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_drawRangeElements = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_drawRangeElements, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_enable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_enable, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_endQuery = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_endQuery, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_endTransformFeedback = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_endTransformFeedback, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_fenceSync = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_fenceSync, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_finish = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_finish, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_flush = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_flush, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_framebufferRenderbuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_framebufferRenderbuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_framebufferTexture2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_framebufferTexture2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_framebufferTextureLayer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_framebufferTextureLayer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_frontFace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_frontFace, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_generateMipmap = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_generateMipmap, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getActiveAttrib = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getActiveAttrib, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getActiveUniform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getActiveUniform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getActiveUniformBlockName = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getActiveUniformBlockName, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getActiveUniformBlockParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getActiveUniformBlockParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getActiveUniforms = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getActiveUniforms, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getAttachedShaders = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getAttachedShaders, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getAttribLocation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getAttribLocation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getBufferParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getBufferParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getBufferSubData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getBufferSubData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getContextAttributes = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getContextAttributes, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getError = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getError, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getExtension = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getExtension, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getFragDataLocation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getFragDataLocation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getFramebufferAttachmentParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getFramebufferAttachmentParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getIndexedParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getIndexedParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getInternalformatParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getInternalformatParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getProgramInfoLog = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getProgramInfoLog, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getProgramParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getProgramParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getQuery = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getQuery, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getQueryParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getQueryParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getRenderbufferParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getRenderbufferParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getSamplerParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getSamplerParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getShaderInfoLog = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getShaderInfoLog, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getShaderParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getShaderParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getShaderPrecisionFormat = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getShaderPrecisionFormat, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getShaderSource = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getShaderSource, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getSupportedExtensions = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getSupportedExtensions, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getSyncParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getSyncParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getTexParameter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getTexParameter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getTransformFeedbackVarying = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getTransformFeedbackVarying, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getUniform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getUniform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getUniformBlockIndex = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getUniformBlockIndex, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getUniformIndices = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getUniformIndices, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getUniformLocation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getUniformLocation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getVertexAttrib = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getVertexAttrib, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_getVertexAttribOffset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_getVertexAttribOffset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_hint = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_hint, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_invalidateFramebuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_invalidateFramebuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_invalidateSubFramebuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_invalidateSubFramebuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_isBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_isBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_isContextLost = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_isContextLost, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_isEnabled = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_isEnabled, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_isFramebuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_isFramebuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_isProgram = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_isProgram, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_isQuery = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_isQuery, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_isRenderbuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_isRenderbuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_isSampler = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_isSampler, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_isShader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_isShader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_isSync = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_isSync, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_isTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_isTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_isTransformFeedback = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_isTransformFeedback, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_isVertexArray = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_isVertexArray, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_lineWidth = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_lineWidth, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_linkProgram = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_linkProgram, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_pauseTransformFeedback = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_pauseTransformFeedback, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_pixelStorei = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_pixelStorei, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_polygonOffset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_polygonOffset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_readBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_readBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_readPixels = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_readPixels, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_renderbufferStorage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_renderbufferStorage, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_renderbufferStorageMultisample = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_renderbufferStorageMultisample, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_resumeTransformFeedback = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_resumeTransformFeedback, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_sampleCoverage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_sampleCoverage, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_samplerParameterf = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_samplerParameterf, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_samplerParameteri = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_samplerParameteri, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_shaderSource = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_shaderSource, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_stencilFunc = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_stencilFunc, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_stencilFuncSeparate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_stencilFuncSeparate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_stencilMask = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_stencilMask, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_stencilMaskSeparate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_stencilMaskSeparate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_stencilOp = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_stencilOp, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_stencilOpSeparate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_stencilOpSeparate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_texImage2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_texImage2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_texImage3D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_texImage3D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_texParameterf = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_texParameterf, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_texParameteri = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_texParameteri, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_texStorage2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_texStorage2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_texStorage3D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_texStorage3D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_texSubImage2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_texSubImage2D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_texSubImage3D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_texSubImage3D, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_transformFeedbackVaryings = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_transformFeedbackVaryings, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform1ui = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform1ui, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform2ui = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform2ui, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform3ui = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform3ui, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform4ui = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform4ui, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniformBlockBinding = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniformBlockBinding, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_useProgram = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_useProgram, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_validateProgram = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_validateProgram, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttribDivisor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttribDivisor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttribI4i = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttribI4i, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttribI4ui = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttribI4ui, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttribIPointer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttribIPointer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_waitSync = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_waitSync, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_bindBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_bindBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_bindFramebuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_bindFramebuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_bindTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_bindTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_clearBufferfi = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_clearBufferfi, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_clearBufferfv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_clearBufferfv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_clearBufferiv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_clearBufferiv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_clearBufferuiv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_clearBufferuiv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_clearColor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_clearColor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_clearDepth = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_clearDepth, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_clearStencil = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_clearStencil, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_colorMask = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_colorMask, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_disableVertexAttribArray = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_disableVertexAttribArray, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_drawArrays = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_drawArrays, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_drawBuffers = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_drawBuffers, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_drawElements = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_drawElements, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_enableVertexAttribArray = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_enableVertexAttribArray, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_scissor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_scissor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform1f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform1f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform1fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform1fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform1i = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform1i, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform1iv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform1iv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform1uiv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform1uiv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform2f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform2f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform2fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform2fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform2i = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform2i, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform2iv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform2iv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform2uiv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform2uiv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform3f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform3f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform3fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform3fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform3i = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform3i, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform3iv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform3iv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform3uiv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform3uiv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform4f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform4f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform4fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform4fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform4i = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform4i, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform4iv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform4iv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniform4uiv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniform4uiv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniformMatrix2fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniformMatrix2fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniformMatrix2x3fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniformMatrix2x3fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniformMatrix2x4fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniformMatrix2x4fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniformMatrix3fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniformMatrix3fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniformMatrix3x2fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniformMatrix3x2fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniformMatrix3x4fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniformMatrix3x4fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniformMatrix4fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniformMatrix4fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniformMatrix4x2fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniformMatrix4x2fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_uniformMatrix4x3fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_uniformMatrix4x3fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttrib1f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttrib1f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttrib1fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttrib1fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttrib2f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttrib2f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttrib2fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttrib2fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttrib3f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttrib3f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttrib3fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttrib3fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttrib4f = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttrib4f, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttrib4fv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttrib4fv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttribI4iv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttribI4iv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttribI4uiv = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttribI4uiv, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_vertexAttribPointer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_vertexAttribPointer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_viewport = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_viewport, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebGL2RenderingContext_get_drawingBufferFormat = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "drawingBufferFormat"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebGL2RenderingContext_get_drawingBufferFormat, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_activeTexture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.WebGL2RenderingContext_drawingBufferStorage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_drawingBufferStorage, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - +this.WebGL2RenderingContext_attachShader = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_attachShader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_beginQuery = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_beginQuery, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_beginTransformFeedback = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_beginTransformFeedback, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_bindAttribLocation = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_bindAttribLocation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_bindBufferBase = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_bindBufferBase, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_bindBufferRange = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_bindBufferRange, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_bindRenderbuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_bindRenderbuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_bindSampler = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_bindSampler, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_bindTransformFeedback = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_bindTransformFeedback, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_bindVertexArray = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_bindVertexArray, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_blendColor = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_blendColor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_blendEquation = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_blendEquation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_blendEquationSeparate = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_blendEquationSeparate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_blendFunc = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_blendFunc, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_blendFuncSeparate = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_blendFuncSeparate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_blitFramebuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_blitFramebuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_bufferData = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_bufferData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_bufferSubData = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_bufferSubData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_checkFramebufferStatus = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_checkFramebufferStatus, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_clientWaitSync = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_clientWaitSync, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_compileShader = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_compileShader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_compressedTexImage2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_compressedTexImage2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_compressedTexImage3D = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_compressedTexImage3D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_compressedTexSubImage2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_compressedTexSubImage2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_compressedTexSubImage3D = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_compressedTexSubImage3D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_copyBufferSubData = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_copyBufferSubData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_copyTexImage2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_copyTexImage2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_copyTexSubImage2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_copyTexSubImage2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_copyTexSubImage3D = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_copyTexSubImage3D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_createBuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_createBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_createFramebuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_createFramebuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_createProgram = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_createProgram, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_createQuery = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_createQuery, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_createRenderbuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_createRenderbuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_createSampler = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_createSampler, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_createShader = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_createShader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_createTexture = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_createTexture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_createTransformFeedback = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_createTransformFeedback, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_createVertexArray = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_createVertexArray, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_cullFace = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_cullFace, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_deleteBuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_deleteBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_deleteFramebuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_deleteFramebuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_deleteProgram = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_deleteProgram, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_deleteQuery = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_deleteQuery, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_deleteRenderbuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_deleteRenderbuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_deleteSampler = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_deleteSampler, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_deleteShader = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_deleteShader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_deleteSync = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_deleteSync, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_deleteTexture = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_deleteTexture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_deleteTransformFeedback = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_deleteTransformFeedback, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_deleteVertexArray = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_deleteVertexArray, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_depthFunc = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_depthFunc, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_depthMask = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_depthMask, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_depthRange = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_depthRange, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_detachShader = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_detachShader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_disable = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_disable, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_drawArraysInstanced = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_drawArraysInstanced, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_drawElementsInstanced = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_drawElementsInstanced, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_drawRangeElements = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_drawRangeElements, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_enable = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_enable, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_endQuery = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_endQuery, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_endTransformFeedback = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_endTransformFeedback, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_fenceSync = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_fenceSync, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_finish = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_finish, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_flush = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_flush, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_framebufferRenderbuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_framebufferRenderbuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_framebufferTexture2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_framebufferTexture2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_framebufferTextureLayer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_framebufferTextureLayer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_frontFace = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_frontFace, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_generateMipmap = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_generateMipmap, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getActiveAttrib = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getActiveAttrib, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getActiveUniform = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getActiveUniform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getActiveUniformBlockName = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getActiveUniformBlockName, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getActiveUniformBlockParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getActiveUniformBlockParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getActiveUniforms = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getActiveUniforms, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getAttachedShaders = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getAttachedShaders, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getAttribLocation = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getAttribLocation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getBufferParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getBufferParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getBufferSubData = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getBufferSubData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getContextAttributes = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getContextAttributes, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getError = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getError, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getExtension = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getExtension, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getFragDataLocation = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getFragDataLocation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getFramebufferAttachmentParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getFramebufferAttachmentParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getIndexedParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getIndexedParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getInternalformatParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getInternalformatParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getProgramInfoLog = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getProgramInfoLog, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getProgramParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getProgramParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getQuery = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getQuery, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getQueryParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getQueryParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getRenderbufferParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getRenderbufferParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getSamplerParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getSamplerParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getShaderInfoLog = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getShaderInfoLog, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getShaderParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getShaderParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getShaderPrecisionFormat = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getShaderPrecisionFormat, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getShaderSource = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getShaderSource, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getSupportedExtensions = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getSupportedExtensions, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getSyncParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getSyncParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getTexParameter = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getTexParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getTransformFeedbackVarying = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getTransformFeedbackVarying, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getUniform = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getUniform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getUniformBlockIndex = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getUniformBlockIndex, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getUniformIndices = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getUniformIndices, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getUniformLocation = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getUniformLocation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getVertexAttrib = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getVertexAttrib, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_getVertexAttribOffset = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_getVertexAttribOffset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_hint = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_hint, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_invalidateFramebuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_invalidateFramebuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_invalidateSubFramebuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_invalidateSubFramebuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_isBuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_isBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_isContextLost = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_isContextLost, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_isEnabled = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_isEnabled, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_isFramebuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_isFramebuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_isProgram = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_isProgram, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_isQuery = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_isQuery, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_isRenderbuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_isRenderbuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_isSampler = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_isSampler, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_isShader = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_isShader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_isSync = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_isSync, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_isTexture = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_isTexture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_isTransformFeedback = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_isTransformFeedback, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_isVertexArray = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_isVertexArray, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_lineWidth = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_lineWidth, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_linkProgram = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_linkProgram, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_pauseTransformFeedback = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_pauseTransformFeedback, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_pixelStorei = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_pixelStorei, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_polygonOffset = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_polygonOffset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_readBuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_readBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_readPixels = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_readPixels, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_renderbufferStorage = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_renderbufferStorage, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_renderbufferStorageMultisample = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_renderbufferStorageMultisample, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_resumeTransformFeedback = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_resumeTransformFeedback, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_sampleCoverage = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_sampleCoverage, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_samplerParameterf = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_samplerParameterf, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_samplerParameteri = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_samplerParameteri, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_shaderSource = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_shaderSource, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_stencilFunc = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_stencilFunc, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_stencilFuncSeparate = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_stencilFuncSeparate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_stencilMask = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_stencilMask, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_stencilMaskSeparate = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_stencilMaskSeparate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_stencilOp = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_stencilOp, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_stencilOpSeparate = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_stencilOpSeparate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_texImage2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_texImage2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_texImage3D = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_texImage3D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_texParameterf = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_texParameterf, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_texParameteri = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_texParameteri, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_texStorage2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_texStorage2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_texStorage3D = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_texStorage3D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_texSubImage2D = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_texSubImage2D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_texSubImage3D = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_texSubImage3D, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_transformFeedbackVaryings = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_transformFeedbackVaryings, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform1ui = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform1ui, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform2ui = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform2ui, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform3ui = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform3ui, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform4ui = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform4ui, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniformBlockBinding = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniformBlockBinding, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_useProgram = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_useProgram, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_validateProgram = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_validateProgram, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttribDivisor = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttribDivisor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttribI4i = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttribI4i, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttribI4ui = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttribI4ui, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttribIPointer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttribIPointer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_waitSync = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_waitSync, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_bindBuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_bindBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_bindFramebuffer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_bindFramebuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_bindTexture = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_bindTexture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_clear = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_clearBufferfi = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_clearBufferfi, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_clearBufferfv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_clearBufferfv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_clearBufferiv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_clearBufferiv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_clearBufferuiv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_clearBufferuiv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_clearColor = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_clearColor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_clearDepth = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_clearDepth, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_clearStencil = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_clearStencil, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_colorMask = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_colorMask, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_disableVertexAttribArray = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_disableVertexAttribArray, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_drawArrays = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_drawArrays, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_drawBuffers = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_drawBuffers, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_drawElements = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_drawElements, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_enableVertexAttribArray = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_enableVertexAttribArray, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_scissor = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_scissor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform1f = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform1f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform1fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform1fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform1i = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform1i, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform1iv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform1iv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform1uiv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform1uiv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform2f = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform2f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform2fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform2fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform2i = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform2i, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform2iv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform2iv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform2uiv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform2uiv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform3f = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform3f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform3fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform3fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform3i = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform3i, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform3iv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform3iv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform3uiv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform3uiv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform4f = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform4f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform4fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform4fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform4i = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform4i, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform4iv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform4iv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniform4uiv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniform4uiv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniformMatrix2fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniformMatrix2fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniformMatrix2x3fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniformMatrix2x3fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniformMatrix2x4fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniformMatrix2x4fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniformMatrix3fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniformMatrix3fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniformMatrix3x2fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniformMatrix3x2fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniformMatrix3x4fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniformMatrix3x4fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniformMatrix4fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniformMatrix4fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniformMatrix4x2fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniformMatrix4x2fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_uniformMatrix4x3fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_uniformMatrix4x3fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttrib1f = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttrib1f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttrib1fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttrib1fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttrib2f = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttrib2f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttrib2fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttrib2fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttrib3f = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttrib3f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttrib3fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttrib3fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttrib4f = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttrib4f, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttrib4fv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttrib4fv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttribI4iv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttribI4iv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttribI4uiv = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttribI4uiv, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_vertexAttribPointer = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_vertexAttribPointer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_viewport = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_viewport, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGL2RenderingContext_get_drawingBufferColorSpace = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'drawingBufferColorSpace'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_get_drawingBufferColorSpace, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebGL2RenderingContext_set_drawingBufferColorSpace = function (val) { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'drawingBufferColorSpace', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_set_drawingBufferColorSpace, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.WebGL2RenderingContext_get_unpackColorSpace = function () { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'unpackColorSpace'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_get_unpackColorSpace, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebGL2RenderingContext_set_unpackColorSpace = function (val) { + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'unpackColorSpace', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_set_unpackColorSpace, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.WebGL2RenderingContext_makeXRCompatible = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebGL2RenderingContext_makeXRCompatible, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WebGL2RenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebGL2RenderingContext_makeXRCompatible, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.WaveShaperNode_get_curve = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WaveShaperNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "curve"); + + let result = cbb_wf.getValue(this, 'curve'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WaveShaperNode_get_curve, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WaveShaperNode_get_curve, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WaveShaperNode_set_curve = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WaveShaperNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "curve", val); - if (cbb_wf.is_log) { - console.log("[*] WaveShaperNode_set_curve, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.WaveShaperNode_get_oversample = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WaveShaperNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oversample"); + cbb_wf.setValue(this, 'curve', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WaveShaperNode_get_oversample, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WaveShaperNode_set_curve, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.WaveShaperNode_get_oversample = function () { + let r = cbb_wf.checkIllegal(this, "WaveShaperNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'oversample'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WaveShaperNode_get_oversample, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WaveShaperNode_set_oversample = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WaveShaperNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oversample", val); - if (cbb_wf.is_log) { - console.log("[*] WaveShaperNode_set_oversample, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "WaveShaperNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'oversample', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WaveShaperNode_set_oversample, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.VisualViewport_get_offsetLeft = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "VisualViewport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "offsetLeft"); + + let result = cbb_wf.getValue(this, 'offsetLeft'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VisualViewport_get_offsetLeft, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VisualViewport_get_offsetLeft, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.VisualViewport_get_offsetTop = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "VisualViewport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "offsetTop"); + + let result = cbb_wf.getValue(this, 'offsetTop'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VisualViewport_get_offsetTop, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VisualViewport_get_offsetTop, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.VisualViewport_get_pageLeft = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "VisualViewport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pageLeft"); + + let result = cbb_wf.getValue(this, 'pageLeft'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VisualViewport_get_pageLeft, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VisualViewport_get_pageLeft, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.VisualViewport_get_pageTop = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "VisualViewport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pageTop"); + + let result = cbb_wf.getValue(this, 'pageTop'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VisualViewport_get_pageTop, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VisualViewport_get_pageTop, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.VisualViewport_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "VisualViewport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + + let result = cbb_wf.getValue(this, 'width'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VisualViewport_get_width, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VisualViewport_get_width, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.VisualViewport_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "VisualViewport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + + let result = cbb_wf.getValue(this, 'height'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VisualViewport_get_height, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VisualViewport_get_height, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.VisualViewport_get_scale = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "VisualViewport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "scale"); + + let result = cbb_wf.getValue(this, 'scale'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VisualViewport_get_scale, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VisualViewport_get_scale, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.VisualViewport_get_onresize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "VisualViewport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onresize"); + + let result = cbb_wf.getValue(this, 'onresize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VisualViewport_get_onresize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VisualViewport_get_onresize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.VisualViewport_set_onresize = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VisualViewport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onresize", val); - if (cbb_wf.is_log) { - console.log("[*] VisualViewport_set_onresize, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.VisualViewport_get_onscroll = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "VisualViewport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onscroll"); + cbb_wf.setValue(this, 'onresize', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VisualViewport_get_onscroll, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VisualViewport_set_onresize, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.VisualViewport_get_onscroll = function () { + let r = cbb_wf.checkIllegal(this, "VisualViewport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onscroll'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VisualViewport_get_onscroll, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.VisualViewport_set_onscroll = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VisualViewport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onscroll", val); - if (cbb_wf.is_log) { - console.log("[*] VisualViewport_set_onscroll, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.ViewTransition_get_finished = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ViewTransition"); + let r = cbb_wf.checkIllegal(this, "VisualViewport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "finished"); + cbb_wf.setValue(this, 'onscroll', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ViewTransition_get_finished, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VisualViewport_set_onscroll, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } -this.ViewTransition_get_ready = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ViewTransition"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ready"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ViewTransition_get_ready, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ViewTransition_get_updateCallbackDone = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ViewTransition"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "updateCallbackDone"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ViewTransition_get_updateCallbackDone, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ViewTransition_skipTransition = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ViewTransition"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ViewTransition_skipTransition, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoFrame_get_format = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "format"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoFrame_get_format, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoFrame_get_timestamp = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "timestamp"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoFrame_get_timestamp, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoFrame_get_duration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "duration"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoFrame_get_duration, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoFrame_get_codedWidth = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "codedWidth"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoFrame_get_codedWidth, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoFrame_get_codedHeight = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "codedHeight"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoFrame_get_codedHeight, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoFrame_get_codedRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "codedRect"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoFrame_get_codedRect, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoFrame_get_visibleRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "visibleRect"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoFrame_get_visibleRect, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoFrame_get_displayWidth = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "displayWidth"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoFrame_get_displayWidth, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoFrame_get_displayHeight = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "displayHeight"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoFrame_get_displayHeight, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoFrame_get_colorSpace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "colorSpace"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoFrame_get_colorSpace, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoFrame_allocationSize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoFrame_allocationSize, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoFrame_clone = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoFrame_clone, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoFrame_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoFrame_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoFrame_copyTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoFrame_copyTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoColorSpace_get_primaries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoColorSpace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "primaries"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoColorSpace_get_primaries, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoColorSpace_get_transfer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoColorSpace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "transfer"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoColorSpace_get_transfer, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoColorSpace_get_matrix = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoColorSpace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "matrix"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoColorSpace_get_matrix, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoColorSpace_get_fullRange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoColorSpace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "fullRange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoColorSpace_get_fullRange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoColorSpace_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoColorSpace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoColorSpace_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.ValidityState_get_valueMissing = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ValidityState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "valueMissing"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.valueMissing; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ValidityState_get_valueMissing, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ValidityState_get_valueMissing, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ValidityState_get_valueMissing, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ValidityState_get_valueMissing, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ValidityState_get_typeMismatch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ValidityState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "typeMismatch"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.typeMismatch; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ValidityState_get_typeMismatch, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ValidityState_get_typeMismatch, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ValidityState_get_typeMismatch, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ValidityState_get_typeMismatch, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ValidityState_get_patternMismatch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ValidityState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "patternMismatch"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.patternMismatch; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ValidityState_get_patternMismatch, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ValidityState_get_patternMismatch, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ValidityState_get_patternMismatch, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ValidityState_get_patternMismatch, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ValidityState_get_tooLong = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ValidityState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "tooLong"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.tooLong; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ValidityState_get_tooLong, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ValidityState_get_tooLong, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ValidityState_get_tooLong, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ValidityState_get_tooLong, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ValidityState_get_tooShort = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ValidityState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "tooShort"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.tooShort; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ValidityState_get_tooShort, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ValidityState_get_tooShort, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ValidityState_get_tooShort, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ValidityState_get_tooShort, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ValidityState_get_rangeUnderflow = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ValidityState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rangeUnderflow"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rangeUnderflow; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ValidityState_get_rangeUnderflow, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ValidityState_get_rangeUnderflow, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ValidityState_get_rangeUnderflow, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ValidityState_get_rangeUnderflow, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ValidityState_get_rangeOverflow = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ValidityState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rangeOverflow"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rangeOverflow; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ValidityState_get_rangeOverflow, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ValidityState_get_rangeOverflow, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ValidityState_get_rangeOverflow, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ValidityState_get_rangeOverflow, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ValidityState_get_stepMismatch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ValidityState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "stepMismatch"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.stepMismatch; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ValidityState_get_stepMismatch, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ValidityState_get_stepMismatch, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ValidityState_get_stepMismatch, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ValidityState_get_stepMismatch, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ValidityState_get_badInput = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ValidityState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "badInput"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.badInput; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ValidityState_get_badInput, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ValidityState_get_badInput, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ValidityState_get_badInput, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ValidityState_get_badInput, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ValidityState_get_customError = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ValidityState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "customError"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.customError; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ValidityState_get_customError, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ValidityState_get_customError, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ValidityState_get_customError, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ValidityState_get_customError, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ValidityState_get_valid = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ValidityState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "valid"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ValidityState_get_valid, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VTTCue_get_vertical = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "vertical"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VTTCue_get_vertical, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VTTCue_set_vertical = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "vertical", val); - if (cbb_wf.is_log) { - console.log("[*] VTTCue_set_vertical, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.VTTCue_get_snapToLines = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "snapToLines"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VTTCue_get_snapToLines, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VTTCue_set_snapToLines = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "snapToLines", val); - if (cbb_wf.is_log) { - console.log("[*] VTTCue_set_snapToLines, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.VTTCue_get_line = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "line"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VTTCue_get_line, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VTTCue_set_line = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "line", val); - if (cbb_wf.is_log) { - console.log("[*] VTTCue_set_line, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.VTTCue_get_position = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "position"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VTTCue_get_position, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VTTCue_set_position = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "position", val); - if (cbb_wf.is_log) { - console.log("[*] VTTCue_set_position, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.VTTCue_get_size = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "size"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VTTCue_get_size, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VTTCue_set_size = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "size", val); - if (cbb_wf.is_log) { - console.log("[*] VTTCue_set_size, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.VTTCue_get_align = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "align"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VTTCue_get_align, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VTTCue_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "align", val); - if (cbb_wf.is_log) { - console.log("[*] VTTCue_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.VTTCue_get_text = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "text"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VTTCue_get_text, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VTTCue_set_text = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "text", val); - if (cbb_wf.is_log) { - console.log("[*] VTTCue_set_text, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.VTTCue_getCueAsHTML = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VTTCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VTTCue_getCueAsHTML, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.UserActivation_get_hasBeenActive = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "UserActivation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "hasBeenActive"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] UserActivation_get_hasBeenActive, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.UserActivation_get_isActive = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "UserActivation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "isActive"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] UserActivation_get_isActive, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.URLSearchParams_get_size = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLSearchParams"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.size; - let type = typeof result; - switch (type) { + let result = dom_element.valid; + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] URLSearchParams_get_size 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] ValidityState_get_valid, 返回object'); break - case "function": - console.log("[*] URLSearchParams_get_size 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] ValidityState_get_valid, 返回function'); break default: - // string number - console.log("[*] URLSearchParams_get_size 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLSearchParams_get_size, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ValidityState_get_valid, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.VTTCue_get_vertical = function () { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'vertical'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_get_vertical, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VTTCue_set_vertical = function (val) { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'vertical', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_set_vertical, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.VTTCue_get_snapToLines = function () { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'snapToLines'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_get_snapToLines, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VTTCue_set_snapToLines = function (val) { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'snapToLines', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_set_snapToLines, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.VTTCue_get_line = function () { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'line'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_get_line, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VTTCue_set_line = function (val) { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'line', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_set_line, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.VTTCue_get_position = function () { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'position'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_get_position, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VTTCue_set_position = function (val) { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'position', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_set_position, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.VTTCue_get_size = function () { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'size'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_get_size, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VTTCue_set_size = function (val) { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'size', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_set_size, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.VTTCue_get_align = function () { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'align'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_get_align, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VTTCue_set_align = function (val) { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'align', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_set_align, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.VTTCue_get_text = function () { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'text'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_get_text, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VTTCue_set_text = function (val) { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'text', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_set_text, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.VTTCue_getCueAsHTML = function () { + let r = cbb_wf.checkIllegal(this, "VTTCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VTTCue_getCueAsHTML, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.UserActivation_get_hasBeenActive = function () { + let r = cbb_wf.checkIllegal(this, "UserActivation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'hasBeenActive'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "UserActivation_get_hasBeenActive, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.UserActivation_get_isActive = function () { + let r = cbb_wf.checkIllegal(this, "UserActivation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'isActive'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "UserActivation_get_isActive, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.URLSearchParams_append = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLSearchParams"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.append.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] URLSearchParams_append 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URLSearchParams_append 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URLSearchParams_append 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLSearchParams_append, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "URLSearchParams"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLSearchParams_append, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.URLSearchParams_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLSearchParams"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.delete.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] URLSearchParams_delete 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URLSearchParams_delete 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URLSearchParams_delete 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLSearchParams_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "URLSearchParams"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLSearchParams_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.URLSearchParams_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLSearchParams"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.get.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] URLSearchParams_get 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URLSearchParams_get 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URLSearchParams_get 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLSearchParams_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "URLSearchParams"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLSearchParams_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.URLSearchParams_getAll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLSearchParams"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getAll.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] URLSearchParams_getAll 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URLSearchParams_getAll 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URLSearchParams_getAll 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLSearchParams_getAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "URLSearchParams"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLSearchParams_getAll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.URLSearchParams_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLSearchParams"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.has.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] URLSearchParams_has 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URLSearchParams_has 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URLSearchParams_has 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLSearchParams_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "URLSearchParams"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLSearchParams_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.URLSearchParams_set = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLSearchParams"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.set.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] URLSearchParams_set 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URLSearchParams_set 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URLSearchParams_set 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLSearchParams_set, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "URLSearchParams"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLSearchParams_set, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.URLSearchParams_sort = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLSearchParams"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.sort.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] URLSearchParams_sort 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URLSearchParams_sort 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URLSearchParams_sort 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLSearchParams_sort, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "URLSearchParams"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLSearchParams_sort, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.URLSearchParams_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLSearchParams"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.toString.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] URLSearchParams_toString 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URLSearchParams_toString 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URLSearchParams_toString 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLSearchParams_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "URLSearchParams"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLSearchParams_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.URLSearchParams_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLSearchParams"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.entries.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] URLSearchParams_entries 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URLSearchParams_entries 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URLSearchParams_entries 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLSearchParams_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "URLSearchParams"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLSearchParams_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.URLSearchParams_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLSearchParams"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.forEach.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] URLSearchParams_forEach 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URLSearchParams_forEach 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URLSearchParams_forEach 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLSearchParams_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "URLSearchParams"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLSearchParams_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.URLSearchParams_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLSearchParams"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.keys.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] URLSearchParams_keys 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URLSearchParams_keys 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URLSearchParams_keys 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLSearchParams_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "URLSearchParams"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLSearchParams_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.URLSearchParams_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLSearchParams"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.values.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] URLSearchParams_values 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URLSearchParams_values 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URLSearchParams_values 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLSearchParams_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.URLPattern_get_protocol = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLPattern"); + let r = cbb_wf.checkIllegal(this, "URLSearchParams"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "protocol"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLPattern_get_protocol, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLSearchParams_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.URLPattern_get_username = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLPattern"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "username"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLPattern_get_username, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.URLPattern_get_password = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLPattern"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "password"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLPattern_get_password, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.URLPattern_get_hostname = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLPattern"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "hostname"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLPattern_get_hostname, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.URLPattern_get_port = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLPattern"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "port"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLPattern_get_port, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.URLPattern_get_pathname = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLPattern"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "pathname"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLPattern_get_pathname, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.URLPattern_get_search = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLPattern"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "search"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLPattern_get_search, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.URLPattern_get_hash = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLPattern"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "hash"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLPattern_get_hash, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.URLPattern_exec = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLPattern"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] URLPattern_exec, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.URLPattern_test = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLPattern"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] URLPattern_test, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.URLPattern_get_hasRegExpGroups = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URLPattern"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "hasRegExpGroups"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URLPattern_get_hasRegExpGroups, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.URL_canParse = function () { -let r = cbb_wf.checkIllegal(this, "URL"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_canParse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.URL_createObjectURL = function () { -let r = cbb_wf.checkIllegal(this, "URL"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_createObjectURL, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.URL_revokeObjectURL = function () { -let r = cbb_wf.checkIllegal(this, "URL"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_revokeObjectURL, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} this.URL_get_origin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "URL"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.origin; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] URL_get_origin 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] URL_get_origin 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URL_get_origin 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + let result = cbb_wf.getValue(this, 'origin'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_get_origin, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_get_origin, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.URL_get_protocol = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "URL"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.protocol; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] URL_get_protocol 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] URL_get_protocol 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URL_get_protocol 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + let result = cbb_wf.getValue(this, 'protocol'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_get_protocol, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_get_protocol, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.URL_set_protocol = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URL"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.protocol = val; - if (cbb_wf.is_log) { - console.log("[*] URL_set_protocol, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.URL_get_username = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "URL"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.username; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] URL_get_username 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URL_get_username 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URL_get_username 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + cbb_wf.setValue(this, 'protocol', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_get_username, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_set_protocol, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.URL_get_username = function () { + let r = cbb_wf.checkIllegal(this, "URL"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'username'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_get_username, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.URL_set_username = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URL"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.username = val; - if (cbb_wf.is_log) { - console.log("[*] URL_set_username, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.URL_get_password = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "URL"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.password; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] URL_get_password 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URL_get_password 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URL_get_password 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + cbb_wf.setValue(this, 'username', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_get_password, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_set_username, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.URL_get_password = function () { + let r = cbb_wf.checkIllegal(this, "URL"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'password'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_get_password, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.URL_set_password = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URL"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.password = val; - if (cbb_wf.is_log) { - console.log("[*] URL_set_password, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.URL_get_host = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "URL"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.host; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] URL_get_host 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URL_get_host 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URL_get_host 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + cbb_wf.setValue(this, 'password', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_get_host, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_set_password, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.URL_get_host = function () { + let r = cbb_wf.checkIllegal(this, "URL"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'host'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_get_host, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.URL_set_host = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URL"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.host = val; - if (cbb_wf.is_log) { - console.log("[*] URL_set_host, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.URL_get_hostname = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "URL"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hostname; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] URL_get_hostname 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URL_get_hostname 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URL_get_hostname 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + cbb_wf.setValue(this, 'host', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_get_hostname, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_set_host, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.URL_get_hostname = function () { + let r = cbb_wf.checkIllegal(this, "URL"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'hostname'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_get_hostname, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.URL_set_hostname = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URL"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.hostname = val; - if (cbb_wf.is_log) { - console.log("[*] URL_set_hostname, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.URL_get_port = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "URL"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.port; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] URL_get_port 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URL_get_port 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URL_get_port 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + cbb_wf.setValue(this, 'hostname', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_get_port, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_set_hostname, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.URL_get_port = function () { + let r = cbb_wf.checkIllegal(this, "URL"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'port'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_get_port, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.URL_set_port = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URL"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.port = val; - if (cbb_wf.is_log) { - console.log("[*] URL_set_port, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.URL_get_pathname = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "URL"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.pathname; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] URL_get_pathname 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URL_get_pathname 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URL_get_pathname 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + cbb_wf.setValue(this, 'port', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_get_pathname, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_set_port, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.URL_get_pathname = function () { + let r = cbb_wf.checkIllegal(this, "URL"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'pathname'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_get_pathname, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.URL_set_pathname = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URL"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.pathname = val; - if (cbb_wf.is_log) { - console.log("[*] URL_set_pathname, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.URL_get_search = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "URL"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.search; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] URL_get_search 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URL_get_search 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URL_get_search 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + cbb_wf.setValue(this, 'pathname', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_get_search, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_set_pathname, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.URL_get_search = function () { + let r = cbb_wf.checkIllegal(this, "URL"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'search'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_get_search, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.URL_set_search = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URL"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.search = val; - if (cbb_wf.is_log) { - console.log("[*] URL_set_search, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.URL_get_searchParams = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "URL"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.searchParams; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] URL_get_searchParams 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URL_get_searchParams 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URL_get_searchParams 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + cbb_wf.setValue(this, 'search', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_get_searchParams, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_set_search, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.URL_get_searchParams = function () { + let r = cbb_wf.checkIllegal(this, "URL"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'searchParams'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_get_searchParams, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.URL_get_hash = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "URL"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hash; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] URL_get_hash 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] URL_get_hash 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URL_get_hash 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + let result = cbb_wf.getValue(this, 'hash'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_get_hash, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_get_hash, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.URL_set_hash = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URL"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.hash = val; - if (cbb_wf.is_log) { - console.log("[*] URL_set_hash, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.URL_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "URL"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.href; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] URL_get_href 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URL_get_href 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URL_get_href 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + cbb_wf.setValue(this, 'hash', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_get_href, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_set_hash, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.URL_get_href = function () { + let r = cbb_wf.checkIllegal(this, "URL"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'href'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_get_href, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.URL_set_href = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URL"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.href = val; - if (cbb_wf.is_log) { - console.log("[*] URL_set_href, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "URL"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'href', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_set_href, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.URL_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URL"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.toJSON.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] URL_toJSON 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URL_toJSON 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URL_toJSON 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "URL"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.URL_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "URL"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.toString.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] URL_toString 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] URL_toString 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] URL_toString 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] URL_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "URL"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URL_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.UIEvent_get_view = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "UIEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "view"); + + let result = cbb_wf.getValue(this, 'view'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] UIEvent_get_view, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "UIEvent_get_view, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.UIEvent_get_detail = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "UIEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "detail"); + + let result = cbb_wf.getValue(this, 'detail'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] UIEvent_get_detail, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "UIEvent_get_detail, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.UIEvent_get_sourceCapabilities = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "UIEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sourceCapabilities"); + + let result = cbb_wf.getValue(this, 'sourceCapabilities'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] UIEvent_get_sourceCapabilities, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "UIEvent_get_sourceCapabilities, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.UIEvent_get_which = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "UIEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "which"); + + let result = cbb_wf.getValue(this, 'which'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] UIEvent_get_which, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "UIEvent_get_which, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.UIEvent_initUIEvent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "UIEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] UIEvent_initUIEvent, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedTypePolicyFactory_get_emptyHTML = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); + let r = cbb_wf.checkIllegal(this, "UIEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "emptyHTML"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TrustedTypePolicyFactory_get_emptyHTML, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "UIEvent_initUIEvent, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.TrustedTypePolicyFactory_get_emptyScript = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "emptyScript"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TrustedTypePolicyFactory_get_emptyScript, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TrustedTypePolicyFactory_get_defaultPolicy = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "defaultPolicy"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TrustedTypePolicyFactory_get_defaultPolicy, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TrustedTypePolicyFactory_createPolicy = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedTypePolicyFactory_createPolicy, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedTypePolicyFactory_getAttributeType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedTypePolicyFactory_getAttributeType, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedTypePolicyFactory_getPropertyType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedTypePolicyFactory_getPropertyType, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedTypePolicyFactory_getTypeMapping = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedTypePolicyFactory_getTypeMapping, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedTypePolicyFactory_isHTML = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedTypePolicyFactory_isHTML, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedTypePolicyFactory_isScript = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedTypePolicyFactory_isScript, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedTypePolicyFactory_isScriptURL = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedTypePolicyFactory_isScriptURL, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedTypePolicy_get_name = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedTypePolicy"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "name"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TrustedTypePolicy_get_name, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TrustedTypePolicy_createHTML = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedTypePolicy"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedTypePolicy_createHTML, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedTypePolicy_createScript = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedTypePolicy"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedTypePolicy_createScript, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedTypePolicy_createScriptURL = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedTypePolicy"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedTypePolicy_createScriptURL, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedScriptURL_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedScriptURL"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedScriptURL_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedScriptURL_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedScriptURL"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedScriptURL_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedScript_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedScript"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedScript_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedScript_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedScript"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedScript_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedHTML_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedHTML"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedHTML_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TrustedHTML_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TrustedHTML"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TrustedHTML_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.TreeWalker_get_root = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TreeWalker"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "root"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.root; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TreeWalker_get_root, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TreeWalker_get_root, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TreeWalker_get_root, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TreeWalker_get_root, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.TreeWalker_get_whatToShow = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TreeWalker"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "whatToShow"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.whatToShow; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TreeWalker_get_whatToShow, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TreeWalker_get_whatToShow, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TreeWalker_get_whatToShow, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TreeWalker_get_whatToShow, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.TreeWalker_get_filter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TreeWalker"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "filter"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.filter; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TreeWalker_get_filter, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TreeWalker_get_filter, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TreeWalker_get_filter, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TreeWalker_get_filter, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.TreeWalker_get_currentNode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TreeWalker"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "currentNode"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.currentNode; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TreeWalker_get_currentNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TreeWalker_get_currentNode, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TreeWalker_get_currentNode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TreeWalker_get_currentNode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.TreeWalker_set_currentNode = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TreeWalker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "currentNode", val); - if (cbb_wf.is_log) { - console.log("[*] TreeWalker_set_currentNode, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "TreeWalker"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] TreeWalker_set_currentNode, set object'); + break + case "function": + cbb_wf.console.log('[*] TreeWalker_set_currentNode, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.currentNode = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TreeWalker_set_currentNode, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.TreeWalker_firstChild = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TreeWalker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TreeWalker_firstChild, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TreeWalker"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.firstChild.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TreeWalker_firstChild, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TreeWalker_firstChild, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TreeWalker_firstChild, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.TreeWalker_lastChild = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TreeWalker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TreeWalker_lastChild, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TreeWalker"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.lastChild.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TreeWalker_lastChild, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TreeWalker_lastChild, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TreeWalker_lastChild, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.TreeWalker_nextNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TreeWalker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TreeWalker_nextNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TreeWalker"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.nextNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TreeWalker_nextNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TreeWalker_nextNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TreeWalker_nextNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.TreeWalker_nextSibling = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TreeWalker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TreeWalker_nextSibling, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TreeWalker"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.nextSibling.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TreeWalker_nextSibling, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TreeWalker_nextSibling, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TreeWalker_nextSibling, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.TreeWalker_parentNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TreeWalker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TreeWalker_parentNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TreeWalker"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.parentNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TreeWalker_parentNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TreeWalker_parentNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TreeWalker_parentNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.TreeWalker_previousNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TreeWalker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TreeWalker_previousNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TreeWalker"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.previousNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TreeWalker_previousNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TreeWalker_previousNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TreeWalker_previousNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.TreeWalker_previousSibling = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TreeWalker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TreeWalker_previousSibling, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TreeWalker"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.previousSibling.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TreeWalker_previousSibling, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TreeWalker_previousSibling, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TreeWalker_previousSibling, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.TransitionEvent_get_propertyName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TransitionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "propertyName"); + + let result = cbb_wf.getValue(this, 'propertyName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TransitionEvent_get_propertyName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TransitionEvent_get_propertyName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TransitionEvent_get_elapsedTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TransitionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "elapsedTime"); + + let result = cbb_wf.getValue(this, 'elapsedTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TransitionEvent_get_elapsedTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TransitionEvent_get_elapsedTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TransitionEvent_get_pseudoElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TransitionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pseudoElement"); + + let result = cbb_wf.getValue(this, 'pseudoElement'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TransitionEvent_get_pseudoElement, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TransitionEvent_get_pseudoElement, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.TransformStreamDefaultController_get_desiredSize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TransformStreamDefaultController"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "desiredSize"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TransformStreamDefaultController_get_desiredSize, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TransformStreamDefaultController_enqueue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TransformStreamDefaultController"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TransformStreamDefaultController_enqueue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TransformStreamDefaultController_error = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TransformStreamDefaultController"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TransformStreamDefaultController_error, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TransformStreamDefaultController_terminate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TransformStreamDefaultController"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TransformStreamDefaultController_terminate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.TransformStream_get_readable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TransformStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "readable"); + + let result = cbb_wf.getValue(this, 'readable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TransformStream_get_readable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TransformStream_get_readable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TransformStream_get_writable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TransformStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "writable"); + + let result = cbb_wf.getValue(this, 'writable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TransformStream_get_writable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TransformStream_get_writable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TrackEvent_get_track = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TrackEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "track"); + + let result = cbb_wf.getValue(this, 'track'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TrackEvent_get_track, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrackEvent_get_track, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TouchList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TouchList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TouchList_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TouchList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TouchList_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TouchList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TouchList_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TouchList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TouchList_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.TouchEvent_get_touches = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TouchEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "touches"); + + let result = cbb_wf.getValue(this, 'touches'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TouchEvent_get_touches, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TouchEvent_get_touches, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TouchEvent_get_targetTouches = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TouchEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "targetTouches"); + + let result = cbb_wf.getValue(this, 'targetTouches'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TouchEvent_get_targetTouches, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TouchEvent_get_targetTouches, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TouchEvent_get_changedTouches = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TouchEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "changedTouches"); + + let result = cbb_wf.getValue(this, 'changedTouches'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TouchEvent_get_changedTouches, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TouchEvent_get_changedTouches, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TouchEvent_get_altKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TouchEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "altKey"); + + let result = cbb_wf.getValue(this, 'altKey'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TouchEvent_get_altKey, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TouchEvent_get_altKey, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TouchEvent_get_metaKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TouchEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "metaKey"); + + let result = cbb_wf.getValue(this, 'metaKey'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TouchEvent_get_metaKey, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TouchEvent_get_metaKey, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TouchEvent_get_ctrlKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TouchEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ctrlKey"); + + let result = cbb_wf.getValue(this, 'ctrlKey'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TouchEvent_get_ctrlKey, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TouchEvent_get_ctrlKey, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TouchEvent_get_shiftKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TouchEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shiftKey"); + + let result = cbb_wf.getValue(this, 'shiftKey'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TouchEvent_get_shiftKey, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TouchEvent_get_shiftKey, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Touch_get_identifier = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Touch"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "identifier"); + + let result = cbb_wf.getValue(this, 'identifier'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Touch_get_identifier, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Touch_get_identifier, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Touch_get_target = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Touch"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "target"); + + let result = cbb_wf.getValue(this, 'target'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Touch_get_target, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Touch_get_target, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Touch_get_screenX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Touch"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "screenX"); + + let result = cbb_wf.getValue(this, 'screenX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Touch_get_screenX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Touch_get_screenX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Touch_get_screenY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Touch"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "screenY"); + + let result = cbb_wf.getValue(this, 'screenY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Touch_get_screenY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Touch_get_screenY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Touch_get_clientX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Touch"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "clientX"); + + let result = cbb_wf.getValue(this, 'clientX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Touch_get_clientX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Touch_get_clientX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Touch_get_clientY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Touch"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "clientY"); + + let result = cbb_wf.getValue(this, 'clientY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Touch_get_clientY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Touch_get_clientY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Touch_get_pageX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Touch"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pageX"); + + let result = cbb_wf.getValue(this, 'pageX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Touch_get_pageX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Touch_get_pageX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Touch_get_pageY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Touch"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pageY"); + + let result = cbb_wf.getValue(this, 'pageY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Touch_get_pageY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Touch_get_pageY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Touch_get_radiusX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Touch"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "radiusX"); + + let result = cbb_wf.getValue(this, 'radiusX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Touch_get_radiusX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Touch_get_radiusX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Touch_get_radiusY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Touch"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "radiusY"); + + let result = cbb_wf.getValue(this, 'radiusY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Touch_get_radiusY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Touch_get_radiusY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Touch_get_rotationAngle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Touch"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rotationAngle"); + + let result = cbb_wf.getValue(this, 'rotationAngle'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Touch_get_rotationAngle, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Touch_get_rotationAngle, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Touch_get_force = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Touch"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "force"); + + let result = cbb_wf.getValue(this, 'force'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Touch_get_force, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Touch_get_force, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.ToggleEvent_get_oldState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ToggleEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oldState"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ToggleEvent_get_oldState, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ToggleEvent_get_newState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ToggleEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "newState"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ToggleEvent_get_newState, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.TimeRanges_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TimeRanges"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TimeRanges_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TimeRanges_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TimeRanges_end = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TimeRanges"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TimeRanges_end, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TimeRanges"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TimeRanges_end, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.TimeRanges_start = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TimeRanges"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TimeRanges_start, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TimeRanges"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TimeRanges_start, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.TextTrackList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrackList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrackList_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrackList_get_onchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrackList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onchange"); + + let result = cbb_wf.getValue(this, 'onchange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrackList_get_onchange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackList_get_onchange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrackList_set_onchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrackList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onchange", val); - if (cbb_wf.is_log) { - console.log("[*] TextTrackList_set_onchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "TextTrackList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackList_set_onchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.TextTrackList_get_onaddtrack = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrackList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onaddtrack"); + + let result = cbb_wf.getValue(this, 'onaddtrack'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrackList_get_onaddtrack, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackList_get_onaddtrack, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrackList_set_onaddtrack = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrackList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onaddtrack", val); - if (cbb_wf.is_log) { - console.log("[*] TextTrackList_set_onaddtrack, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.TextTrackList_get_onremovetrack = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrackList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onremovetrack"); + cbb_wf.setValue(this, 'onaddtrack', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrackList_get_onremovetrack, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackList_set_onaddtrack, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.TextTrackList_get_onremovetrack = function () { + let r = cbb_wf.checkIllegal(this, "TextTrackList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onremovetrack'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackList_get_onremovetrack, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrackList_set_onremovetrack = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrackList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onremovetrack", val); - if (cbb_wf.is_log) { - console.log("[*] TextTrackList_set_onremovetrack, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "TextTrackList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onremovetrack', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackList_set_onremovetrack, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.TextTrackList_getTrackById = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrackList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TextTrackList_getTrackById, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TextTrackList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackList_getTrackById, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.TextTrackCueList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrackCueList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrackCueList_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCueList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrackCueList_getCueById = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrackCueList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TextTrackCueList_getCueById, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TextTrackCueList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCueList_getCueById, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.TextTrackCue_get_track = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrackCue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "track"); + + let result = cbb_wf.getValue(this, 'track'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrackCue_get_track, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCue_get_track, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrackCue_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrackCue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "id"); + + let result = cbb_wf.getValue(this, 'id'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrackCue_get_id, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCue_get_id, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrackCue_set_id = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrackCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "id", val); - if (cbb_wf.is_log) { - console.log("[*] TextTrackCue_set_id, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "TextTrackCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'id', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCue_set_id, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.TextTrackCue_get_startTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrackCue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "startTime"); + + let result = cbb_wf.getValue(this, 'startTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrackCue_get_startTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCue_get_startTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrackCue_set_startTime = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrackCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "startTime", val); - if (cbb_wf.is_log) { - console.log("[*] TextTrackCue_set_startTime, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "TextTrackCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'startTime', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCue_set_startTime, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.TextTrackCue_get_endTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrackCue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "endTime"); + + let result = cbb_wf.getValue(this, 'endTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrackCue_get_endTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCue_get_endTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrackCue_set_endTime = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrackCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "endTime", val); - if (cbb_wf.is_log) { - console.log("[*] TextTrackCue_set_endTime, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "TextTrackCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'endTime', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCue_set_endTime, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.TextTrackCue_get_pauseOnExit = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrackCue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pauseOnExit"); + + let result = cbb_wf.getValue(this, 'pauseOnExit'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrackCue_get_pauseOnExit, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCue_get_pauseOnExit, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrackCue_set_pauseOnExit = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrackCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "pauseOnExit", val); - if (cbb_wf.is_log) { - console.log("[*] TextTrackCue_set_pauseOnExit, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "TextTrackCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'pauseOnExit', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCue_set_pauseOnExit, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.TextTrackCue_get_onenter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrackCue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onenter"); + + let result = cbb_wf.getValue(this, 'onenter'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrackCue_get_onenter, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCue_get_onenter, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrackCue_set_onenter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrackCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onenter", val); - if (cbb_wf.is_log) { - console.log("[*] TextTrackCue_set_onenter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.TextTrackCue_get_onexit = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrackCue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onexit"); + cbb_wf.setValue(this, 'onenter', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrackCue_get_onexit, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCue_set_onenter, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.TextTrackCue_get_onexit = function () { + let r = cbb_wf.checkIllegal(this, "TextTrackCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onexit'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCue_get_onexit, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrackCue_set_onexit = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrackCue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onexit", val); - if (cbb_wf.is_log) { - console.log("[*] TextTrackCue_set_onexit, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "TextTrackCue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onexit', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrackCue_set_onexit, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.TextTrack_get_kind = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrack"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "kind"); + + let result = cbb_wf.getValue(this, 'kind'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrack_get_kind, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrack_get_kind, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrack_get_label = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrack"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "label"); + + let result = cbb_wf.getValue(this, 'label'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrack_get_label, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrack_get_label, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrack_get_language = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrack"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "language"); + + let result = cbb_wf.getValue(this, 'language'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrack_get_language, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrack_get_language, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrack_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrack"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "id"); + + let result = cbb_wf.getValue(this, 'id'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrack_get_id, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrack_get_id, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrack_get_mode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrack"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mode"); + + let result = cbb_wf.getValue(this, 'mode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrack_get_mode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrack_get_mode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrack_set_mode = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "mode", val); - if (cbb_wf.is_log) { - console.log("[*] TextTrack_set_mode, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "TextTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'mode', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrack_set_mode, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.TextTrack_get_cues = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrack"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cues"); + + let result = cbb_wf.getValue(this, 'cues'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrack_get_cues, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrack_get_cues, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrack_get_activeCues = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrack"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "activeCues"); + + let result = cbb_wf.getValue(this, 'activeCues'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrack_get_activeCues, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrack_get_activeCues, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextTrack_get_oncuechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextTrack"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oncuechange"); + + let result = cbb_wf.getValue(this, 'oncuechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextTrack_get_oncuechange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrack_get_oncuechange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TextTrack_set_oncuechange = function (val) { + let r = cbb_wf.checkIllegal(this, "TextTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'oncuechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrack_set_oncuechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.TextTrack_addCue = function () { + let r = cbb_wf.checkIllegal(this, "TextTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrack_addCue, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.TextTrack_removeCue = function () { + let r = cbb_wf.checkIllegal(this, "TextTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextTrack_removeCue, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.TextTrack_set_oncuechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncuechange", val); - if (cbb_wf.is_log) { - console.log("[*] TextTrack_set_oncuechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.TextTrack_addCue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TextTrack_addCue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TextTrack_removeCue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TextTrack_removeCue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.TextMetrics_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextMetrics"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TextMetrics_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TextMetrics_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextMetrics_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextMetrics_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.TextMetrics_get_actualBoundingBoxLeft = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextMetrics"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "actualBoundingBoxLeft"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.actualBoundingBoxLeft; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TextMetrics_get_actualBoundingBoxLeft, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TextMetrics_get_actualBoundingBoxLeft, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextMetrics_get_actualBoundingBoxLeft, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextMetrics_get_actualBoundingBoxLeft, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.TextMetrics_get_actualBoundingBoxRight = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextMetrics"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "actualBoundingBoxRight"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.actualBoundingBoxRight; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TextMetrics_get_actualBoundingBoxRight, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TextMetrics_get_actualBoundingBoxRight, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextMetrics_get_actualBoundingBoxRight, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextMetrics_get_actualBoundingBoxRight, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.TextMetrics_get_fontBoundingBoxAscent = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextMetrics"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fontBoundingBoxAscent"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fontBoundingBoxAscent; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TextMetrics_get_fontBoundingBoxAscent, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TextMetrics_get_fontBoundingBoxAscent, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextMetrics_get_fontBoundingBoxAscent, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextMetrics_get_fontBoundingBoxAscent, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.TextMetrics_get_fontBoundingBoxDescent = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextMetrics"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fontBoundingBoxDescent"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fontBoundingBoxDescent; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TextMetrics_get_fontBoundingBoxDescent, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TextMetrics_get_fontBoundingBoxDescent, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextMetrics_get_fontBoundingBoxDescent, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextMetrics_get_fontBoundingBoxDescent, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.TextMetrics_get_actualBoundingBoxAscent = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextMetrics"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "actualBoundingBoxAscent"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.actualBoundingBoxAscent; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TextMetrics_get_actualBoundingBoxAscent, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TextMetrics_get_actualBoundingBoxAscent, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextMetrics_get_actualBoundingBoxAscent, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextMetrics_get_actualBoundingBoxAscent, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.TextMetrics_get_actualBoundingBoxDescent = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextMetrics"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "actualBoundingBoxDescent"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.actualBoundingBoxDescent; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] TextMetrics_get_actualBoundingBoxDescent, 返回object'); + break + case "function": + cbb_wf.console.log('[*] TextMetrics_get_actualBoundingBoxDescent, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextMetrics_get_actualBoundingBoxDescent, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextMetrics_get_actualBoundingBoxDescent, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - -this.TextMetrics_get_hangingBaseline = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextMetrics"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "hangingBaseline"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextMetrics_get_hangingBaseline, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TextMetrics_get_alphabeticBaseline = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextMetrics"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "alphabeticBaseline"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextMetrics_get_alphabeticBaseline, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TextMetrics_get_ideographicBaseline = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextMetrics"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ideographicBaseline"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextMetrics_get_ideographicBaseline, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.TextEvent_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "data"); + + let result = cbb_wf.getValue(this, 'data'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextEvent_get_data, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextEvent_get_data, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextEvent_initTextEvent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TextEvent_initTextEvent, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TextEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextEvent_initTextEvent, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.TextEncoderStream_get_encoding = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextEncoderStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "encoding"); + + let result = cbb_wf.getValue(this, 'encoding'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextEncoderStream_get_encoding, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextEncoderStream_get_encoding, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextEncoderStream_get_readable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextEncoderStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "readable"); + + let result = cbb_wf.getValue(this, 'readable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextEncoderStream_get_readable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextEncoderStream_get_readable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextEncoderStream_get_writable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextEncoderStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "writable"); + + let result = cbb_wf.getValue(this, 'writable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextEncoderStream_get_writable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextEncoderStream_get_writable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextEncoder_get_encoding = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextEncoder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "encoding"); + + let result = cbb_wf.getValue(this, 'encoding'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextEncoder_get_encoding, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextEncoder_get_encoding, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextEncoder_encode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TextEncoder_encode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TextEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextEncoder_encode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.TextEncoder_encodeInto = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TextEncoder_encodeInto, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TextEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextEncoder_encodeInto, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.TextDecoderStream_get_encoding = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextDecoderStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "encoding"); + + let result = cbb_wf.getValue(this, 'encoding'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextDecoderStream_get_encoding, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextDecoderStream_get_encoding, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextDecoderStream_get_fatal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextDecoderStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fatal"); + + let result = cbb_wf.getValue(this, 'fatal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextDecoderStream_get_fatal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextDecoderStream_get_fatal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextDecoderStream_get_ignoreBOM = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextDecoderStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ignoreBOM"); + + let result = cbb_wf.getValue(this, 'ignoreBOM'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextDecoderStream_get_ignoreBOM, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextDecoderStream_get_ignoreBOM, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextDecoderStream_get_readable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextDecoderStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "readable"); + + let result = cbb_wf.getValue(this, 'readable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextDecoderStream_get_readable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextDecoderStream_get_readable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextDecoderStream_get_writable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextDecoderStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "writable"); + + let result = cbb_wf.getValue(this, 'writable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextDecoderStream_get_writable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextDecoderStream_get_writable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextDecoder_get_encoding = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextDecoder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "encoding"); + + let result = cbb_wf.getValue(this, 'encoding'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextDecoder_get_encoding, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextDecoder_get_encoding, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextDecoder_get_fatal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextDecoder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fatal"); + + let result = cbb_wf.getValue(this, 'fatal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextDecoder_get_fatal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextDecoder_get_fatal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TextDecoder_get_ignoreBOM = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TextDecoder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ignoreBOM"); + + let result = cbb_wf.getValue(this, 'ignoreBOM'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextDecoder_get_ignoreBOM, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextDecoder_get_ignoreBOM, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TextDecoder_decode = function () { + let r = cbb_wf.checkIllegal(this, "TextDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TextDecoder_decode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.TextDecoder_decode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TextDecoder_decode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.Text_get_wholeText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Text"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.wholeText; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Text_get_wholeText 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Text_get_wholeText, 返回object'); break - case "function": - console.log("[*] Text_get_wholeText 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Text_get_wholeText, 返回function'); break default: - // string number - console.log("[*] Text_get_wholeText 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Text_get_wholeText, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Text_get_wholeText, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Text_get_assignedSlot = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Text"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.assignedSlot; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Text_get_assignedSlot 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Text_get_assignedSlot, 返回object'); break - case "function": - console.log("[*] Text_get_assignedSlot 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Text_get_assignedSlot, 返回function'); break default: - // string number - console.log("[*] Text_get_assignedSlot 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Text_get_assignedSlot, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Text_get_assignedSlot, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Text_splitText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Text"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.splitText.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Text_splitText 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Text_splitText 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Text_splitText 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Text_splitText, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.TaskSignal_any = function () { -let r = cbb_wf.checkIllegal(this, "TaskSignal"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TaskSignal_any, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.TaskSignal_get_priority = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TaskSignal"); + let r = cbb_wf.checkIllegal(this, "Text"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "priority"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.splitText.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Text_splitText, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Text_splitText, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TaskSignal_get_priority, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Text_splitText, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.TaskSignal_get_onprioritychange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TaskSignal"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onprioritychange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TaskSignal_get_onprioritychange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TaskSignal_set_onprioritychange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TaskSignal"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onprioritychange", val); - if (cbb_wf.is_log) { - console.log("[*] TaskSignal_set_onprioritychange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.TaskPriorityChangeEvent_get_previousPriority = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TaskPriorityChangeEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "previousPriority"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TaskPriorityChangeEvent_get_previousPriority, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TaskController_setPriority = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TaskController"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TaskController_setPriority, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.TaskAttributionTiming_get_containerType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TaskAttributionTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "containerType"); + + let result = cbb_wf.getValue(this, 'containerType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TaskAttributionTiming_get_containerType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TaskAttributionTiming_get_containerType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TaskAttributionTiming_get_containerSrc = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TaskAttributionTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "containerSrc"); + + let result = cbb_wf.getValue(this, 'containerSrc'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TaskAttributionTiming_get_containerSrc, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TaskAttributionTiming_get_containerSrc, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TaskAttributionTiming_get_containerId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TaskAttributionTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "containerId"); + + let result = cbb_wf.getValue(this, 'containerId'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TaskAttributionTiming_get_containerId, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TaskAttributionTiming_get_containerId, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TaskAttributionTiming_get_containerName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "TaskAttributionTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "containerName"); + + let result = cbb_wf.getValue(this, 'containerName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TaskAttributionTiming_get_containerName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TaskAttributionTiming_get_containerName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.TaskAttributionTiming_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TaskAttributionTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TaskAttributionTiming_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "TaskAttributionTiming"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TaskAttributionTiming_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SyncManager_getTags = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SyncManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SyncManager_getTags, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SyncManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SyncManager_getTags, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SyncManager_register = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SyncManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SyncManager_register, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SyncManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SyncManager_register, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SubmitEvent_get_submitter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SubmitEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "submitter"); + + let result = cbb_wf.getValue(this, 'submitter'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SubmitEvent_get_submitter, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SubmitEvent_get_submitter, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.StyleSheetList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StyleSheetList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.length; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] StyleSheetList_get_length 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] StyleSheetList_get_length, 返回object'); break - case "function": - console.log("[*] StyleSheetList_get_length 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] StyleSheetList_get_length, 返回function'); break default: - // string number - console.log("[*] StyleSheetList_get_length 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StyleSheetList_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StyleSheetList_get_length, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.StyleSheetList_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StyleSheetList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.item.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] StyleSheetList_item 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] StyleSheetList_item 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] StyleSheetList_item 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StyleSheetList_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "StyleSheetList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.item.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] StyleSheetList_item, 返回object'); + break + case "function": + cbb_wf.console.log('[*] StyleSheetList_item, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StyleSheetList_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.StyleSheet_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StyleSheet"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] StyleSheet_get_type, 返回object'); + break + case "function": + cbb_wf.console.log('[*] StyleSheet_get_type, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StyleSheet_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StyleSheet_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.StyleSheet_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StyleSheet"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "href"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] StyleSheet_get_href, 返回object'); + break + case "function": + cbb_wf.console.log('[*] StyleSheet_get_href, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StyleSheet_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StyleSheet_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.StyleSheet_get_ownerNode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StyleSheet"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ownerNode"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ownerNode; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] StyleSheet_get_ownerNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] StyleSheet_get_ownerNode, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StyleSheet_get_ownerNode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StyleSheet_get_ownerNode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.StyleSheet_get_parentStyleSheet = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StyleSheet"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "parentStyleSheet"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.parentStyleSheet; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] StyleSheet_get_parentStyleSheet, 返回object'); + break + case "function": + cbb_wf.console.log('[*] StyleSheet_get_parentStyleSheet, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StyleSheet_get_parentStyleSheet, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StyleSheet_get_parentStyleSheet, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.StyleSheet_get_title = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StyleSheet"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "title"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.title; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] StyleSheet_get_title, 返回object'); + break + case "function": + cbb_wf.console.log('[*] StyleSheet_get_title, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StyleSheet_get_title, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StyleSheet_get_title, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.StyleSheet_get_media = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StyleSheet"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "media"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.media; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] StyleSheet_get_media, 返回object'); + break + case "function": + cbb_wf.console.log('[*] StyleSheet_get_media, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StyleSheet_get_media, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StyleSheet_get_media, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.StyleSheet_set_media = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StyleSheet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "media", val); - if (cbb_wf.is_log) { - console.log("[*] StyleSheet_set_media, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.StyleSheet_get_disabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StyleSheet"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "disabled"); + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] StyleSheet_set_media, set object'); + break + case "function": + cbb_wf.console.log('[*] StyleSheet_set_media, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.media = val; + } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StyleSheet_get_disabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StyleSheet_set_media, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.StyleSheet_get_disabled = function () { + let r = cbb_wf.checkIllegal(this, "StyleSheet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.disabled; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] StyleSheet_get_disabled, 返回object'); + break + case "function": + cbb_wf.console.log('[*] StyleSheet_get_disabled, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StyleSheet_get_disabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.StyleSheet_set_disabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StyleSheet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "disabled", val); - if (cbb_wf.is_log) { - console.log("[*] StyleSheet_set_disabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "StyleSheet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] StyleSheet_set_disabled, set object'); + break + case "function": + cbb_wf.console.log('[*] StyleSheet_set_disabled, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.disabled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StyleSheet_set_disabled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.StylePropertyMapReadOnly_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + + let result = cbb_wf.getValue(this, 'size'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StylePropertyMapReadOnly_get_size, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StylePropertyMapReadOnly_get_size, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.StylePropertyMapReadOnly_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StylePropertyMapReadOnly_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StylePropertyMapReadOnly_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StylePropertyMapReadOnly_getAll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StylePropertyMapReadOnly_getAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StylePropertyMapReadOnly_getAll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StylePropertyMapReadOnly_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StylePropertyMapReadOnly_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StylePropertyMapReadOnly_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StylePropertyMapReadOnly_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StylePropertyMapReadOnly_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StylePropertyMapReadOnly_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StylePropertyMapReadOnly_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StylePropertyMapReadOnly_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StylePropertyMapReadOnly_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StylePropertyMapReadOnly_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StylePropertyMapReadOnly_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StylePropertyMapReadOnly_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StylePropertyMapReadOnly_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StylePropertyMapReadOnly_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StylePropertyMapReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StylePropertyMapReadOnly_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StylePropertyMap_append = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StylePropertyMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StylePropertyMap_append, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StylePropertyMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StylePropertyMap_append, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StylePropertyMap_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StylePropertyMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StylePropertyMap_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StylePropertyMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StylePropertyMap_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StylePropertyMap_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StylePropertyMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StylePropertyMap_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StylePropertyMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StylePropertyMap_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StylePropertyMap_set = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StylePropertyMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StylePropertyMap_set, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StylePropertyMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StylePropertyMap_set, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StorageEvent_get_key = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StorageEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "key"); + + let result = cbb_wf.getValue(this, 'key'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StorageEvent_get_key, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StorageEvent_get_key, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.StorageEvent_get_oldValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StorageEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oldValue"); + + let result = cbb_wf.getValue(this, 'oldValue'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StorageEvent_get_oldValue, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StorageEvent_get_oldValue, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.StorageEvent_get_newValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StorageEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "newValue"); + + let result = cbb_wf.getValue(this, 'newValue'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StorageEvent_get_newValue, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StorageEvent_get_newValue, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.StorageEvent_get_url = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StorageEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "url"); + + let result = cbb_wf.getValue(this, 'url'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StorageEvent_get_url, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StorageEvent_get_url, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.StorageEvent_get_storageArea = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StorageEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "storageArea"); + + let result = cbb_wf.getValue(this, 'storageArea'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StorageEvent_get_storageArea, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StorageEvent_get_storageArea, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.StorageEvent_initStorageEvent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StorageEvent_initStorageEvent, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StorageEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StorageEvent_initStorageEvent, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Storage_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Storage"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Storage_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Storage_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Storage_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Storage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Storage_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Storage"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Storage_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Storage_getItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Storage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Storage_getItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Storage"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Storage_getItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Storage_key = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Storage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Storage_key, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Storage"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Storage_key, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Storage_removeItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Storage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Storage_removeItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Storage"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Storage_removeItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Storage_setItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Storage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Storage_setItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Storage"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Storage_setItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StereoPannerNode_get_pan = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "StereoPannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pan"); + + let result = cbb_wf.getValue(this, 'pan'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StereoPannerNode_get_pan, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StereoPannerNode_get_pan, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } -this.SourceBufferList_get_length = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBufferList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "length"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SourceBufferList_get_length, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SourceBufferList_get_onaddsourcebuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBufferList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onaddsourcebuffer"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SourceBufferList_get_onaddsourcebuffer, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SourceBufferList_set_onaddsourcebuffer = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBufferList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onaddsourcebuffer", val); - if (cbb_wf.is_log) { - console.log("[*] SourceBufferList_set_onaddsourcebuffer, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SourceBufferList_get_onremovesourcebuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBufferList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onremovesourcebuffer"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SourceBufferList_get_onremovesourcebuffer, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SourceBufferList_set_onremovesourcebuffer = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBufferList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onremovesourcebuffer", val); - if (cbb_wf.is_log) { - console.log("[*] SourceBufferList_set_onremovesourcebuffer, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SourceBuffer_get_mode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "mode"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SourceBuffer_get_mode, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SourceBuffer_set_mode = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "mode", val); - if (cbb_wf.is_log) { - console.log("[*] SourceBuffer_set_mode, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SourceBuffer_get_updating = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "updating"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SourceBuffer_get_updating, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SourceBuffer_get_buffered = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "buffered"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SourceBuffer_get_buffered, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SourceBuffer_get_timestampOffset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "timestampOffset"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SourceBuffer_get_timestampOffset, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SourceBuffer_set_timestampOffset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "timestampOffset", val); - if (cbb_wf.is_log) { - console.log("[*] SourceBuffer_set_timestampOffset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SourceBuffer_get_appendWindowStart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "appendWindowStart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SourceBuffer_get_appendWindowStart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SourceBuffer_set_appendWindowStart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "appendWindowStart", val); - if (cbb_wf.is_log) { - console.log("[*] SourceBuffer_set_appendWindowStart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SourceBuffer_get_appendWindowEnd = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "appendWindowEnd"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SourceBuffer_get_appendWindowEnd, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SourceBuffer_set_appendWindowEnd = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "appendWindowEnd", val); - if (cbb_wf.is_log) { - console.log("[*] SourceBuffer_set_appendWindowEnd, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SourceBuffer_get_onupdatestart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onupdatestart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SourceBuffer_get_onupdatestart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SourceBuffer_set_onupdatestart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onupdatestart", val); - if (cbb_wf.is_log) { - console.log("[*] SourceBuffer_set_onupdatestart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SourceBuffer_get_onupdate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onupdate"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SourceBuffer_get_onupdate, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SourceBuffer_set_onupdate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onupdate", val); - if (cbb_wf.is_log) { - console.log("[*] SourceBuffer_set_onupdate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SourceBuffer_get_onupdateend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onupdateend"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SourceBuffer_get_onupdateend, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SourceBuffer_set_onupdateend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onupdateend", val); - if (cbb_wf.is_log) { - console.log("[*] SourceBuffer_set_onupdateend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SourceBuffer_get_onerror = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onerror"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SourceBuffer_get_onerror, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SourceBuffer_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] SourceBuffer_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SourceBuffer_get_onabort = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onabort"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SourceBuffer_get_onabort, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SourceBuffer_set_onabort = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onabort", val); - if (cbb_wf.is_log) { - console.log("[*] SourceBuffer_set_onabort, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SourceBuffer_abort = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SourceBuffer_abort, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SourceBuffer_appendBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SourceBuffer_appendBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SourceBuffer_changeType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SourceBuffer_changeType, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SourceBuffer_remove = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SourceBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SourceBuffer_remove, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.ShadowRoot_get_mode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ShadowRoot"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mode"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.mode; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_get_mode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_get_mode, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ShadowRoot_get_mode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_get_mode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ShadowRoot_get_host = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ShadowRoot"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "host"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.host; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_get_host, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_get_host, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ShadowRoot_get_host, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_get_host, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ShadowRoot_get_onslotchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ShadowRoot"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onslotchange"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onslotchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_get_onslotchange, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_get_onslotchange, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ShadowRoot_get_onslotchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_get_onslotchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.ShadowRoot_set_onslotchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ShadowRoot"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onslotchange", val); - if (cbb_wf.is_log) { - console.log("[*] ShadowRoot_set_onslotchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.ShadowRoot_get_innerHTML = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ShadowRoot"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "innerHTML"); + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_set_onslotchange, set object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_set_onslotchange, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onslotchange = val; + } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ShadowRoot_get_innerHTML, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_set_onslotchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.ShadowRoot_get_innerHTML = function () { + let r = cbb_wf.checkIllegal(this, "ShadowRoot"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.innerHTML; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_get_innerHTML, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_get_innerHTML, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_get_innerHTML, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.ShadowRoot_set_innerHTML = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ShadowRoot"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "innerHTML", val); - if (cbb_wf.is_log) { - console.log("[*] ShadowRoot_set_innerHTML, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.ShadowRoot_get_delegatesFocus = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ShadowRoot"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "delegatesFocus"); + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_set_innerHTML, set object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_set_innerHTML, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.innerHTML = val; + } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ShadowRoot_get_delegatesFocus, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_set_innerHTML, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.ShadowRoot_get_delegatesFocus = function () { + let r = cbb_wf.checkIllegal(this, "ShadowRoot"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.delegatesFocus; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_get_delegatesFocus, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_get_delegatesFocus, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_get_delegatesFocus, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ShadowRoot_get_slotAssignment = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ShadowRoot"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "slotAssignment"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.slotAssignment; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_get_slotAssignment, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_get_slotAssignment, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ShadowRoot_get_slotAssignment, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_get_slotAssignment, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ShadowRoot_get_activeElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ShadowRoot"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "activeElement"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.activeElement; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_get_activeElement, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_get_activeElement, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ShadowRoot_get_activeElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_get_activeElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ShadowRoot_get_styleSheets = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ShadowRoot"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "styleSheets"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.styleSheets; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_get_styleSheets, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_get_styleSheets, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ShadowRoot_get_styleSheets, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_get_styleSheets, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ShadowRoot_get_pointerLockElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ShadowRoot"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pointerLockElement"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.pointerLockElement; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_get_pointerLockElement, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_get_pointerLockElement, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ShadowRoot_get_pointerLockElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_get_pointerLockElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ShadowRoot_get_fullscreenElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ShadowRoot"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fullscreenElement"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fullscreenElement; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_get_fullscreenElement, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_get_fullscreenElement, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ShadowRoot_get_fullscreenElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_get_fullscreenElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.ShadowRoot_set_fullscreenElement = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ShadowRoot"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "fullscreenElement", val); - if (cbb_wf.is_log) { - console.log("[*] ShadowRoot_set_fullscreenElement, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ShadowRoot"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_set_fullscreenElement, set object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_set_fullscreenElement, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.fullscreenElement = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_set_fullscreenElement, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.ShadowRoot_get_adoptedStyleSheets = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ShadowRoot"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "adoptedStyleSheets"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.adoptedStyleSheets; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_get_adoptedStyleSheets, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_get_adoptedStyleSheets, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ShadowRoot_get_adoptedStyleSheets, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_get_adoptedStyleSheets, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.ShadowRoot_set_adoptedStyleSheets = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ShadowRoot"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "adoptedStyleSheets", val); - if (cbb_wf.is_log) { - console.log("[*] ShadowRoot_set_adoptedStyleSheets, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.ShadowRoot_get_pictureInPictureElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ShadowRoot"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pictureInPictureElement"); + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_set_adoptedStyleSheets, set object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_set_adoptedStyleSheets, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.adoptedStyleSheets = val; + } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ShadowRoot_get_pictureInPictureElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_set_adoptedStyleSheets, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.ShadowRoot_elementFromPoint = function () { + let r = cbb_wf.checkIllegal(this, "ShadowRoot"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.elementFromPoint.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_elementFromPoint, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_elementFromPoint, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_elementFromPoint, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.ShadowRoot_elementFromPoint = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ShadowRoot"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ShadowRoot_elementFromPoint, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.ShadowRoot_elementsFromPoint = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ShadowRoot"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ShadowRoot_elementsFromPoint, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ShadowRoot_getAnimations = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ShadowRoot"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ShadowRoot_getAnimations, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ShadowRoot_getSelection = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ShadowRoot"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ShadowRoot_getSelection, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ShadowRoot_get_clonable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ShadowRoot"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "clonable"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.elementsFromPoint.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_elementsFromPoint, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_elementsFromPoint, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ShadowRoot_get_clonable, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_elementsFromPoint, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } this.ShadowRoot_getInnerHTML = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ShadowRoot"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ShadowRoot_getInnerHTML, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ShadowRoot"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.ShadowRoot_setHTMLUnsafe = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ShadowRoot"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ShadowRoot_setHTMLUnsafe, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getInnerHTML.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_getInnerHTML, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_getInnerHTML, 返回function'); + break + default: + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_getInnerHTML, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.ShadowRoot_getSelection = function () { + let r = cbb_wf.checkIllegal(this, "ShadowRoot"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getSelection.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_getSelection, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_getSelection, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_getSelection, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.ShadowRoot_get_pictureInPictureElement = function () { + let r = cbb_wf.checkIllegal(this, "ShadowRoot"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.pictureInPictureElement; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_get_pictureInPictureElement, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_get_pictureInPictureElement, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_get_pictureInPictureElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} + +this.ShadowRoot_getAnimations = function () { + let r = cbb_wf.checkIllegal(this, "ShadowRoot"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getAnimations.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ShadowRoot_getAnimations, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ShadowRoot_getAnimations, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ShadowRoot_getAnimations, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_get_anchorNode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Selection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "anchorNode"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.anchorNode; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_get_anchorNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_get_anchorNode, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Selection_get_anchorNode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_get_anchorNode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Selection_get_anchorOffset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Selection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "anchorOffset"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.anchorOffset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_get_anchorOffset, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_get_anchorOffset, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Selection_get_anchorOffset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_get_anchorOffset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Selection_get_focusNode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Selection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "focusNode"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.focusNode; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_get_focusNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_get_focusNode, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Selection_get_focusNode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_get_focusNode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Selection_get_focusOffset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Selection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "focusOffset"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.focusOffset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_get_focusOffset, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_get_focusOffset, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Selection_get_focusOffset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_get_focusOffset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Selection_get_isCollapsed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Selection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "isCollapsed"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.isCollapsed; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_get_isCollapsed, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_get_isCollapsed, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Selection_get_isCollapsed, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_get_isCollapsed, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Selection_get_rangeCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Selection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rangeCount"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rangeCount; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_get_rangeCount, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_get_rangeCount, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Selection_get_rangeCount, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_get_rangeCount, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Selection_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Selection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_get_type, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_get_type, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Selection_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Selection_get_baseNode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Selection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseNode"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.baseNode; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_get_baseNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_get_baseNode, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Selection_get_baseNode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_get_baseNode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Selection_get_baseOffset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Selection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseOffset"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.baseOffset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_get_baseOffset, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_get_baseOffset, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Selection_get_baseOffset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_get_baseOffset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Selection_get_extentNode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Selection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "extentNode"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.extentNode; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_get_extentNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_get_extentNode, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Selection_get_extentNode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_get_extentNode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Selection_get_extentOffset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Selection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "extentOffset"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.extentOffset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_get_extentOffset, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_get_extentOffset, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Selection_get_extentOffset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_get_extentOffset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Selection_addRange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_addRange, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.addRange.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_addRange, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_addRange, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_addRange, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_collapse = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_collapse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.collapse.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_collapse, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_collapse, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_collapse, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_collapseToEnd = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_collapseToEnd, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.collapseToEnd.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_collapseToEnd, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_collapseToEnd, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_collapseToEnd, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_collapseToStart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_collapseToStart, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.collapseToStart.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_collapseToStart, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_collapseToStart, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_collapseToStart, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_containsNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_containsNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.containsNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_containsNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_containsNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_containsNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_deleteFromDocument = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_deleteFromDocument, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.deleteFromDocument.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_deleteFromDocument, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_deleteFromDocument, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_deleteFromDocument, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_empty = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_empty, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.empty.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_empty, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_empty, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_empty, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_extend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_extend, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.extend.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_extend, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_extend, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_extend, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_getRangeAt = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_getRangeAt, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getRangeAt.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_getRangeAt, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_getRangeAt, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_getRangeAt, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_modify = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_modify, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.modify.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_modify, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_modify, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_modify, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_removeAllRanges = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_removeAllRanges, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.removeAllRanges.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_removeAllRanges, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_removeAllRanges, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_removeAllRanges, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_removeRange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_removeRange, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.removeRange.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_removeRange, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_removeRange, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_removeRange, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_selectAllChildren = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_selectAllChildren, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.selectAllChildren.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_selectAllChildren, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_selectAllChildren, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_selectAllChildren, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_setBaseAndExtent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_setBaseAndExtent, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setBaseAndExtent.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_setBaseAndExtent, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_setBaseAndExtent, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_setBaseAndExtent, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_setPosition = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_setPosition, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setPosition.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_setPosition, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_setPosition, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_setPosition, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Selection_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Selection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Selection_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Selection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.toString.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Selection_toString, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Selection_toString, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Selection_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SecurityPolicyViolationEvent_get_documentURI = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SecurityPolicyViolationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "documentURI"); + + let result = cbb_wf.getValue(this, 'documentURI'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SecurityPolicyViolationEvent_get_documentURI, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SecurityPolicyViolationEvent_get_documentURI, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SecurityPolicyViolationEvent_get_referrer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SecurityPolicyViolationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "referrer"); + + let result = cbb_wf.getValue(this, 'referrer'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SecurityPolicyViolationEvent_get_referrer, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SecurityPolicyViolationEvent_get_referrer, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SecurityPolicyViolationEvent_get_blockedURI = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SecurityPolicyViolationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "blockedURI"); + + let result = cbb_wf.getValue(this, 'blockedURI'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SecurityPolicyViolationEvent_get_blockedURI, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SecurityPolicyViolationEvent_get_blockedURI, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SecurityPolicyViolationEvent_get_violatedDirective = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SecurityPolicyViolationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "violatedDirective"); + + let result = cbb_wf.getValue(this, 'violatedDirective'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SecurityPolicyViolationEvent_get_violatedDirective, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SecurityPolicyViolationEvent_get_violatedDirective, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SecurityPolicyViolationEvent_get_effectiveDirective = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SecurityPolicyViolationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "effectiveDirective"); + + let result = cbb_wf.getValue(this, 'effectiveDirective'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SecurityPolicyViolationEvent_get_effectiveDirective, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SecurityPolicyViolationEvent_get_effectiveDirective, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SecurityPolicyViolationEvent_get_originalPolicy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SecurityPolicyViolationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "originalPolicy"); + + let result = cbb_wf.getValue(this, 'originalPolicy'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SecurityPolicyViolationEvent_get_originalPolicy, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SecurityPolicyViolationEvent_get_originalPolicy, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SecurityPolicyViolationEvent_get_disposition = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SecurityPolicyViolationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "disposition"); + + let result = cbb_wf.getValue(this, 'disposition'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SecurityPolicyViolationEvent_get_disposition, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SecurityPolicyViolationEvent_get_disposition, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SecurityPolicyViolationEvent_get_sourceFile = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SecurityPolicyViolationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sourceFile"); + + let result = cbb_wf.getValue(this, 'sourceFile'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SecurityPolicyViolationEvent_get_sourceFile, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SecurityPolicyViolationEvent_get_sourceFile, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SecurityPolicyViolationEvent_get_statusCode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SecurityPolicyViolationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "statusCode"); + + let result = cbb_wf.getValue(this, 'statusCode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SecurityPolicyViolationEvent_get_statusCode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SecurityPolicyViolationEvent_get_statusCode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SecurityPolicyViolationEvent_get_lineNumber = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SecurityPolicyViolationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lineNumber"); + + let result = cbb_wf.getValue(this, 'lineNumber'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SecurityPolicyViolationEvent_get_lineNumber, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SecurityPolicyViolationEvent_get_lineNumber, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SecurityPolicyViolationEvent_get_columnNumber = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SecurityPolicyViolationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "columnNumber"); + + let result = cbb_wf.getValue(this, 'columnNumber'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SecurityPolicyViolationEvent_get_columnNumber, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SecurityPolicyViolationEvent_get_columnNumber, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SecurityPolicyViolationEvent_get_sample = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SecurityPolicyViolationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sample"); + + let result = cbb_wf.getValue(this, 'sample'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SecurityPolicyViolationEvent_get_sample, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SecurityPolicyViolationEvent_get_sample, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ScriptProcessorNode_get_onaudioprocess = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ScriptProcessorNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onaudioprocess"); + + let result = cbb_wf.getValue(this, 'onaudioprocess'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScriptProcessorNode_get_onaudioprocess, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScriptProcessorNode_get_onaudioprocess, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ScriptProcessorNode_set_onaudioprocess = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScriptProcessorNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onaudioprocess", val); - if (cbb_wf.is_log) { - console.log("[*] ScriptProcessorNode_set_onaudioprocess, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.ScriptProcessorNode_get_bufferSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ScriptProcessorNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "bufferSize"); + cbb_wf.setValue(this, 'onaudioprocess', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScriptProcessorNode_get_bufferSize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScriptProcessorNode_set_onaudioprocess, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.ScriptProcessorNode_get_bufferSize = function () { + let r = cbb_wf.checkIllegal(this, "ScriptProcessorNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'bufferSize'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScriptProcessorNode_get_bufferSize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ScreenOrientation_get_angle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ScreenOrientation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "angle"); + + let result = cbb_wf.getValue(this, 'angle'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScreenOrientation_get_angle, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenOrientation_get_angle, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ScreenOrientation_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ScreenOrientation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScreenOrientation_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenOrientation_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ScreenOrientation_get_onchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ScreenOrientation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onchange"); + + let result = cbb_wf.getValue(this, 'onchange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScreenOrientation_get_onchange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenOrientation_get_onchange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ScreenOrientation_set_onchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenOrientation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onchange", val); - if (cbb_wf.is_log) { - console.log("[*] ScreenOrientation_set_onchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ScreenOrientation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenOrientation_set_onchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ScreenOrientation_lock = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenOrientation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ScreenOrientation_lock, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ScreenOrientation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenOrientation_lock, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ScreenOrientation_unlock = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenOrientation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ScreenOrientation_unlock, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ScreenOrientation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenOrientation_unlock, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Screen_get_availWidth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Screen"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "availWidth"); + + let result = cbb_wf.getValue(this, 'availWidth'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Screen_get_availWidth, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Screen_get_availWidth, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Screen_get_availHeight = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Screen"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "availHeight"); + + let result = cbb_wf.getValue(this, 'availHeight'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Screen_get_availHeight, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Screen_get_availHeight, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Screen_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Screen"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + + let result = cbb_wf.getValue(this, 'width'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Screen_get_width, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Screen_get_width, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Screen_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Screen"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + + let result = cbb_wf.getValue(this, 'height'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Screen_get_height, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Screen_get_height, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Screen_get_colorDepth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Screen"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "colorDepth"); + + let result = cbb_wf.getValue(this, 'colorDepth'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Screen_get_colorDepth, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Screen_get_colorDepth, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Screen_get_pixelDepth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Screen"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pixelDepth"); + + let result = cbb_wf.getValue(this, 'pixelDepth'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Screen_get_pixelDepth, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Screen_get_pixelDepth, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Screen_get_availLeft = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Screen"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "availLeft"); + + let result = cbb_wf.getValue(this, 'availLeft'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Screen_get_availLeft, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Screen_get_availLeft, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Screen_get_availTop = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Screen"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "availTop"); + + let result = cbb_wf.getValue(this, 'availTop'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Screen_get_availTop, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Screen_get_availTop, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Screen_get_orientation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Screen"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "orientation"); + + let result = cbb_wf.getValue(this, 'orientation'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Screen_get_orientation, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Screen_get_orientation, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Screen_get_onchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Screen"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onchange"); + + let result = cbb_wf.getValue(this, 'onchange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Screen_get_onchange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Screen_get_onchange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Screen_set_onchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Screen"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onchange", val); - if (cbb_wf.is_log) { - console.log("[*] Screen_set_onchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Screen_get_isExtended = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Screen"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "isExtended"); + cbb_wf.setValue(this, 'onchange', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Screen_get_isExtended, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Screen_set_onchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.Screen_get_isExtended = function () { + let r = cbb_wf.checkIllegal(this, "Screen"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'isExtended'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Screen_get_isExtended, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Scheduling_isInputPending = function () { + let r = cbb_wf.checkIllegal(this, "Scheduling"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Scheduling_isInputPending, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.Scheduling_isInputPending = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Scheduling"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Scheduling_isInputPending, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Scheduler_postTask = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Scheduler"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Scheduler_postTask, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.SVGViewElement_get_viewBox = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGViewElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "viewBox"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.viewBox; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGViewElement_get_viewBox, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGViewElement_get_viewBox, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGViewElement_get_viewBox, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGViewElement_get_viewBox, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGViewElement_get_preserveAspectRatio = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGViewElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "preserveAspectRatio"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.preserveAspectRatio; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGViewElement_get_preserveAspectRatio, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGViewElement_get_preserveAspectRatio, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGViewElement_get_preserveAspectRatio, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGViewElement_get_preserveAspectRatio, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGViewElement_get_zoomAndPan = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGViewElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "zoomAndPan"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.zoomAndPan; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGViewElement_get_zoomAndPan, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGViewElement_get_zoomAndPan, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGViewElement_get_zoomAndPan, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGViewElement_get_zoomAndPan, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGViewElement_set_zoomAndPan = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGViewElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "zoomAndPan", val); - if (cbb_wf.is_log) { - console.log("[*] SVGViewElement_set_zoomAndPan, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SVGViewElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGViewElement_set_zoomAndPan, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGViewElement_set_zoomAndPan, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.zoomAndPan = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGViewElement_set_zoomAndPan, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.SVGUseElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGUseElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGUseElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGUseElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGUseElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGUseElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGUseElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGUseElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGUseElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGUseElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGUseElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGUseElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGUseElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGUseElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGUseElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGUseElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGUseElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGUseElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGUseElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGUseElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGUseElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGUseElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGUseElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGUseElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGUseElement_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGUseElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "href"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGUseElement_get_href, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGUseElement_get_href, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGUseElement_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGUseElement_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGTransformList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTransformList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTransformList_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransformList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGTransformList_get_numberOfItems = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTransformList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "numberOfItems"); + + let result = cbb_wf.getValue(this, 'numberOfItems'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTransformList_get_numberOfItems, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransformList_get_numberOfItems, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGTransformList_appendItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransformList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransformList_appendItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTransformList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransformList_appendItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGTransformList_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransformList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransformList_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTransformList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransformList_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGTransformList_consolidate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransformList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransformList_consolidate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTransformList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransformList_consolidate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGTransformList_createSVGTransformFromMatrix = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransformList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransformList_createSVGTransformFromMatrix, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTransformList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransformList_createSVGTransformFromMatrix, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGTransformList_getItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransformList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransformList_getItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTransformList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransformList_getItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGTransformList_initialize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransformList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransformList_initialize, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTransformList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransformList_initialize, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGTransformList_insertItemBefore = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransformList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransformList_insertItemBefore, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTransformList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransformList_insertItemBefore, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGTransformList_removeItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransformList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransformList_removeItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTransformList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransformList_removeItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGTransformList_replaceItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransformList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransformList_replaceItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTransformList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransformList_replaceItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGTransform_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTransform"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTransform_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransform_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGTransform_get_matrix = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTransform"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "matrix"); + + let result = cbb_wf.getValue(this, 'matrix'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTransform_get_matrix, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransform_get_matrix, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGTransform_get_angle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTransform"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "angle"); + + let result = cbb_wf.getValue(this, 'angle'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTransform_get_angle, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransform_get_angle, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SVGTransform_setMatrix = function () { + let r = cbb_wf.checkIllegal(this, "SVGTransform"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransform_setMatrix, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGTransform_setRotate = function () { + let r = cbb_wf.checkIllegal(this, "SVGTransform"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransform_setRotate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGTransform_setScale = function () { + let r = cbb_wf.checkIllegal(this, "SVGTransform"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransform_setScale, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGTransform_setSkewX = function () { + let r = cbb_wf.checkIllegal(this, "SVGTransform"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransform_setSkewX, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGTransform_setSkewY = function () { + let r = cbb_wf.checkIllegal(this, "SVGTransform"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransform_setSkewY, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGTransform_setTranslate = function () { + let r = cbb_wf.checkIllegal(this, "SVGTransform"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTransform_setTranslate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.SVGTransform_setMatrix = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransform"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransform_setMatrix, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGTransform_setRotate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransform"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransform_setRotate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGTransform_setScale = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransform"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransform_setScale, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGTransform_setSkewX = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransform"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransform_setSkewX, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGTransform_setSkewY = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransform"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransform_setSkewY, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGTransform_setTranslate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTransform"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTransform_setTranslate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.SVGTextPositioningElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTextPositioningElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextPositioningElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextPositioningElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTextPositioningElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextPositioningElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGTextPositioningElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTextPositioningElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextPositioningElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextPositioningElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTextPositioningElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextPositioningElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGTextPositioningElement_get_dx = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTextPositioningElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "dx"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.dx; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextPositioningElement_get_dx, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextPositioningElement_get_dx, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTextPositioningElement_get_dx, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextPositioningElement_get_dx, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGTextPositioningElement_get_dy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTextPositioningElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "dy"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.dy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextPositioningElement_get_dy, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextPositioningElement_get_dy, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTextPositioningElement_get_dy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextPositioningElement_get_dy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGTextPositioningElement_get_rotate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTextPositioningElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rotate"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rotate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextPositioningElement_get_rotate, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextPositioningElement_get_rotate, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTextPositioningElement_get_rotate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextPositioningElement_get_rotate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGTextPathElement_get_startOffset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTextPathElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "startOffset"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.startOffset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextPathElement_get_startOffset, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextPathElement_get_startOffset, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTextPathElement_get_startOffset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextPathElement_get_startOffset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGTextPathElement_get_method = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTextPathElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "method"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.method; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextPathElement_get_method, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextPathElement_get_method, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTextPathElement_get_method, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextPathElement_get_method, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGTextPathElement_get_spacing = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTextPathElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "spacing"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.spacing; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextPathElement_get_spacing, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextPathElement_get_spacing, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTextPathElement_get_spacing, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextPathElement_get_spacing, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGTextPathElement_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTextPathElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "href"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextPathElement_get_href, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextPathElement_get_href, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTextPathElement_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextPathElement_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGTextContentElement_get_textLength = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "textLength"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.textLength; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextContentElement_get_textLength, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextContentElement_get_textLength, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTextContentElement_get_textLength, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextContentElement_get_textLength, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGTextContentElement_get_lengthAdjust = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lengthAdjust"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.lengthAdjust; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextContentElement_get_lengthAdjust, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextContentElement_get_lengthAdjust, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGTextContentElement_get_lengthAdjust, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextContentElement_get_lengthAdjust, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGTextContentElement_getCharNumAtPosition = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTextContentElement_getCharNumAtPosition, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getCharNumAtPosition.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextContentElement_getCharNumAtPosition, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextContentElement_getCharNumAtPosition, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextContentElement_getCharNumAtPosition, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGTextContentElement_getComputedTextLength = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTextContentElement_getComputedTextLength, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getComputedTextLength.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextContentElement_getComputedTextLength, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextContentElement_getComputedTextLength, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextContentElement_getComputedTextLength, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGTextContentElement_getEndPositionOfChar = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTextContentElement_getEndPositionOfChar, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getEndPositionOfChar.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextContentElement_getEndPositionOfChar, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextContentElement_getEndPositionOfChar, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextContentElement_getEndPositionOfChar, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGTextContentElement_getExtentOfChar = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTextContentElement_getExtentOfChar, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getExtentOfChar.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextContentElement_getExtentOfChar, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextContentElement_getExtentOfChar, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextContentElement_getExtentOfChar, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGTextContentElement_getNumberOfChars = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTextContentElement_getNumberOfChars, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getNumberOfChars.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextContentElement_getNumberOfChars, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextContentElement_getNumberOfChars, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextContentElement_getNumberOfChars, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGTextContentElement_getRotationOfChar = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTextContentElement_getRotationOfChar, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getRotationOfChar.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextContentElement_getRotationOfChar, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextContentElement_getRotationOfChar, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextContentElement_getRotationOfChar, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGTextContentElement_getStartPositionOfChar = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTextContentElement_getStartPositionOfChar, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getStartPositionOfChar.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextContentElement_getStartPositionOfChar, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextContentElement_getStartPositionOfChar, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextContentElement_getStartPositionOfChar, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGTextContentElement_getSubStringLength = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTextContentElement_getSubStringLength, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getSubStringLength.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextContentElement_getSubStringLength, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextContentElement_getSubStringLength, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextContentElement_getSubStringLength, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGTextContentElement_selectSubString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGTextContentElement_selectSubString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGTextContentElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.selectSubString.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGTextContentElement_selectSubString, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGTextContentElement_selectSubString, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGTextContentElement_selectSubString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSymbolElement_get_viewBox = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGSymbolElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "viewBox"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.viewBox; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSymbolElement_get_viewBox, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSymbolElement_get_viewBox, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSymbolElement_get_viewBox, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSymbolElement_get_viewBox, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGSymbolElement_get_preserveAspectRatio = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGSymbolElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "preserveAspectRatio"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.preserveAspectRatio; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSymbolElement_get_preserveAspectRatio, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSymbolElement_get_preserveAspectRatio, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSymbolElement_get_preserveAspectRatio, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSymbolElement_get_preserveAspectRatio, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGStyleElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGStyleElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGStyleElement_get_type, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGStyleElement_get_type, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStyleElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStyleElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGStyleElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGStyleElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "type", val); - if (cbb_wf.is_log) { - console.log("[*] SVGStyleElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SVGStyleElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGStyleElement_set_type, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGStyleElement_set_type, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStyleElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.SVGStyleElement_get_media = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGStyleElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "media"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.media; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGStyleElement_get_media, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGStyleElement_get_media, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStyleElement_get_media, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStyleElement_get_media, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGStyleElement_set_media = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGStyleElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "media", val); - if (cbb_wf.is_log) { - console.log("[*] SVGStyleElement_set_media, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGStyleElement_get_title = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGStyleElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "title"); + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGStyleElement_set_media, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGStyleElement_set_media, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.media = val; + } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStyleElement_get_title, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStyleElement_set_media, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGStyleElement_get_title = function () { + let r = cbb_wf.checkIllegal(this, "SVGStyleElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.title; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGStyleElement_get_title, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGStyleElement_get_title, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStyleElement_get_title, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGStyleElement_set_title = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGStyleElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "title", val); - if (cbb_wf.is_log) { - console.log("[*] SVGStyleElement_set_title, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGStyleElement_get_sheet = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGStyleElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sheet"); + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGStyleElement_set_title, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGStyleElement_set_title, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.title = val; + } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStyleElement_get_sheet, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStyleElement_set_title, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGStyleElement_get_sheet = function () { + let r = cbb_wf.checkIllegal(this, "SVGStyleElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.sheet; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGStyleElement_get_sheet, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGStyleElement_get_sheet, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStyleElement_get_sheet, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGStyleElement_get_disabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGStyleElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "disabled"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.disabled; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGStyleElement_get_disabled, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGStyleElement_get_disabled, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStyleElement_get_disabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStyleElement_get_disabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGStyleElement_set_disabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGStyleElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "disabled", val); - if (cbb_wf.is_log) { - console.log("[*] SVGStyleElement_set_disabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SVGStyleElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGStyleElement_set_disabled, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGStyleElement_set_disabled, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.disabled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStyleElement_set_disabled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.SVGStringList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGStringList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.length; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGStringList_get_length 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGStringList_get_length, 返回object'); break - case "function": - console.log("[*] SVGStringList_get_length 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGStringList_get_length, 返回function'); break default: - // string number - console.log("[*] SVGStringList_get_length 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStringList_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStringList_get_length, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGStringList_get_numberOfItems = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGStringList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.numberOfItems; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGStringList_get_numberOfItems 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGStringList_get_numberOfItems, 返回object'); break - case "function": - console.log("[*] SVGStringList_get_numberOfItems 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGStringList_get_numberOfItems, 返回function'); break default: - // string number - console.log("[*] SVGStringList_get_numberOfItems 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStringList_get_numberOfItems, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStringList_get_numberOfItems, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGStringList_appendItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGStringList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.appendItem.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGStringList_appendItem 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGStringList_appendItem 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGStringList_appendItem 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStringList_appendItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGStringList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.appendItem.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGStringList_appendItem, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGStringList_appendItem, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStringList_appendItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGStringList_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGStringList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.clear.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGStringList_clear 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGStringList_clear 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGStringList_clear 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStringList_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGStringList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.clear.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGStringList_clear, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGStringList_clear, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStringList_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGStringList_getItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGStringList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getItem.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGStringList_getItem 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGStringList_getItem 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGStringList_getItem 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStringList_getItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGStringList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getItem.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGStringList_getItem, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGStringList_getItem, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStringList_getItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGStringList_initialize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGStringList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.initialize.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGStringList_initialize 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGStringList_initialize 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGStringList_initialize 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStringList_initialize, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGStringList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.initialize.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGStringList_initialize, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGStringList_initialize, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStringList_initialize, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGStringList_insertItemBefore = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGStringList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.insertItemBefore.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGStringList_insertItemBefore 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGStringList_insertItemBefore 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGStringList_insertItemBefore 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStringList_insertItemBefore, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGStringList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.insertItemBefore.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGStringList_insertItemBefore, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGStringList_insertItemBefore, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStringList_insertItemBefore, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGStringList_removeItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGStringList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.removeItem.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGStringList_removeItem 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGStringList_removeItem 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGStringList_removeItem 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStringList_removeItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGStringList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.removeItem.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGStringList_removeItem, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGStringList_removeItem, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStringList_removeItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGStringList_replaceItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGStringList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.replaceItem.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGStringList_replaceItem 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGStringList_replaceItem 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGStringList_replaceItem 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStringList_replaceItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGStringList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.replaceItem.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGStringList_replaceItem, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGStringList_replaceItem, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStringList_replaceItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGStopElement_get_offset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGStopElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "offset"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.offset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGStopElement_get_offset, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGStopElement_get_offset, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGStopElement_get_offset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGStopElement_get_offset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGScriptElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGScriptElement_get_type, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGScriptElement_get_type, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGScriptElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGScriptElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGScriptElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "type", val); - if (cbb_wf.is_log) { - console.log("[*] SVGScriptElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGScriptElement_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "href"); + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGScriptElement_set_type, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGScriptElement_set_type, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGScriptElement_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGScriptElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGScriptElement_get_href = function () { + let r = cbb_wf.checkIllegal(this, "SVGScriptElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGScriptElement_get_href, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGScriptElement_get_href, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGScriptElement_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGSVGElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.x; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGSVGElement_get_x 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGSVGElement_get_x, 返回object'); break - case "function": - console.log("[*] SVGSVGElement_get_x 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGSVGElement_get_x, 返回function'); break default: - // string number - console.log("[*] SVGSVGElement_get_x 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGSVGElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.y; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGSVGElement_get_y 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGSVGElement_get_y, 返回object'); break - case "function": - console.log("[*] SVGSVGElement_get_y 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGSVGElement_get_y, 返回function'); break default: - // string number - console.log("[*] SVGSVGElement_get_y 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGSVGElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGSVGElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGSVGElement_get_width, 返回object'); break - case "function": - console.log("[*] SVGSVGElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGSVGElement_get_width, 返回function'); break default: - // string number - console.log("[*] SVGSVGElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGSVGElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.height; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGSVGElement_get_height 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGSVGElement_get_height, 返回object'); break - case "function": - console.log("[*] SVGSVGElement_get_height 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGSVGElement_get_height, 返回function'); break default: - // string number - console.log("[*] SVGSVGElement_get_height 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGSVGElement_get_currentScale = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.currentScale; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGSVGElement_get_currentScale 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGSVGElement_get_currentScale, 返回object'); break - case "function": - console.log("[*] SVGSVGElement_get_currentScale 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGSVGElement_get_currentScale, 返回function'); break default: - // string number - console.log("[*] SVGSVGElement_get_currentScale 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_get_currentScale, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_get_currentScale, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGSVGElement_set_currentScale = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.currentScale = val; - if (cbb_wf.is_log) { - console.log("[*] SVGSVGElement_set_currentScale, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGSVGElement_get_currentTranslate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_set_currentScale, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_set_currentScale, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.currentScale = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_set_currentScale, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGSVGElement_get_currentTranslate = function () { + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.currentTranslate; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGSVGElement_get_currentTranslate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGSVGElement_get_currentTranslate, 返回object'); break - case "function": - console.log("[*] SVGSVGElement_get_currentTranslate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGSVGElement_get_currentTranslate, 返回function'); break default: - // string number - console.log("[*] SVGSVGElement_get_currentTranslate 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_get_currentTranslate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_get_currentTranslate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGSVGElement_get_viewBox = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.viewBox; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGSVGElement_get_viewBox 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGSVGElement_get_viewBox, 返回object'); break - case "function": - console.log("[*] SVGSVGElement_get_viewBox 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGSVGElement_get_viewBox, 返回function'); break default: - // string number - console.log("[*] SVGSVGElement_get_viewBox 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_get_viewBox, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_get_viewBox, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGSVGElement_get_preserveAspectRatio = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.preserveAspectRatio; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGSVGElement_get_preserveAspectRatio 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGSVGElement_get_preserveAspectRatio, 返回object'); break - case "function": - console.log("[*] SVGSVGElement_get_preserveAspectRatio 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGSVGElement_get_preserveAspectRatio, 返回function'); break default: - // string number - console.log("[*] SVGSVGElement_get_preserveAspectRatio 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_get_preserveAspectRatio, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_get_preserveAspectRatio, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGSVGElement_get_zoomAndPan = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.zoomAndPan; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGSVGElement_get_zoomAndPan 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGSVGElement_get_zoomAndPan, 返回object'); break - case "function": - console.log("[*] SVGSVGElement_get_zoomAndPan 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGSVGElement_get_zoomAndPan, 返回function'); break default: - // string number - console.log("[*] SVGSVGElement_get_zoomAndPan 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_get_zoomAndPan, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_get_zoomAndPan, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGSVGElement_set_zoomAndPan = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.zoomAndPan = val; - if (cbb_wf.is_log) { - console.log("[*] SVGSVGElement_set_zoomAndPan, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_set_zoomAndPan, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_set_zoomAndPan, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.zoomAndPan = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_set_zoomAndPan, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.SVGSVGElement_animationsPaused = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.animationsPaused.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_animationsPaused 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_animationsPaused 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_animationsPaused 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_animationsPaused, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.animationsPaused.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_animationsPaused, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_animationsPaused, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_animationsPaused, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_checkEnclosure = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.checkEnclosure.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_checkEnclosure 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_checkEnclosure 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_checkEnclosure 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_checkEnclosure, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.checkEnclosure.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_checkEnclosure, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_checkEnclosure, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_checkEnclosure, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_checkIntersection = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.checkIntersection.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_checkIntersection 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_checkIntersection 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_checkIntersection 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_checkIntersection, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.checkIntersection.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_checkIntersection, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_checkIntersection, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_checkIntersection, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_createSVGAngle = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createSVGAngle.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_createSVGAngle 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_createSVGAngle 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_createSVGAngle 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_createSVGAngle, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createSVGAngle.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_createSVGAngle, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_createSVGAngle, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_createSVGAngle, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_createSVGLength = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createSVGLength.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_createSVGLength 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_createSVGLength 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_createSVGLength 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_createSVGLength, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createSVGLength.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_createSVGLength, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_createSVGLength, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_createSVGLength, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_createSVGMatrix = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createSVGMatrix.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_createSVGMatrix 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_createSVGMatrix 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_createSVGMatrix 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_createSVGMatrix, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createSVGMatrix.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_createSVGMatrix, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_createSVGMatrix, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_createSVGMatrix, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_createSVGNumber = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createSVGNumber.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_createSVGNumber 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_createSVGNumber 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_createSVGNumber 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_createSVGNumber, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createSVGNumber.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_createSVGNumber, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_createSVGNumber, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_createSVGNumber, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_createSVGPoint = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createSVGPoint.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_createSVGPoint 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_createSVGPoint 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_createSVGPoint 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_createSVGPoint, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createSVGPoint.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_createSVGPoint, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_createSVGPoint, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_createSVGPoint, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_createSVGRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createSVGRect.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_createSVGRect 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_createSVGRect 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_createSVGRect 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_createSVGRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createSVGRect.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_createSVGRect, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_createSVGRect, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_createSVGRect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_createSVGTransform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createSVGTransform.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_createSVGTransform 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_createSVGTransform 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_createSVGTransform 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_createSVGTransform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createSVGTransform.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_createSVGTransform, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_createSVGTransform, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_createSVGTransform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_createSVGTransformFromMatrix = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createSVGTransformFromMatrix.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_createSVGTransformFromMatrix 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_createSVGTransformFromMatrix 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_createSVGTransformFromMatrix 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_createSVGTransformFromMatrix, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createSVGTransformFromMatrix.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_createSVGTransformFromMatrix, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_createSVGTransformFromMatrix, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_createSVGTransformFromMatrix, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_deselectAll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.deselectAll.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_deselectAll 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_deselectAll 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_deselectAll 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_deselectAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.deselectAll.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_deselectAll, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_deselectAll, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_deselectAll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_forceRedraw = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.forceRedraw.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_forceRedraw 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_forceRedraw 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_forceRedraw 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_forceRedraw, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.forceRedraw.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_forceRedraw, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_forceRedraw, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_forceRedraw, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_getCurrentTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getCurrentTime.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_getCurrentTime 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_getCurrentTime 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_getCurrentTime 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_getCurrentTime, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getCurrentTime.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_getCurrentTime, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_getCurrentTime, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_getCurrentTime, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_getElementById = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getElementById.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_getElementById 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_getElementById 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_getElementById 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_getElementById, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getElementById.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_getElementById, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_getElementById, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_getElementById, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_getEnclosureList = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getEnclosureList.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_getEnclosureList 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_getEnclosureList 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_getEnclosureList 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_getEnclosureList, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getEnclosureList.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_getEnclosureList, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_getEnclosureList, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_getEnclosureList, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_getIntersectionList = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getIntersectionList.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_getIntersectionList 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_getIntersectionList 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_getIntersectionList 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_getIntersectionList, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getIntersectionList.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_getIntersectionList, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_getIntersectionList, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_getIntersectionList, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_pauseAnimations = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.pauseAnimations.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_pauseAnimations 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_pauseAnimations 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_pauseAnimations 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_pauseAnimations, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.pauseAnimations.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_pauseAnimations, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_pauseAnimations, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_pauseAnimations, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_setCurrentTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setCurrentTime.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_setCurrentTime 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_setCurrentTime 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_setCurrentTime 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_setCurrentTime, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setCurrentTime.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_setCurrentTime, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_setCurrentTime, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_setCurrentTime, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_suspendRedraw = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.suspendRedraw.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_suspendRedraw 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_suspendRedraw 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_suspendRedraw 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_suspendRedraw, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.suspendRedraw.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_suspendRedraw, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_suspendRedraw, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_suspendRedraw, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_unpauseAnimations = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.unpauseAnimations.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_unpauseAnimations 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_unpauseAnimations 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_unpauseAnimations 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_unpauseAnimations, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.unpauseAnimations.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_unpauseAnimations, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_unpauseAnimations, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_unpauseAnimations, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_unsuspendRedraw = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.unsuspendRedraw.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_unsuspendRedraw 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_unsuspendRedraw 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_unsuspendRedraw 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_unsuspendRedraw, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.unsuspendRedraw.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_unsuspendRedraw, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_unsuspendRedraw, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_unsuspendRedraw, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGSVGElement_unsuspendRedrawAll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.unsuspendRedrawAll.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGSVGElement_unsuspendRedrawAll 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGSVGElement_unsuspendRedrawAll 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGSVGElement_unsuspendRedrawAll 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGSVGElement_unsuspendRedrawAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGSVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.unsuspendRedrawAll.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGSVGElement_unsuspendRedrawAll, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGSVGElement_unsuspendRedrawAll, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGSVGElement_unsuspendRedrawAll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGRectElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGRectElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGRectElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRectElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRectElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGRectElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGRectElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGRectElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRectElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRectElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGRectElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGRectElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGRectElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRectElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRectElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGRectElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGRectElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGRectElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRectElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRectElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGRectElement_get_rx = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rx"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rx; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGRectElement_get_rx, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGRectElement_get_rx, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRectElement_get_rx, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRectElement_get_rx, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGRectElement_get_ry = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ry"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ry; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGRectElement_get_ry, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGRectElement_get_ry, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRectElement_get_ry, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRectElement_get_ry, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGRect_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRect"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRect_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRect_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGRect_set_x = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGRect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "x", val); - if (cbb_wf.is_log) { - console.log("[*] SVGRect_set_x, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SVGRect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'x', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRect_set_x, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SVGRect_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRect"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + + let result = cbb_wf.getValue(this, 'y'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRect_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRect_get_y, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGRect_set_y = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGRect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "y", val); - if (cbb_wf.is_log) { - console.log("[*] SVGRect_set_y, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SVGRect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'y', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRect_set_y, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SVGRect_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRect"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + + let result = cbb_wf.getValue(this, 'width'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRect_get_width, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRect_get_width, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGRect_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGRect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "width", val); - if (cbb_wf.is_log) { - console.log("[*] SVGRect_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGRect_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRect"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + cbb_wf.setValue(this, 'width', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRect_get_height, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRect_set_width, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SVGRect_get_height = function () { + let r = cbb_wf.checkIllegal(this, "SVGRect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'height'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRect_get_height, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGRect_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGRect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "height", val); - if (cbb_wf.is_log) { - console.log("[*] SVGRect_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SVGRect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'height', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRect_set_height, this =>", toString.call(this), ", val => ", '' + val, info); + } +} + this.SVGRadialGradientElement_get_cx = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRadialGradientElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cx"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cx; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGRadialGradientElement_get_cx, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGRadialGradientElement_get_cx, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRadialGradientElement_get_cx, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRadialGradientElement_get_cx, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGRadialGradientElement_get_cy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRadialGradientElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cy"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGRadialGradientElement_get_cy, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGRadialGradientElement_get_cy, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRadialGradientElement_get_cy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRadialGradientElement_get_cy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGRadialGradientElement_get_r = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRadialGradientElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "r"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.r; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGRadialGradientElement_get_r, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGRadialGradientElement_get_r, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRadialGradientElement_get_r, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRadialGradientElement_get_r, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGRadialGradientElement_get_fx = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRadialGradientElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fx"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fx; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGRadialGradientElement_get_fx, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGRadialGradientElement_get_fx, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRadialGradientElement_get_fx, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRadialGradientElement_get_fx, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGRadialGradientElement_get_fy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRadialGradientElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fy"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGRadialGradientElement_get_fy, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGRadialGradientElement_get_fy, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRadialGradientElement_get_fy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRadialGradientElement_get_fy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGRadialGradientElement_get_fr = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGRadialGradientElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fr"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fr; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGRadialGradientElement_get_fr, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGRadialGradientElement_get_fr, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGRadialGradientElement_get_fr, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGRadialGradientElement_get_fr, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGPreserveAspectRatio_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPreserveAspectRatio"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "align"); + + let result = cbb_wf.getValue(this, 'align'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPreserveAspectRatio_get_align, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPreserveAspectRatio_get_align, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGPreserveAspectRatio_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGPreserveAspectRatio"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "align", val); - if (cbb_wf.is_log) { - console.log("[*] SVGPreserveAspectRatio_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGPreserveAspectRatio_get_meetOrSlice = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPreserveAspectRatio"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "meetOrSlice"); + cbb_wf.setValue(this, 'align', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPreserveAspectRatio_get_meetOrSlice, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPreserveAspectRatio_set_align, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SVGPreserveAspectRatio_get_meetOrSlice = function () { + let r = cbb_wf.checkIllegal(this, "SVGPreserveAspectRatio"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'meetOrSlice'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPreserveAspectRatio_get_meetOrSlice, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGPreserveAspectRatio_set_meetOrSlice = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGPreserveAspectRatio"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "meetOrSlice", val); - if (cbb_wf.is_log) { - console.log("[*] SVGPreserveAspectRatio_set_meetOrSlice, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SVGPreserveAspectRatio"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'meetOrSlice', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPreserveAspectRatio_set_meetOrSlice, this =>", toString.call(this), ", val => ", '' + val, info); + } +} + this.SVGPolylineElement_get_points = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPolylineElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "points"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.points; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPolylineElement_get_points, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPolylineElement_get_points, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPolylineElement_get_points, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPolylineElement_get_points, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGPolylineElement_get_animatedPoints = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPolylineElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "animatedPoints"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.animatedPoints; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPolylineElement_get_animatedPoints, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPolylineElement_get_animatedPoints, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPolylineElement_get_animatedPoints, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPolylineElement_get_animatedPoints, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGPolygonElement_get_points = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPolygonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "points"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.points; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPolygonElement_get_points, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPolygonElement_get_points, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPolygonElement_get_points, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPolygonElement_get_points, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGPolygonElement_get_animatedPoints = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPolygonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "animatedPoints"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.animatedPoints; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPolygonElement_get_animatedPoints, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPolygonElement_get_animatedPoints, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPolygonElement_get_animatedPoints, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPolygonElement_get_animatedPoints, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGPointList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPointList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPointList_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPointList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGPointList_get_numberOfItems = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPointList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "numberOfItems"); + + let result = cbb_wf.getValue(this, 'numberOfItems'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPointList_get_numberOfItems, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPointList_get_numberOfItems, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGPointList_appendItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGPointList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGPointList_appendItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGPointList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPointList_appendItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGPointList_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGPointList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGPointList_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGPointList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPointList_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGPointList_getItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGPointList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGPointList_getItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGPointList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPointList_getItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGPointList_initialize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGPointList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGPointList_initialize, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGPointList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPointList_initialize, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGPointList_insertItemBefore = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGPointList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGPointList_insertItemBefore, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGPointList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPointList_insertItemBefore, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGPointList_removeItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGPointList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGPointList_removeItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGPointList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPointList_removeItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGPointList_replaceItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGPointList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGPointList_replaceItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGPointList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPointList_replaceItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGPoint_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPoint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPoint_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPoint_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGPoint_set_x = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGPoint"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "x", val); - if (cbb_wf.is_log) { - console.log("[*] SVGPoint_set_x, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGPoint_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPoint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + cbb_wf.setValue(this, 'x', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPoint_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPoint_set_x, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SVGPoint_get_y = function () { + let r = cbb_wf.checkIllegal(this, "SVGPoint"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'y'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPoint_get_y, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SVGPoint_set_y = function (val) { + let r = cbb_wf.checkIllegal(this, "SVGPoint"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'y', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPoint_set_y, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SVGPoint_matrixTransform = function () { + let r = cbb_wf.checkIllegal(this, "SVGPoint"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPoint_matrixTransform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.SVGPoint_set_y = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGPoint"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "y", val); - if (cbb_wf.is_log) { - console.log("[*] SVGPoint_set_y, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGPoint_matrixTransform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGPoint"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGPoint_matrixTransform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.SVGPatternElement_get_patternUnits = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPatternElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "patternUnits"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.patternUnits; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPatternElement_get_patternUnits, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPatternElement_get_patternUnits, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPatternElement_get_patternUnits, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPatternElement_get_patternUnits, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGPatternElement_get_patternContentUnits = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPatternElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "patternContentUnits"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.patternContentUnits; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPatternElement_get_patternContentUnits, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPatternElement_get_patternContentUnits, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPatternElement_get_patternContentUnits, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPatternElement_get_patternContentUnits, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGPatternElement_get_patternTransform = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPatternElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "patternTransform"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.patternTransform; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPatternElement_get_patternTransform, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPatternElement_get_patternTransform, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPatternElement_get_patternTransform, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPatternElement_get_patternTransform, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGPatternElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPatternElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPatternElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPatternElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPatternElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPatternElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGPatternElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPatternElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPatternElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPatternElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPatternElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPatternElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGPatternElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPatternElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPatternElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPatternElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPatternElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPatternElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGPatternElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPatternElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPatternElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPatternElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPatternElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPatternElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGPatternElement_get_viewBox = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPatternElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "viewBox"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.viewBox; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPatternElement_get_viewBox, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPatternElement_get_viewBox, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPatternElement_get_viewBox, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPatternElement_get_viewBox, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGPatternElement_get_preserveAspectRatio = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPatternElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "preserveAspectRatio"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.preserveAspectRatio; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPatternElement_get_preserveAspectRatio, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPatternElement_get_preserveAspectRatio, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPatternElement_get_preserveAspectRatio, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPatternElement_get_preserveAspectRatio, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGPatternElement_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPatternElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "href"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPatternElement_get_href, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPatternElement_get_href, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPatternElement_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPatternElement_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGPatternElement_get_requiredExtensions = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPatternElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "requiredExtensions"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.requiredExtensions; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPatternElement_get_requiredExtensions, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPatternElement_get_requiredExtensions, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPatternElement_get_requiredExtensions, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPatternElement_get_requiredExtensions, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGPatternElement_get_systemLanguage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGPatternElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "systemLanguage"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.systemLanguage; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGPatternElement_get_systemLanguage, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGPatternElement_get_systemLanguage, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGPatternElement_get_systemLanguage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGPatternElement_get_systemLanguage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGNumberList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGNumberList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGNumberList_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGNumberList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGNumberList_get_numberOfItems = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGNumberList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "numberOfItems"); + + let result = cbb_wf.getValue(this, 'numberOfItems'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGNumberList_get_numberOfItems, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGNumberList_get_numberOfItems, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SVGNumberList_appendItem = function () { + let r = cbb_wf.checkIllegal(this, "SVGNumberList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGNumberList_appendItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGNumberList_clear = function () { + let r = cbb_wf.checkIllegal(this, "SVGNumberList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGNumberList_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGNumberList_getItem = function () { + let r = cbb_wf.checkIllegal(this, "SVGNumberList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGNumberList_getItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGNumberList_initialize = function () { + let r = cbb_wf.checkIllegal(this, "SVGNumberList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGNumberList_initialize, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGNumberList_insertItemBefore = function () { + let r = cbb_wf.checkIllegal(this, "SVGNumberList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGNumberList_insertItemBefore, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGNumberList_removeItem = function () { + let r = cbb_wf.checkIllegal(this, "SVGNumberList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGNumberList_removeItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGNumberList_replaceItem = function () { + let r = cbb_wf.checkIllegal(this, "SVGNumberList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGNumberList_replaceItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.SVGNumberList_appendItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGNumberList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGNumberList_appendItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGNumberList_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGNumberList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGNumberList_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGNumberList_getItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGNumberList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGNumberList_getItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGNumberList_initialize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGNumberList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGNumberList_initialize, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGNumberList_insertItemBefore = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGNumberList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGNumberList_insertItemBefore, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGNumberList_removeItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGNumberList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGNumberList_removeItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGNumberList_replaceItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGNumberList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGNumberList_replaceItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.SVGNumber_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGNumber"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGNumber_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGNumber_get_value, 返回object'); break - case "function": - console.log("[*] SVGNumber_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGNumber_get_value, 返回function'); break default: - // string number - console.log("[*] SVGNumber_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGNumber_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGNumber_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGNumber_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGNumber"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] SVGNumber_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "SVGNumber"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGNumber_set_value, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGNumber_set_value, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGNumber_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.SVGMatrix_get_a = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "a"); + + let result = cbb_wf.getValue(this, 'a'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMatrix_get_a, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_get_a, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGMatrix_set_a = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "a", val); - if (cbb_wf.is_log) { - console.log("[*] SVGMatrix_set_a, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'a', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_set_a, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SVGMatrix_get_b = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "b"); + + let result = cbb_wf.getValue(this, 'b'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMatrix_get_b, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_get_b, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGMatrix_set_b = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "b", val); - if (cbb_wf.is_log) { - console.log("[*] SVGMatrix_set_b, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'b', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_set_b, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SVGMatrix_get_c = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "c"); + + let result = cbb_wf.getValue(this, 'c'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMatrix_get_c, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_get_c, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGMatrix_set_c = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "c", val); - if (cbb_wf.is_log) { - console.log("[*] SVGMatrix_set_c, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'c', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_set_c, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SVGMatrix_get_d = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "d"); + + let result = cbb_wf.getValue(this, 'd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMatrix_get_d, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_get_d, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGMatrix_set_d = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "d", val); - if (cbb_wf.is_log) { - console.log("[*] SVGMatrix_set_d, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'd', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_set_d, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SVGMatrix_get_e = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "e"); + + let result = cbb_wf.getValue(this, 'e'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMatrix_get_e, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_get_e, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGMatrix_set_e = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "e", val); - if (cbb_wf.is_log) { - console.log("[*] SVGMatrix_set_e, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGMatrix_get_f = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "f"); + cbb_wf.setValue(this, 'e', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMatrix_get_f, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_set_e, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SVGMatrix_get_f = function () { + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'f'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_get_f, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SVGMatrix_set_f = function (val) { + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'f', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_set_f, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SVGMatrix_flipX = function () { + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_flipX, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGMatrix_flipY = function () { + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_flipY, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGMatrix_inverse = function () { + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_inverse, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGMatrix_multiply = function () { + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_multiply, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGMatrix_rotate = function () { + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_rotate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGMatrix_rotateFromVector = function () { + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_rotateFromVector, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGMatrix_scale = function () { + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_scale, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGMatrix_scaleNonUniform = function () { + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_scaleNonUniform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGMatrix_skewX = function () { + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_skewX, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGMatrix_skewY = function () { + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_skewY, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGMatrix_translate = function () { + let r = cbb_wf.checkIllegal(this, "SVGMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMatrix_translate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.SVGMatrix_set_f = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "f", val); - if (cbb_wf.is_log) { - console.log("[*] SVGMatrix_set_f, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGMatrix_flipX = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGMatrix_flipX, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGMatrix_flipY = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGMatrix_flipY, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGMatrix_inverse = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGMatrix_inverse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGMatrix_multiply = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGMatrix_multiply, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGMatrix_rotate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGMatrix_rotate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGMatrix_rotateFromVector = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGMatrix_rotateFromVector, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGMatrix_scale = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGMatrix_scale, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGMatrix_scaleNonUniform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGMatrix_scaleNonUniform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGMatrix_skewX = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGMatrix_skewX, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGMatrix_skewY = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGMatrix_skewY, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGMatrix_translate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGMatrix_translate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.SVGMaskElement_get_maskUnits = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMaskElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "maskUnits"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.maskUnits; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMaskElement_get_maskUnits, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMaskElement_get_maskUnits, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMaskElement_get_maskUnits, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMaskElement_get_maskUnits, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMaskElement_get_maskContentUnits = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMaskElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "maskContentUnits"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.maskContentUnits; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMaskElement_get_maskContentUnits, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMaskElement_get_maskContentUnits, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMaskElement_get_maskContentUnits, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMaskElement_get_maskContentUnits, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMaskElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMaskElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMaskElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMaskElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMaskElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMaskElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMaskElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMaskElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMaskElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMaskElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMaskElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMaskElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMaskElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMaskElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMaskElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMaskElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMaskElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMaskElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMaskElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMaskElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMaskElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMaskElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMaskElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMaskElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMaskElement_get_requiredExtensions = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMaskElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "requiredExtensions"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.requiredExtensions; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMaskElement_get_requiredExtensions, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMaskElement_get_requiredExtensions, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMaskElement_get_requiredExtensions, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMaskElement_get_requiredExtensions, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMaskElement_get_systemLanguage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMaskElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "systemLanguage"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.systemLanguage; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMaskElement_get_systemLanguage, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMaskElement_get_systemLanguage, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMaskElement_get_systemLanguage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMaskElement_get_systemLanguage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMarkerElement_get_refX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMarkerElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "refX"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.refX; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMarkerElement_get_refX, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMarkerElement_get_refX, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMarkerElement_get_refX, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMarkerElement_get_refX, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMarkerElement_get_refY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMarkerElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "refY"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.refY; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMarkerElement_get_refY, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMarkerElement_get_refY, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMarkerElement_get_refY, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMarkerElement_get_refY, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMarkerElement_get_markerUnits = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMarkerElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "markerUnits"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.markerUnits; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMarkerElement_get_markerUnits, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMarkerElement_get_markerUnits, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMarkerElement_get_markerUnits, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMarkerElement_get_markerUnits, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMarkerElement_get_markerWidth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMarkerElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "markerWidth"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.markerWidth; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMarkerElement_get_markerWidth, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMarkerElement_get_markerWidth, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMarkerElement_get_markerWidth, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMarkerElement_get_markerWidth, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMarkerElement_get_markerHeight = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMarkerElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "markerHeight"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.markerHeight; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMarkerElement_get_markerHeight, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMarkerElement_get_markerHeight, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMarkerElement_get_markerHeight, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMarkerElement_get_markerHeight, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMarkerElement_get_orientType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMarkerElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "orientType"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.orientType; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMarkerElement_get_orientType, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMarkerElement_get_orientType, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMarkerElement_get_orientType, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMarkerElement_get_orientType, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMarkerElement_get_orientAngle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMarkerElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "orientAngle"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.orientAngle; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMarkerElement_get_orientAngle, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMarkerElement_get_orientAngle, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMarkerElement_get_orientAngle, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMarkerElement_get_orientAngle, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMarkerElement_get_viewBox = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMarkerElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "viewBox"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.viewBox; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMarkerElement_get_viewBox, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMarkerElement_get_viewBox, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMarkerElement_get_viewBox, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMarkerElement_get_viewBox, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMarkerElement_get_preserveAspectRatio = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMarkerElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "preserveAspectRatio"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.preserveAspectRatio; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMarkerElement_get_preserveAspectRatio, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMarkerElement_get_preserveAspectRatio, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMarkerElement_get_preserveAspectRatio, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMarkerElement_get_preserveAspectRatio, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGMarkerElement_setOrientToAngle = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMarkerElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGMarkerElement_setOrientToAngle, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGMarkerElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setOrientToAngle.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMarkerElement_setOrientToAngle, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMarkerElement_setOrientToAngle, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMarkerElement_setOrientToAngle, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGMarkerElement_setOrientToAuto = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGMarkerElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGMarkerElement_setOrientToAuto, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGMarkerElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setOrientToAuto.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMarkerElement_setOrientToAuto, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMarkerElement_setOrientToAuto, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMarkerElement_setOrientToAuto, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGMPathElement_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGMPathElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "href"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGMPathElement_get_href, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGMPathElement_get_href, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGMPathElement_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGMPathElement_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGLinearGradientElement_get_x1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGLinearGradientElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGLinearGradientElement_get_x1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGLinearGradientElement_get_x1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGLinearGradientElement_get_x1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLinearGradientElement_get_x1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGLinearGradientElement_get_y1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGLinearGradientElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGLinearGradientElement_get_y1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGLinearGradientElement_get_y1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGLinearGradientElement_get_y1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLinearGradientElement_get_y1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGLinearGradientElement_get_x2 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGLinearGradientElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x2"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x2; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGLinearGradientElement_get_x2, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGLinearGradientElement_get_x2, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGLinearGradientElement_get_x2, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLinearGradientElement_get_x2, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGLinearGradientElement_get_y2 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGLinearGradientElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y2"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y2; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGLinearGradientElement_get_y2, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGLinearGradientElement_get_y2, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGLinearGradientElement_get_y2, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLinearGradientElement_get_y2, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGLineElement_get_x1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGLineElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGLineElement_get_x1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGLineElement_get_x1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGLineElement_get_x1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLineElement_get_x1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGLineElement_get_y1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGLineElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGLineElement_get_y1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGLineElement_get_y1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGLineElement_get_y1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLineElement_get_y1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGLineElement_get_x2 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGLineElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x2"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x2; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGLineElement_get_x2, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGLineElement_get_x2, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGLineElement_get_x2, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLineElement_get_x2, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGLineElement_get_y2 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGLineElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y2"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y2; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGLineElement_get_y2, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGLineElement_get_y2, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGLineElement_get_y2, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLineElement_get_y2, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGLengthList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGLengthList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGLengthList_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLengthList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGLengthList_get_numberOfItems = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGLengthList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "numberOfItems"); + + let result = cbb_wf.getValue(this, 'numberOfItems'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGLengthList_get_numberOfItems, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLengthList_get_numberOfItems, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGLengthList_appendItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGLengthList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGLengthList_appendItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGLengthList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLengthList_appendItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGLengthList_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGLengthList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGLengthList_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGLengthList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLengthList_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGLengthList_getItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGLengthList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGLengthList_getItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGLengthList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLengthList_getItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGLengthList_initialize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGLengthList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGLengthList_initialize, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGLengthList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLengthList_initialize, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGLengthList_insertItemBefore = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGLengthList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGLengthList_insertItemBefore, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGLengthList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLengthList_insertItemBefore, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGLengthList_removeItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGLengthList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGLengthList_removeItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGLengthList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLengthList_removeItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGLengthList_replaceItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGLengthList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGLengthList_replaceItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGLengthList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLengthList_replaceItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SVGLength_get_unitType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGLength"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "unitType"); + + let result = cbb_wf.getValue(this, 'unitType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGLength_get_unitType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLength_get_unitType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGLength_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGLength"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "value"); + + let result = cbb_wf.getValue(this, 'value'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGLength_get_value, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLength_get_value, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGLength_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGLength"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "value", val); - if (cbb_wf.is_log) { - console.log("[*] SVGLength_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SVGLength"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'value', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLength_set_value, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SVGLength_get_valueInSpecifiedUnits = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGLength"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "valueInSpecifiedUnits"); + + let result = cbb_wf.getValue(this, 'valueInSpecifiedUnits'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGLength_get_valueInSpecifiedUnits, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLength_get_valueInSpecifiedUnits, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGLength_set_valueInSpecifiedUnits = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGLength"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "valueInSpecifiedUnits", val); - if (cbb_wf.is_log) { - console.log("[*] SVGLength_set_valueInSpecifiedUnits, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGLength_get_valueAsString = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGLength"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "valueAsString"); + cbb_wf.setValue(this, 'valueInSpecifiedUnits', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGLength_get_valueAsString, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLength_set_valueInSpecifiedUnits, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SVGLength_get_valueAsString = function () { + let r = cbb_wf.checkIllegal(this, "SVGLength"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'valueAsString'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLength_get_valueAsString, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SVGLength_set_valueAsString = function (val) { + let r = cbb_wf.checkIllegal(this, "SVGLength"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'valueAsString', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLength_set_valueAsString, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SVGLength_convertToSpecifiedUnits = function () { + let r = cbb_wf.checkIllegal(this, "SVGLength"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLength_convertToSpecifiedUnits, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGLength_newValueSpecifiedUnits = function () { + let r = cbb_wf.checkIllegal(this, "SVGLength"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGLength_newValueSpecifiedUnits, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.SVGLength_set_valueAsString = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGLength"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "valueAsString", val); - if (cbb_wf.is_log) { - console.log("[*] SVGLength_set_valueAsString, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGLength_convertToSpecifiedUnits = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGLength"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGLength_convertToSpecifiedUnits, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGLength_newValueSpecifiedUnits = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGLength"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGLength_newValueSpecifiedUnits, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.SVGImageElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGImageElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGImageElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGImageElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGImageElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGImageElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGImageElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGImageElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGImageElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGImageElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGImageElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGImageElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGImageElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGImageElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGImageElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGImageElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGImageElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGImageElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGImageElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGImageElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGImageElement_get_preserveAspectRatio = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "preserveAspectRatio"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.preserveAspectRatio; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGImageElement_get_preserveAspectRatio, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGImageElement_get_preserveAspectRatio, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGImageElement_get_preserveAspectRatio, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGImageElement_get_preserveAspectRatio, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGImageElement_get_decoding = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "decoding"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.decoding; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGImageElement_get_decoding, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGImageElement_get_decoding, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGImageElement_get_decoding, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGImageElement_get_decoding, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGImageElement_set_decoding = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "decoding", val); - if (cbb_wf.is_log) { - console.log("[*] SVGImageElement_set_decoding, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGImageElement_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "href"); + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGImageElement_set_decoding, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGImageElement_set_decoding, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.decoding = val; + } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGImageElement_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGImageElement_set_decoding, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGImageElement_get_href = function () { + let r = cbb_wf.checkIllegal(this, "SVGImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGImageElement_get_href, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGImageElement_get_href, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGImageElement_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGImageElement_decode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGImageElement_decode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGImageElement_get_crossOrigin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "crossOrigin"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.decode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGImageElement_decode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGImageElement_decode, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGImageElement_get_crossOrigin, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGImageElement_decode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.SVGImageElement_set_crossOrigin = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "crossOrigin", val); - if (cbb_wf.is_log) { - console.log("[*] SVGImageElement_set_crossOrigin, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } this.SVGGraphicsElement_get_transform = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGGraphicsElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.transform; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGGraphicsElement_get_transform 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGGraphicsElement_get_transform, 返回object'); break - case "function": - console.log("[*] SVGGraphicsElement_get_transform 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGGraphicsElement_get_transform, 返回function'); break default: - // string number - console.log("[*] SVGGraphicsElement_get_transform 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGGraphicsElement_get_transform, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGraphicsElement_get_transform, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGGraphicsElement_get_nearestViewportElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGGraphicsElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.nearestViewportElement; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGGraphicsElement_get_nearestViewportElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGGraphicsElement_get_nearestViewportElement, 返回object'); break - case "function": - console.log("[*] SVGGraphicsElement_get_nearestViewportElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGGraphicsElement_get_nearestViewportElement, 返回function'); break default: - // string number - console.log("[*] SVGGraphicsElement_get_nearestViewportElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGGraphicsElement_get_nearestViewportElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGraphicsElement_get_nearestViewportElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGGraphicsElement_get_farthestViewportElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGGraphicsElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.farthestViewportElement; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGGraphicsElement_get_farthestViewportElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGGraphicsElement_get_farthestViewportElement, 返回object'); break - case "function": - console.log("[*] SVGGraphicsElement_get_farthestViewportElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGGraphicsElement_get_farthestViewportElement, 返回function'); break default: - // string number - console.log("[*] SVGGraphicsElement_get_farthestViewportElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGGraphicsElement_get_farthestViewportElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGraphicsElement_get_farthestViewportElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGGraphicsElement_get_requiredExtensions = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGGraphicsElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.requiredExtensions; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGGraphicsElement_get_requiredExtensions 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGGraphicsElement_get_requiredExtensions, 返回object'); break - case "function": - console.log("[*] SVGGraphicsElement_get_requiredExtensions 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGGraphicsElement_get_requiredExtensions, 返回function'); break default: - // string number - console.log("[*] SVGGraphicsElement_get_requiredExtensions 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGGraphicsElement_get_requiredExtensions, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGraphicsElement_get_requiredExtensions, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGGraphicsElement_get_systemLanguage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGGraphicsElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.systemLanguage; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGGraphicsElement_get_systemLanguage 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGGraphicsElement_get_systemLanguage, 返回object'); break - case "function": - console.log("[*] SVGGraphicsElement_get_systemLanguage 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGGraphicsElement_get_systemLanguage, 返回function'); break default: - // string number - console.log("[*] SVGGraphicsElement_get_systemLanguage 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGGraphicsElement_get_systemLanguage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGraphicsElement_get_systemLanguage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGGraphicsElement_getBBox = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGGraphicsElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getBBox.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGGraphicsElement_getBBox 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGGraphicsElement_getBBox 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGGraphicsElement_getBBox 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGGraphicsElement_getBBox, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGGraphicsElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getBBox.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGGraphicsElement_getBBox, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGGraphicsElement_getBBox, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGraphicsElement_getBBox, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGGraphicsElement_getCTM = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGGraphicsElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getCTM.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGGraphicsElement_getCTM 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGGraphicsElement_getCTM 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGGraphicsElement_getCTM 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGGraphicsElement_getCTM, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGGraphicsElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getCTM.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGGraphicsElement_getCTM, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGGraphicsElement_getCTM, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGraphicsElement_getCTM, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGGraphicsElement_getScreenCTM = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGGraphicsElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getScreenCTM.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGGraphicsElement_getScreenCTM 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGGraphicsElement_getScreenCTM 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGGraphicsElement_getScreenCTM 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGGraphicsElement_getScreenCTM, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "SVGGraphicsElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getScreenCTM.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGGraphicsElement_getScreenCTM, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGGraphicsElement_getScreenCTM, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGraphicsElement_getScreenCTM, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGGradientElement_get_gradientUnits = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGGradientElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "gradientUnits"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.gradientUnits; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGGradientElement_get_gradientUnits, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGGradientElement_get_gradientUnits, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGGradientElement_get_gradientUnits, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGradientElement_get_gradientUnits, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGGradientElement_get_gradientTransform = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGGradientElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "gradientTransform"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.gradientTransform; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGGradientElement_get_gradientTransform, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGGradientElement_get_gradientTransform, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGGradientElement_get_gradientTransform, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGradientElement_get_gradientTransform, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGGradientElement_get_spreadMethod = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGGradientElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "spreadMethod"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.spreadMethod; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGGradientElement_get_spreadMethod, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGGradientElement_get_spreadMethod, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGGradientElement_get_spreadMethod, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGradientElement_get_spreadMethod, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGGradientElement_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGGradientElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "href"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGGradientElement_get_href, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGGradientElement_get_href, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGGradientElement_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGradientElement_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGGeometryElement_get_pathLength = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGGeometryElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pathLength"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.pathLength; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGGeometryElement_get_pathLength, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGGeometryElement_get_pathLength, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGGeometryElement_get_pathLength, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGeometryElement_get_pathLength, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGGeometryElement_getPointAtLength = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGGeometryElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGGeometryElement_getPointAtLength, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGGeometryElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getPointAtLength.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGGeometryElement_getPointAtLength, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGGeometryElement_getPointAtLength, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGeometryElement_getPointAtLength, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGGeometryElement_getTotalLength = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGGeometryElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGGeometryElement_getTotalLength, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGGeometryElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getTotalLength.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGGeometryElement_getTotalLength, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGGeometryElement_getTotalLength, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGeometryElement_getTotalLength, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGGeometryElement_isPointInFill = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGGeometryElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGGeometryElement_isPointInFill, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGGeometryElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.isPointInFill.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGGeometryElement_isPointInFill, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGGeometryElement_isPointInFill, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGeometryElement_isPointInFill, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGGeometryElement_isPointInStroke = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGGeometryElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGGeometryElement_isPointInStroke, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGGeometryElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.isPointInStroke.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGGeometryElement_isPointInStroke, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGGeometryElement_isPointInStroke, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGGeometryElement_isPointInStroke, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGForeignObjectElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGForeignObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGForeignObjectElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGForeignObjectElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGForeignObjectElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGForeignObjectElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGForeignObjectElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGForeignObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGForeignObjectElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGForeignObjectElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGForeignObjectElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGForeignObjectElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGForeignObjectElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGForeignObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGForeignObjectElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGForeignObjectElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGForeignObjectElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGForeignObjectElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGForeignObjectElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGForeignObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGForeignObjectElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGForeignObjectElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGForeignObjectElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGForeignObjectElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFilterElement_get_filterUnits = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFilterElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "filterUnits"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.filterUnits; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFilterElement_get_filterUnits, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFilterElement_get_filterUnits, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFilterElement_get_filterUnits, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFilterElement_get_filterUnits, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFilterElement_get_primitiveUnits = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFilterElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "primitiveUnits"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.primitiveUnits; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFilterElement_get_primitiveUnits, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFilterElement_get_primitiveUnits, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFilterElement_get_primitiveUnits, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFilterElement_get_primitiveUnits, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFilterElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFilterElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFilterElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFilterElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFilterElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFilterElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFilterElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFilterElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFilterElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFilterElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFilterElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFilterElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFilterElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFilterElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFilterElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFilterElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFilterElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFilterElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFilterElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFilterElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFilterElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFilterElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFilterElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFilterElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFilterElement_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFilterElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "href"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFilterElement_get_href, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFilterElement_get_href, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFilterElement_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFilterElement_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETurbulenceElement_get_baseFrequencyX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETurbulenceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseFrequencyX"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.baseFrequencyX; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_baseFrequencyX, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_baseFrequencyX, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETurbulenceElement_get_baseFrequencyX, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETurbulenceElement_get_baseFrequencyX, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETurbulenceElement_get_baseFrequencyY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETurbulenceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseFrequencyY"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.baseFrequencyY; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_baseFrequencyY, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_baseFrequencyY, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETurbulenceElement_get_baseFrequencyY, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETurbulenceElement_get_baseFrequencyY, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETurbulenceElement_get_numOctaves = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETurbulenceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "numOctaves"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.numOctaves; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_numOctaves, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_numOctaves, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETurbulenceElement_get_numOctaves, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETurbulenceElement_get_numOctaves, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETurbulenceElement_get_seed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETurbulenceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "seed"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.seed; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_seed, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_seed, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETurbulenceElement_get_seed, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETurbulenceElement_get_seed, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETurbulenceElement_get_stitchTiles = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETurbulenceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "stitchTiles"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.stitchTiles; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_stitchTiles, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_stitchTiles, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETurbulenceElement_get_stitchTiles, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETurbulenceElement_get_stitchTiles, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETurbulenceElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETurbulenceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_type, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_type, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETurbulenceElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETurbulenceElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETurbulenceElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETurbulenceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETurbulenceElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETurbulenceElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETurbulenceElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETurbulenceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETurbulenceElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETurbulenceElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETurbulenceElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETurbulenceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETurbulenceElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETurbulenceElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETurbulenceElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETurbulenceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETurbulenceElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETurbulenceElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETurbulenceElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETurbulenceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETurbulenceElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETurbulenceElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETurbulenceElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETileElement_get_in1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETileElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETileElement_get_in1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETileElement_get_in1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETileElement_get_in1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETileElement_get_in1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETileElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETileElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETileElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETileElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETileElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETileElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETileElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETileElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETileElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETileElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETileElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETileElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETileElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETileElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETileElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETileElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETileElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETileElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETileElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETileElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETileElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETileElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETileElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETileElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFETileElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFETileElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFETileElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFETileElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFETileElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFETileElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpotLightElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpotLightElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpotLightElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpotLightElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpotLightElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpotLightElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpotLightElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpotLightElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpotLightElement_get_z = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpotLightElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "z"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.z; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_z, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_z, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpotLightElement_get_z, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpotLightElement_get_z, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpotLightElement_get_pointsAtX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpotLightElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pointsAtX"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.pointsAtX; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_pointsAtX, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_pointsAtX, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpotLightElement_get_pointsAtX, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpotLightElement_get_pointsAtX, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpotLightElement_get_pointsAtY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpotLightElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pointsAtY"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.pointsAtY; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_pointsAtY, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_pointsAtY, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpotLightElement_get_pointsAtY, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpotLightElement_get_pointsAtY, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpotLightElement_get_pointsAtZ = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpotLightElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pointsAtZ"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.pointsAtZ; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_pointsAtZ, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_pointsAtZ, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpotLightElement_get_pointsAtZ, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpotLightElement_get_pointsAtZ, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpotLightElement_get_specularExponent = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpotLightElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "specularExponent"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.specularExponent; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_specularExponent, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_specularExponent, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpotLightElement_get_specularExponent, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpotLightElement_get_specularExponent, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpotLightElement_get_limitingConeAngle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpotLightElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "limitingConeAngle"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.limitingConeAngle; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_limitingConeAngle, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpotLightElement_get_limitingConeAngle, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpotLightElement_get_limitingConeAngle, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpotLightElement_get_limitingConeAngle, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpecularLightingElement_get_in1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpecularLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_in1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_in1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpecularLightingElement_get_in1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpecularLightingElement_get_in1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpecularLightingElement_get_surfaceScale = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpecularLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "surfaceScale"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.surfaceScale; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_surfaceScale, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_surfaceScale, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpecularLightingElement_get_surfaceScale, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpecularLightingElement_get_surfaceScale, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpecularLightingElement_get_specularConstant = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpecularLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "specularConstant"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.specularConstant; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_specularConstant, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_specularConstant, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpecularLightingElement_get_specularConstant, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpecularLightingElement_get_specularConstant, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpecularLightingElement_get_specularExponent = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpecularLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "specularExponent"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.specularExponent; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_specularExponent, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_specularExponent, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpecularLightingElement_get_specularExponent, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpecularLightingElement_get_specularExponent, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpecularLightingElement_get_kernelUnitLengthX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpecularLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "kernelUnitLengthX"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.kernelUnitLengthX; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_kernelUnitLengthX, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_kernelUnitLengthX, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpecularLightingElement_get_kernelUnitLengthX, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpecularLightingElement_get_kernelUnitLengthX, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpecularLightingElement_get_kernelUnitLengthY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpecularLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "kernelUnitLengthY"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.kernelUnitLengthY; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_kernelUnitLengthY, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_kernelUnitLengthY, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpecularLightingElement_get_kernelUnitLengthY, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpecularLightingElement_get_kernelUnitLengthY, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpecularLightingElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpecularLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpecularLightingElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpecularLightingElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpecularLightingElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpecularLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpecularLightingElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpecularLightingElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpecularLightingElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpecularLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpecularLightingElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpecularLightingElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpecularLightingElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpecularLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpecularLightingElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpecularLightingElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFESpecularLightingElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFESpecularLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFESpecularLightingElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFESpecularLightingElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFESpecularLightingElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEPointLightElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEPointLightElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEPointLightElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEPointLightElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEPointLightElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEPointLightElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEPointLightElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEPointLightElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEPointLightElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEPointLightElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEPointLightElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEPointLightElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEPointLightElement_get_z = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEPointLightElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "z"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.z; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEPointLightElement_get_z, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEPointLightElement_get_z, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEPointLightElement_get_z, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEPointLightElement_get_z, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEOffsetElement_get_in1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEOffsetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_in1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_in1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEOffsetElement_get_in1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEOffsetElement_get_in1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEOffsetElement_get_dx = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEOffsetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "dx"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.dx; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_dx, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_dx, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEOffsetElement_get_dx, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEOffsetElement_get_dx, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEOffsetElement_get_dy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEOffsetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "dy"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.dy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_dy, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_dy, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEOffsetElement_get_dy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEOffsetElement_get_dy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEOffsetElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEOffsetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEOffsetElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEOffsetElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEOffsetElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEOffsetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEOffsetElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEOffsetElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEOffsetElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEOffsetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEOffsetElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEOffsetElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEOffsetElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEOffsetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEOffsetElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEOffsetElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEOffsetElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEOffsetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEOffsetElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEOffsetElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEOffsetElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMorphologyElement_get_in1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMorphologyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_in1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_in1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMorphologyElement_get_in1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMorphologyElement_get_in1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMorphologyElement_get_operator = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMorphologyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "operator"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.operator; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_operator, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_operator, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMorphologyElement_get_operator, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMorphologyElement_get_operator, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMorphologyElement_get_radiusX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMorphologyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "radiusX"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.radiusX; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_radiusX, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_radiusX, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMorphologyElement_get_radiusX, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMorphologyElement_get_radiusX, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMorphologyElement_get_radiusY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMorphologyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "radiusY"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.radiusY; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_radiusY, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_radiusY, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMorphologyElement_get_radiusY, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMorphologyElement_get_radiusY, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMorphologyElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMorphologyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMorphologyElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMorphologyElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMorphologyElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMorphologyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMorphologyElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMorphologyElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMorphologyElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMorphologyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMorphologyElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMorphologyElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMorphologyElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMorphologyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMorphologyElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMorphologyElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMorphologyElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMorphologyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMorphologyElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMorphologyElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMorphologyElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMergeNodeElement_get_in1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMergeNodeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMergeNodeElement_get_in1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMergeNodeElement_get_in1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMergeNodeElement_get_in1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMergeNodeElement_get_in1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMergeElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMergeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMergeElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMergeElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMergeElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMergeElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMergeElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMergeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMergeElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMergeElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMergeElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMergeElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMergeElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMergeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMergeElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMergeElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMergeElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMergeElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMergeElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMergeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMergeElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMergeElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMergeElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMergeElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEMergeElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEMergeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEMergeElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEMergeElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEMergeElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEMergeElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEImageElement_get_preserveAspectRatio = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "preserveAspectRatio"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.preserveAspectRatio; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEImageElement_get_preserveAspectRatio, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEImageElement_get_preserveAspectRatio, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEImageElement_get_preserveAspectRatio, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEImageElement_get_preserveAspectRatio, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEImageElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEImageElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEImageElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEImageElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEImageElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEImageElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEImageElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEImageElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEImageElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEImageElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEImageElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEImageElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEImageElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEImageElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEImageElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEImageElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEImageElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEImageElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEImageElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEImageElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEImageElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEImageElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEImageElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEImageElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEImageElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEImageElement_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "href"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEImageElement_get_href, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEImageElement_get_href, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEImageElement_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEImageElement_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEGaussianBlurElement_get_in1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEGaussianBlurElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_in1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_in1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEGaussianBlurElement_get_in1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEGaussianBlurElement_get_in1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEGaussianBlurElement_get_stdDeviationX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEGaussianBlurElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "stdDeviationX"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.stdDeviationX; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_stdDeviationX, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_stdDeviationX, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEGaussianBlurElement_get_stdDeviationX, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEGaussianBlurElement_get_stdDeviationX, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEGaussianBlurElement_get_stdDeviationY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEGaussianBlurElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "stdDeviationY"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.stdDeviationY; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_stdDeviationY, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_stdDeviationY, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEGaussianBlurElement_get_stdDeviationY, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEGaussianBlurElement_get_stdDeviationY, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEGaussianBlurElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEGaussianBlurElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEGaussianBlurElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEGaussianBlurElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEGaussianBlurElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEGaussianBlurElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEGaussianBlurElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEGaussianBlurElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEGaussianBlurElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEGaussianBlurElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEGaussianBlurElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEGaussianBlurElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEGaussianBlurElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEGaussianBlurElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEGaussianBlurElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEGaussianBlurElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEGaussianBlurElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEGaussianBlurElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEGaussianBlurElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEGaussianBlurElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEGaussianBlurElement_setStdDeviation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGFEGaussianBlurElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGFEGaussianBlurElement_setStdDeviation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGFEGaussianBlurElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setStdDeviation.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_setStdDeviation, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEGaussianBlurElement_setStdDeviation, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEGaussianBlurElement_setStdDeviation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGFEFloodElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEFloodElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEFloodElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEFloodElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEFloodElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEFloodElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEFloodElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEFloodElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEFloodElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEFloodElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEFloodElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEFloodElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEFloodElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEFloodElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEFloodElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEFloodElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEFloodElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEFloodElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEFloodElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEFloodElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEFloodElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEFloodElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEFloodElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEFloodElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEFloodElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEFloodElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEFloodElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEFloodElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEFloodElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEFloodElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDropShadowElement_get_in1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDropShadowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_in1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_in1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDropShadowElement_get_in1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDropShadowElement_get_in1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDropShadowElement_get_dx = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDropShadowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "dx"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.dx; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_dx, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_dx, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDropShadowElement_get_dx, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDropShadowElement_get_dx, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDropShadowElement_get_dy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDropShadowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "dy"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.dy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_dy, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_dy, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDropShadowElement_get_dy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDropShadowElement_get_dy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDropShadowElement_get_stdDeviationX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDropShadowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "stdDeviationX"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.stdDeviationX; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_stdDeviationX, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_stdDeviationX, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDropShadowElement_get_stdDeviationX, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDropShadowElement_get_stdDeviationX, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDropShadowElement_get_stdDeviationY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDropShadowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "stdDeviationY"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.stdDeviationY; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_stdDeviationY, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_stdDeviationY, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDropShadowElement_get_stdDeviationY, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDropShadowElement_get_stdDeviationY, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDropShadowElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDropShadowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDropShadowElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDropShadowElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDropShadowElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDropShadowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDropShadowElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDropShadowElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDropShadowElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDropShadowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDropShadowElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDropShadowElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDropShadowElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDropShadowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDropShadowElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDropShadowElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDropShadowElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDropShadowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDropShadowElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDropShadowElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDropShadowElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDropShadowElement_setStdDeviation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGFEDropShadowElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGFEDropShadowElement_setStdDeviation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SVGFEDropShadowElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setStdDeviation.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDropShadowElement_setStdDeviation, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDropShadowElement_setStdDeviation, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDropShadowElement_setStdDeviation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.SVGFEDistantLightElement_get_azimuth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDistantLightElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "azimuth"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.azimuth; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDistantLightElement_get_azimuth, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDistantLightElement_get_azimuth, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDistantLightElement_get_azimuth, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDistantLightElement_get_azimuth, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDistantLightElement_get_elevation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDistantLightElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "elevation"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.elevation; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDistantLightElement_get_elevation, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDistantLightElement_get_elevation, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDistantLightElement_get_elevation, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDistantLightElement_get_elevation, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDisplacementMapElement_get_in1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDisplacementMapElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_in1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_in1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDisplacementMapElement_get_in1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDisplacementMapElement_get_in1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDisplacementMapElement_get_in2 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDisplacementMapElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in2"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in2; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_in2, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_in2, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDisplacementMapElement_get_in2, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDisplacementMapElement_get_in2, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDisplacementMapElement_get_scale = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDisplacementMapElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "scale"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.scale; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_scale, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_scale, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDisplacementMapElement_get_scale, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDisplacementMapElement_get_scale, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDisplacementMapElement_get_xChannelSelector = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDisplacementMapElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "xChannelSelector"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.xChannelSelector; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_xChannelSelector, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_xChannelSelector, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDisplacementMapElement_get_xChannelSelector, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDisplacementMapElement_get_xChannelSelector, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDisplacementMapElement_get_yChannelSelector = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDisplacementMapElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "yChannelSelector"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.yChannelSelector; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_yChannelSelector, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_yChannelSelector, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDisplacementMapElement_get_yChannelSelector, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDisplacementMapElement_get_yChannelSelector, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDisplacementMapElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDisplacementMapElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDisplacementMapElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDisplacementMapElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDisplacementMapElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDisplacementMapElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDisplacementMapElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDisplacementMapElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDisplacementMapElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDisplacementMapElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDisplacementMapElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDisplacementMapElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDisplacementMapElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDisplacementMapElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDisplacementMapElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDisplacementMapElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDisplacementMapElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDisplacementMapElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDisplacementMapElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDisplacementMapElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDisplacementMapElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDiffuseLightingElement_get_in1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDiffuseLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_in1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_in1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDiffuseLightingElement_get_in1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDiffuseLightingElement_get_in1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDiffuseLightingElement_get_surfaceScale = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDiffuseLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "surfaceScale"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.surfaceScale; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_surfaceScale, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_surfaceScale, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDiffuseLightingElement_get_surfaceScale, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDiffuseLightingElement_get_surfaceScale, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDiffuseLightingElement_get_diffuseConstant = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDiffuseLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "diffuseConstant"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.diffuseConstant; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_diffuseConstant, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_diffuseConstant, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDiffuseLightingElement_get_diffuseConstant, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDiffuseLightingElement_get_diffuseConstant, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDiffuseLightingElement_get_kernelUnitLengthX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDiffuseLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "kernelUnitLengthX"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.kernelUnitLengthX; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_kernelUnitLengthX, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_kernelUnitLengthX, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDiffuseLightingElement_get_kernelUnitLengthX, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDiffuseLightingElement_get_kernelUnitLengthX, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDiffuseLightingElement_get_kernelUnitLengthY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDiffuseLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "kernelUnitLengthY"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.kernelUnitLengthY; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_kernelUnitLengthY, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_kernelUnitLengthY, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDiffuseLightingElement_get_kernelUnitLengthY, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDiffuseLightingElement_get_kernelUnitLengthY, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDiffuseLightingElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDiffuseLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDiffuseLightingElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDiffuseLightingElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDiffuseLightingElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDiffuseLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDiffuseLightingElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDiffuseLightingElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDiffuseLightingElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDiffuseLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDiffuseLightingElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDiffuseLightingElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDiffuseLightingElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDiffuseLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDiffuseLightingElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDiffuseLightingElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEDiffuseLightingElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEDiffuseLightingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEDiffuseLightingElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEDiffuseLightingElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEDiffuseLightingElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_in1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_in1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_in1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_in1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_in1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_orderX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "orderX"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.orderX; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_orderX, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_orderX, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_orderX, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_orderX, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_orderY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "orderY"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.orderY; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_orderY, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_orderY, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_orderY, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_orderY, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_kernelMatrix = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "kernelMatrix"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.kernelMatrix; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_kernelMatrix, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_kernelMatrix, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_kernelMatrix, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_kernelMatrix, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_divisor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "divisor"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.divisor; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_divisor, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_divisor, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_divisor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_divisor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_bias = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "bias"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.bias; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_bias, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_bias, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_bias, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_bias, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_targetX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "targetX"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.targetX; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_targetX, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_targetX, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_targetX, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_targetX, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_targetY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "targetY"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.targetY; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_targetY, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_targetY, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_targetY, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_targetY, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_edgeMode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "edgeMode"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.edgeMode; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_edgeMode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_edgeMode, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_edgeMode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_edgeMode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_kernelUnitLengthX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "kernelUnitLengthX"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.kernelUnitLengthX; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_kernelUnitLengthX, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_kernelUnitLengthX, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_kernelUnitLengthX, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_kernelUnitLengthX, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_kernelUnitLengthY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "kernelUnitLengthY"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.kernelUnitLengthY; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_kernelUnitLengthY, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_kernelUnitLengthY, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_kernelUnitLengthY, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_kernelUnitLengthY, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_preserveAlpha = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "preserveAlpha"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.preserveAlpha; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_preserveAlpha, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_preserveAlpha, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_preserveAlpha, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_preserveAlpha, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEConvolveMatrixElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEConvolveMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEConvolveMatrixElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEConvolveMatrixElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEConvolveMatrixElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFECompositeElement_get_in2 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFECompositeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in2"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in2; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFECompositeElement_get_in2, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFECompositeElement_get_in2, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFECompositeElement_get_in2, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFECompositeElement_get_in2, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFECompositeElement_get_in1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFECompositeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFECompositeElement_get_in1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFECompositeElement_get_in1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFECompositeElement_get_in1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFECompositeElement_get_in1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFECompositeElement_get_operator = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFECompositeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "operator"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.operator; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFECompositeElement_get_operator, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFECompositeElement_get_operator, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFECompositeElement_get_operator, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFECompositeElement_get_operator, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFECompositeElement_get_k1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFECompositeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "k1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.k1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFECompositeElement_get_k1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFECompositeElement_get_k1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFECompositeElement_get_k1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFECompositeElement_get_k1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFECompositeElement_get_k2 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFECompositeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "k2"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.k2; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFECompositeElement_get_k2, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFECompositeElement_get_k2, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFECompositeElement_get_k2, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFECompositeElement_get_k2, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFECompositeElement_get_k3 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFECompositeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "k3"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.k3; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFECompositeElement_get_k3, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFECompositeElement_get_k3, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFECompositeElement_get_k3, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFECompositeElement_get_k3, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFECompositeElement_get_k4 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFECompositeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "k4"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.k4; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFECompositeElement_get_k4, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFECompositeElement_get_k4, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFECompositeElement_get_k4, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFECompositeElement_get_k4, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFECompositeElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFECompositeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFECompositeElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFECompositeElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFECompositeElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFECompositeElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFECompositeElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFECompositeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFECompositeElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFECompositeElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFECompositeElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFECompositeElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFECompositeElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFECompositeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFECompositeElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFECompositeElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFECompositeElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFECompositeElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFECompositeElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFECompositeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFECompositeElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFECompositeElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFECompositeElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFECompositeElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFECompositeElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFECompositeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFECompositeElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFECompositeElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFECompositeElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFECompositeElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEComponentTransferElement_get_in1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEComponentTransferElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEComponentTransferElement_get_in1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEComponentTransferElement_get_in1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEComponentTransferElement_get_in1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEComponentTransferElement_get_in1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEComponentTransferElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEComponentTransferElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEComponentTransferElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEComponentTransferElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEComponentTransferElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEComponentTransferElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEComponentTransferElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEComponentTransferElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEComponentTransferElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEComponentTransferElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEComponentTransferElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEComponentTransferElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEComponentTransferElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEComponentTransferElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEComponentTransferElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEComponentTransferElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEComponentTransferElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEComponentTransferElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEComponentTransferElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEComponentTransferElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEComponentTransferElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEComponentTransferElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEComponentTransferElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEComponentTransferElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEComponentTransferElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEComponentTransferElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEComponentTransferElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEComponentTransferElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEComponentTransferElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEComponentTransferElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEColorMatrixElement_get_in1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEColorMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_in1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_in1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEColorMatrixElement_get_in1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEColorMatrixElement_get_in1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEColorMatrixElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEColorMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_type, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_type, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEColorMatrixElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEColorMatrixElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEColorMatrixElement_get_values = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEColorMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "values"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.values; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_values, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_values, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEColorMatrixElement_get_values, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEColorMatrixElement_get_values, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEColorMatrixElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEColorMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEColorMatrixElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEColorMatrixElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEColorMatrixElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEColorMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEColorMatrixElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEColorMatrixElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEColorMatrixElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEColorMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEColorMatrixElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEColorMatrixElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEColorMatrixElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEColorMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEColorMatrixElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEColorMatrixElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEColorMatrixElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEColorMatrixElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEColorMatrixElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEColorMatrixElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEColorMatrixElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEBlendElement_get_in1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEBlendElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in1"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in1; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEBlendElement_get_in1, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEBlendElement_get_in1, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEBlendElement_get_in1, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEBlendElement_get_in1, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEBlendElement_get_in2 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEBlendElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "in2"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.in2; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEBlendElement_get_in2, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEBlendElement_get_in2, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEBlendElement_get_in2, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEBlendElement_get_in2, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEBlendElement_get_mode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEBlendElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mode"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.mode; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEBlendElement_get_mode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEBlendElement_get_mode, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEBlendElement_get_mode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEBlendElement_get_mode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEBlendElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEBlendElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.x; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEBlendElement_get_x, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEBlendElement_get_x, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEBlendElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEBlendElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEBlendElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEBlendElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.y; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEBlendElement_get_y, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEBlendElement_get_y, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEBlendElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEBlendElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEBlendElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEBlendElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEBlendElement_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEBlendElement_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEBlendElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEBlendElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEBlendElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEBlendElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEBlendElement_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEBlendElement_get_height, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEBlendElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEBlendElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGFEBlendElement_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGFEBlendElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.result; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGFEBlendElement_get_result, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGFEBlendElement_get_result, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGFEBlendElement_get_result, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGFEBlendElement_get_result, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGEllipseElement_get_cx = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGEllipseElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cx"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cx; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGEllipseElement_get_cx, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGEllipseElement_get_cx, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGEllipseElement_get_cx, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGEllipseElement_get_cx, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGEllipseElement_get_cy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGEllipseElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cy"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGEllipseElement_get_cy, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGEllipseElement_get_cy, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGEllipseElement_get_cy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGEllipseElement_get_cy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGEllipseElement_get_rx = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGEllipseElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rx"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rx; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGEllipseElement_get_rx, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGEllipseElement_get_rx, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGEllipseElement_get_rx, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGEllipseElement_get_rx, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGEllipseElement_get_ry = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGEllipseElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ry"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ry; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGEllipseElement_get_ry, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGEllipseElement_get_ry, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGEllipseElement_get_ry, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGEllipseElement_get_ry, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_get_className = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.className; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_className 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_get_className, 返回object'); break - case "function": - console.log("[*] SVGElement_get_className 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_get_className, 返回function'); break default: - // string number - console.log("[*] SVGElement_get_className 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_className, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_className, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGElement_get_ownerSVGElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.ownerSVGElement; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ownerSVGElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_get_ownerSVGElement, 返回object'); break - case "function": - console.log("[*] SVGElement_get_ownerSVGElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_get_ownerSVGElement, 返回function'); break default: - // string number - console.log("[*] SVGElement_get_ownerSVGElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ownerSVGElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ownerSVGElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGElement_get_viewportElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.viewportElement; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_viewportElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_get_viewportElement, 返回object'); break - case "function": - console.log("[*] SVGElement_get_viewportElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_get_viewportElement, 返回function'); break default: - // string number - console.log("[*] SVGElement_get_viewportElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_viewportElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_viewportElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGElement_get_onbeforexrselect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.onbeforexrselect; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onbeforexrselect 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_get_onbeforexrselect, 返回object'); break - case "function": - console.log("[*] SVGElement_get_onbeforexrselect 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_get_onbeforexrselect, 返回function'); break default: - // string number - console.log("[*] SVGElement_get_onbeforexrselect 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onbeforexrselect, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onbeforexrselect, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onbeforexrselect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforexrselect = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onbeforexrselect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onabort = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onabort; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onabort 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onbeforexrselect, set object'); break - case "function": - console.log("[*] SVGElement_get_onabort 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onbeforexrselect, set function'); break default: - // string number - console.log("[*] SVGElement_get_onabort 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforexrselect = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onbeforexrselect, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onabort = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onabort; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onabort, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onabort, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onabort, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onabort, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onabort = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onabort = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onabort, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onbeforeinput = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforeinput; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onbeforeinput 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onabort, set object'); break - case "function": - console.log("[*] SVGElement_get_onbeforeinput 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onabort, set function'); break default: - // string number - console.log("[*] SVGElement_get_onbeforeinput 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onabort = val; } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onbeforeinput, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.SVGElement_set_onbeforeinput = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforeinput = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onbeforeinput, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onbeforematch = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforematch; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onbeforematch 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] SVGElement_get_onbeforematch 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGElement_get_onbeforematch 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onbeforematch, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onabort, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.SVGElement_set_onbeforematch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforematch = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onbeforematch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onbeforetoggle = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforetoggle; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onbeforetoggle 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGElement_get_onbeforetoggle 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGElement_get_onbeforetoggle 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onbeforetoggle, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.SVGElement_set_onbeforetoggle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforetoggle = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onbeforetoggle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.SVGElement_get_onblur = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.onblur; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onblur 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_get_onblur, 返回object'); break - case "function": - console.log("[*] SVGElement_get_onblur 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_get_onblur, 返回function'); break default: - // string number - console.log("[*] SVGElement_get_onblur 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onblur, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onblur, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onblur = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onblur = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onblur, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_oncancel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncancel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_oncancel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onblur, set object'); break - case "function": - console.log("[*] SVGElement_get_oncancel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onblur, set function'); break default: - // string number - console.log("[*] SVGElement_get_oncancel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onblur = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onblur, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_oncancel = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncancel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_oncancel, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_oncancel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_oncancel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_oncancel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_oncancel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncancel = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_oncancel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_oncanplay = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncanplay; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_oncanplay 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_oncancel, set object'); break - case "function": - console.log("[*] SVGElement_get_oncanplay 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_oncancel, set function'); break default: - // string number - console.log("[*] SVGElement_get_oncanplay 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncancel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_oncancel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_oncanplay = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncanplay; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_oncanplay, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_oncanplay, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_oncanplay, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_oncanplay, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_oncanplay = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncanplay = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_oncanplay, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_oncanplaythrough = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncanplaythrough; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_oncanplaythrough 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_oncanplay, set object'); break - case "function": - console.log("[*] SVGElement_get_oncanplaythrough 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_oncanplay, set function'); break default: - // string number - console.log("[*] SVGElement_get_oncanplaythrough 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncanplay = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_oncanplay, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_oncanplaythrough = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncanplaythrough; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_oncanplaythrough, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_oncanplaythrough, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_oncanplaythrough, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_oncanplaythrough, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_oncanplaythrough = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncanplaythrough = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_oncanplaythrough, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_oncanplaythrough, set object'); break - case "function": - console.log("[*] SVGElement_get_onchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_oncanplaythrough, set function'); break default: - // string number - console.log("[*] SVGElement_get_onchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncanplaythrough = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_oncanplaythrough, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onchange = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onchange = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onclick = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onclick; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onclick 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onchange, set object'); break - case "function": - console.log("[*] SVGElement_get_onclick 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onchange, set function'); break default: - // string number - console.log("[*] SVGElement_get_onclick 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onclick = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onclick; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onclick, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onclick, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onclick, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onclick, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onclick = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onclick = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onclick, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onclose = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onclose; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onclose 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onclick, set object'); break - case "function": - console.log("[*] SVGElement_get_onclose 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onclick, set function'); break default: - // string number - console.log("[*] SVGElement_get_onclose 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onclick = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onclick, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onclose = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onclose; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onclose, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onclose, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onclose, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onclose, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onclose = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onclose = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onclose, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_oncontentvisibilityautostatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncontentvisibilityautostatechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_oncontentvisibilityautostatechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onclose, set object'); break - case "function": - console.log("[*] SVGElement_get_oncontentvisibilityautostatechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onclose, set function'); break default: - // string number - console.log("[*] SVGElement_get_oncontentvisibilityautostatechange 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onclose = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_oncontentvisibilityautostatechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onclose, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.SVGElement_set_oncontentvisibilityautostatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncontentvisibilityautostatechange = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_oncontentvisibilityautostatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.SVGElement_get_oncontextlost = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.oncontextlost; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_oncontextlost 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_get_oncontextlost, 返回object'); break - case "function": - console.log("[*] SVGElement_get_oncontextlost 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_get_oncontextlost, 返回function'); break default: - // string number - console.log("[*] SVGElement_get_oncontextlost 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_oncontextlost, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_oncontextlost, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_oncontextlost = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncontextlost = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_oncontextlost, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_oncontextmenu = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncontextmenu; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_oncontextmenu 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_oncontextlost, set object'); break - case "function": - console.log("[*] SVGElement_get_oncontextmenu 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_oncontextlost, set function'); break default: - // string number - console.log("[*] SVGElement_get_oncontextmenu 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncontextlost = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_oncontextlost, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_oncontextmenu = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncontextmenu; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_oncontextmenu, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_oncontextmenu, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_oncontextmenu, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_oncontextmenu, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_oncontextmenu = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncontextmenu = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_oncontextmenu, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_oncontextrestored = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncontextrestored; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_oncontextrestored 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_oncontextmenu, set object'); break - case "function": - console.log("[*] SVGElement_get_oncontextrestored 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_oncontextmenu, set function'); break default: - // string number - console.log("[*] SVGElement_get_oncontextrestored 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncontextmenu = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_oncontextmenu, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_oncontextrestored = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncontextrestored; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_oncontextrestored, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_oncontextrestored, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_oncontextrestored, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_oncontextrestored, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_oncontextrestored = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncontextrestored = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_oncontextrestored, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_oncuechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncuechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_oncuechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_oncontextrestored, set object'); break - case "function": - console.log("[*] SVGElement_get_oncuechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_oncontextrestored, set function'); break default: - // string number - console.log("[*] SVGElement_get_oncuechange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncontextrestored = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_oncontextrestored, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_oncuechange = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncuechange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_oncuechange, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_oncuechange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_oncuechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_oncuechange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_oncuechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncuechange = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_oncuechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ondblclick = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondblclick; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ondblclick 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_oncuechange, set object'); break - case "function": - console.log("[*] SVGElement_get_ondblclick 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_oncuechange, set function'); break default: - // string number - console.log("[*] SVGElement_get_ondblclick 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncuechange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_oncuechange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ondblclick = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondblclick; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ondblclick, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ondblclick, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ondblclick, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ondblclick, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ondblclick = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondblclick = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ondblclick, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ondrag = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondrag; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ondrag 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ondblclick, set object'); break - case "function": - console.log("[*] SVGElement_get_ondrag 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ondblclick, set function'); break default: - // string number - console.log("[*] SVGElement_get_ondrag 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondblclick = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ondblclick, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ondrag = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondrag; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ondrag, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ondrag, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ondrag, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ondrag, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ondrag = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondrag = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ondrag, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ondragend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ondragend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ondrag, set object'); break - case "function": - console.log("[*] SVGElement_get_ondragend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ondrag, set function'); break default: - // string number - console.log("[*] SVGElement_get_ondragend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondrag = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ondrag, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ondragend = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ondragend, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ondragend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ondragend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ondragend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ondragend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragend = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ondragend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ondragenter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragenter; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ondragenter 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ondragend, set object'); break - case "function": - console.log("[*] SVGElement_get_ondragenter 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ondragend, set function'); break default: - // string number - console.log("[*] SVGElement_get_ondragenter 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ondragend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ondragenter = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragenter; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ondragenter, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ondragenter, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ondragenter, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ondragenter, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ondragenter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragenter = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ondragenter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ondragleave = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragleave; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ondragleave 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ondragenter, set object'); break - case "function": - console.log("[*] SVGElement_get_ondragleave 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ondragenter, set function'); break default: - // string number - console.log("[*] SVGElement_get_ondragleave 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragenter = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ondragenter, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ondragleave = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragleave; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ondragleave, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ondragleave, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ondragleave, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ondragleave, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ondragleave = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragleave = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ondragleave, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ondragover = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragover; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ondragover 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ondragleave, set object'); break - case "function": - console.log("[*] SVGElement_get_ondragover 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ondragleave, set function'); break default: - // string number - console.log("[*] SVGElement_get_ondragover 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragleave = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ondragleave, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ondragover = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragover; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ondragover, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ondragover, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ondragover, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ondragover, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ondragover = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragover = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ondragover, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ondragstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ondragstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ondragover, set object'); break - case "function": - console.log("[*] SVGElement_get_ondragstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ondragover, set function'); break default: - // string number - console.log("[*] SVGElement_get_ondragstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragover = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ondragover, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ondragstart = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ondragstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ondragstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ondragstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ondragstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ondragstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragstart = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ondragstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ondrop = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondrop; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ondrop 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ondragstart, set object'); break - case "function": - console.log("[*] SVGElement_get_ondrop 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ondragstart, set function'); break default: - // string number - console.log("[*] SVGElement_get_ondrop 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ondragstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ondrop = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondrop; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ondrop, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ondrop, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ondrop, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ondrop, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ondrop = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondrop = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ondrop, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ondurationchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondurationchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ondurationchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ondrop, set object'); break - case "function": - console.log("[*] SVGElement_get_ondurationchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ondrop, set function'); break default: - // string number - console.log("[*] SVGElement_get_ondurationchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondrop = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ondrop, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ondurationchange = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondurationchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ondurationchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ondurationchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ondurationchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ondurationchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ondurationchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondurationchange = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ondurationchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onemptied = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onemptied; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onemptied 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ondurationchange, set object'); break - case "function": - console.log("[*] SVGElement_get_onemptied 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ondurationchange, set function'); break default: - // string number - console.log("[*] SVGElement_get_onemptied 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondurationchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ondurationchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onemptied = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onemptied; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onemptied, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onemptied, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onemptied, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onemptied, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onemptied = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onemptied = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onemptied, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onended = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onended; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onended 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onemptied, set object'); break - case "function": - console.log("[*] SVGElement_get_onended 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onemptied, set function'); break default: - // string number - console.log("[*] SVGElement_get_onended 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onemptied = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onemptied, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onended = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onended; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onended, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onended, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onended, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onended, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onended = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onended = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onended, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onerror; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onerror 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onended, set object'); break - case "function": - console.log("[*] SVGElement_get_onerror 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onended, set function'); break default: - // string number - console.log("[*] SVGElement_get_onerror 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onended = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onended, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onerror = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onerror; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onerror, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onerror, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onerror, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onerror, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onerror = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onfocus = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onfocus; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onfocus 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onerror, set object'); break - case "function": - console.log("[*] SVGElement_get_onfocus 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onerror, set function'); break default: - // string number - console.log("[*] SVGElement_get_onfocus 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onerror = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onerror, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onfocus = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onfocus; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onfocus, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onfocus, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onfocus, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onfocus, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onfocus = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onfocus = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onfocus, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onformdata = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onformdata; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onformdata 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onfocus, set object'); break - case "function": - console.log("[*] SVGElement_get_onformdata 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onfocus, set function'); break default: - // string number - console.log("[*] SVGElement_get_onformdata 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onfocus = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onfocus, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onformdata = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onformdata; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onformdata, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onformdata, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onformdata, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onformdata, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onformdata = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onformdata = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onformdata, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_oninput = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oninput; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_oninput 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onformdata, set object'); break - case "function": - console.log("[*] SVGElement_get_oninput 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onformdata, set function'); break default: - // string number - console.log("[*] SVGElement_get_oninput 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onformdata = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onformdata, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_oninput = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oninput; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_oninput, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_oninput, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_oninput, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_oninput, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_oninput = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oninput = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_oninput, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_oninvalid = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oninvalid; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_oninvalid 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_oninput, set object'); break - case "function": - console.log("[*] SVGElement_get_oninvalid 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_oninput, set function'); break default: - // string number - console.log("[*] SVGElement_get_oninvalid 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oninput = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_oninput, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_oninvalid = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oninvalid; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_oninvalid, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_oninvalid, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_oninvalid, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_oninvalid, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_oninvalid = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oninvalid = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_oninvalid, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onkeydown = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onkeydown; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onkeydown 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_oninvalid, set object'); break - case "function": - console.log("[*] SVGElement_get_onkeydown 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_oninvalid, set function'); break default: - // string number - console.log("[*] SVGElement_get_onkeydown 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oninvalid = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_oninvalid, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onkeydown = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onkeydown; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onkeydown, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onkeydown, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onkeydown, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onkeydown, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onkeydown = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onkeydown = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onkeydown, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onkeypress = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onkeypress; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onkeypress 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onkeydown, set object'); break - case "function": - console.log("[*] SVGElement_get_onkeypress 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onkeydown, set function'); break default: - // string number - console.log("[*] SVGElement_get_onkeypress 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onkeydown = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onkeydown, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onkeypress = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onkeypress; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onkeypress, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onkeypress, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onkeypress, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onkeypress, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onkeypress = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onkeypress = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onkeypress, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onkeyup = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onkeyup; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onkeyup 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onkeypress, set object'); break - case "function": - console.log("[*] SVGElement_get_onkeyup 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onkeypress, set function'); break default: - // string number - console.log("[*] SVGElement_get_onkeyup 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onkeypress = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onkeypress, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onkeyup = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onkeyup; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onkeyup, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onkeyup, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onkeyup, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onkeyup, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onkeyup = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onkeyup = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onkeyup, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onload = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onload; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onload 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onkeyup, set object'); break - case "function": - console.log("[*] SVGElement_get_onload 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onkeyup, set function'); break default: - // string number - console.log("[*] SVGElement_get_onload 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onkeyup = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onkeyup, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onload = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onload; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onload, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onload, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onload, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onload, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onload = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onload = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onload, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onloadeddata = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onloadeddata; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onloadeddata 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onload, set object'); break - case "function": - console.log("[*] SVGElement_get_onloadeddata 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onload, set function'); break default: - // string number - console.log("[*] SVGElement_get_onloadeddata 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onload = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onload, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onloadeddata = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onloadeddata; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onloadeddata, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onloadeddata, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onloadeddata, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onloadeddata, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onloadeddata = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onloadeddata = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onloadeddata, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onloadedmetadata = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onloadedmetadata; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onloadedmetadata 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onloadeddata, set object'); break - case "function": - console.log("[*] SVGElement_get_onloadedmetadata 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onloadeddata, set function'); break default: - // string number - console.log("[*] SVGElement_get_onloadedmetadata 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onloadeddata = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onloadeddata, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onloadedmetadata = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onloadedmetadata; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onloadedmetadata, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onloadedmetadata, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onloadedmetadata, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onloadedmetadata, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onloadedmetadata = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onloadedmetadata = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onloadedmetadata, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onloadstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onloadstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onloadstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onloadedmetadata, set object'); break - case "function": - console.log("[*] SVGElement_get_onloadstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onloadedmetadata, set function'); break default: - // string number - console.log("[*] SVGElement_get_onloadstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onloadedmetadata = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onloadedmetadata, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onloadstart = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onloadstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onloadstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onloadstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onloadstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onloadstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onloadstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onloadstart = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onloadstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onmousedown = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmousedown; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onmousedown 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onloadstart, set object'); break - case "function": - console.log("[*] SVGElement_get_onmousedown 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onloadstart, set function'); break default: - // string number - console.log("[*] SVGElement_get_onmousedown 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onloadstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onloadstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onmousedown = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmousedown; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onmousedown, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onmousedown, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onmousedown, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onmousedown, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onmousedown = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmousedown = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onmousedown, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onmouseenter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseenter; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onmouseenter 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onmousedown, set object'); break - case "function": - console.log("[*] SVGElement_get_onmouseenter 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onmousedown, set function'); break default: - // string number - console.log("[*] SVGElement_get_onmouseenter 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmousedown = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onmousedown, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onmouseenter = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseenter; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onmouseenter, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onmouseenter, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onmouseenter, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onmouseenter, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onmouseenter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseenter = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onmouseenter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onmouseleave = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseleave; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onmouseleave 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onmouseenter, set object'); break - case "function": - console.log("[*] SVGElement_get_onmouseleave 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onmouseenter, set function'); break default: - // string number - console.log("[*] SVGElement_get_onmouseleave 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseenter = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onmouseenter, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onmouseleave = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseleave; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onmouseleave, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onmouseleave, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onmouseleave, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onmouseleave, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onmouseleave = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseleave = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onmouseleave, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onmousemove = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmousemove; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onmousemove 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onmouseleave, set object'); break - case "function": - console.log("[*] SVGElement_get_onmousemove 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onmouseleave, set function'); break default: - // string number - console.log("[*] SVGElement_get_onmousemove 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseleave = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onmouseleave, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onmousemove = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmousemove; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onmousemove, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onmousemove, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onmousemove, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onmousemove, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onmousemove = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmousemove = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onmousemove, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onmouseout = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseout; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onmouseout 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onmousemove, set object'); break - case "function": - console.log("[*] SVGElement_get_onmouseout 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onmousemove, set function'); break default: - // string number - console.log("[*] SVGElement_get_onmouseout 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmousemove = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onmousemove, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onmouseout = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseout; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onmouseout, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onmouseout, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onmouseout, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onmouseout, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onmouseout = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseout = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onmouseout, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onmouseover = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseover; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onmouseover 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onmouseout, set object'); break - case "function": - console.log("[*] SVGElement_get_onmouseover 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onmouseout, set function'); break default: - // string number - console.log("[*] SVGElement_get_onmouseover 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseout = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onmouseout, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onmouseover = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseover; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onmouseover, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onmouseover, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onmouseover, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onmouseover, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onmouseover = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseover = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onmouseover, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onmouseup = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseup; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onmouseup 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onmouseover, set object'); break - case "function": - console.log("[*] SVGElement_get_onmouseup 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onmouseover, set function'); break default: - // string number - console.log("[*] SVGElement_get_onmouseup 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseover = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onmouseover, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onmouseup = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseup; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onmouseup, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onmouseup, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onmouseup, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onmouseup, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onmouseup = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseup = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onmouseup, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onmousewheel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmousewheel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onmousewheel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onmouseup, set object'); break - case "function": - console.log("[*] SVGElement_get_onmousewheel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onmouseup, set function'); break default: - // string number - console.log("[*] SVGElement_get_onmousewheel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseup = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onmouseup, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onmousewheel = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmousewheel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onmousewheel, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onmousewheel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onmousewheel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onmousewheel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onmousewheel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmousewheel = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onmousewheel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onpause = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpause; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onpause 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onmousewheel, set object'); break - case "function": - console.log("[*] SVGElement_get_onpause 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onmousewheel, set function'); break default: - // string number - console.log("[*] SVGElement_get_onpause 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmousewheel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onmousewheel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onpause = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpause; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onpause, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onpause, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onpause, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onpause, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onpause = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpause = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onpause, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onplay = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onplay; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onplay 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onpause, set object'); break - case "function": - console.log("[*] SVGElement_get_onplay 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onpause, set function'); break default: - // string number - console.log("[*] SVGElement_get_onplay 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpause = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onpause, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onplay = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onplay; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onplay, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onplay, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onplay, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onplay, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onplay = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onplay = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onplay, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onplaying = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onplaying; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onplaying 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onplay, set object'); break - case "function": - console.log("[*] SVGElement_get_onplaying 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onplay, set function'); break default: - // string number - console.log("[*] SVGElement_get_onplaying 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onplay = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onplay, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onplaying = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onplaying; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onplaying, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onplaying, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onplaying, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onplaying, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onplaying = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onplaying = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onplaying, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onprogress = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onprogress; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onprogress 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onplaying, set object'); break - case "function": - console.log("[*] SVGElement_get_onprogress 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onplaying, set function'); break default: - // string number - console.log("[*] SVGElement_get_onprogress 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onplaying = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onplaying, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onprogress = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onprogress; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onprogress, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onprogress, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onprogress, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onprogress, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onprogress = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onprogress = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onprogress, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onratechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onratechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onratechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onprogress, set object'); break - case "function": - console.log("[*] SVGElement_get_onratechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onprogress, set function'); break default: - // string number - console.log("[*] SVGElement_get_onratechange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onprogress = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onprogress, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onratechange = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onratechange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onratechange, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onratechange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onratechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onratechange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onratechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onratechange = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onratechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onreset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onreset; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onreset 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onratechange, set object'); break - case "function": - console.log("[*] SVGElement_get_onreset 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onratechange, set function'); break default: - // string number - console.log("[*] SVGElement_get_onreset 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onratechange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onratechange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onreset = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onreset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onreset, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onreset, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onreset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onreset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onreset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onreset = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onreset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onresize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onresize; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onresize 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onreset, set object'); break - case "function": - console.log("[*] SVGElement_get_onresize 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onreset, set function'); break default: - // string number - console.log("[*] SVGElement_get_onresize 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onreset = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onreset, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onresize = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onresize; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onresize, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onresize, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onresize, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onresize, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onresize = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onresize = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onresize, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onscroll = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onscroll; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onscroll 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onresize, set object'); break - case "function": - console.log("[*] SVGElement_get_onscroll 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onresize, set function'); break default: - // string number - console.log("[*] SVGElement_get_onscroll 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onresize = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onresize, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onscroll = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onscroll; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onscroll, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onscroll, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onscroll, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onscroll, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onscroll = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onscroll = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onscroll, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onsecuritypolicyviolation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onsecuritypolicyviolation; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onsecuritypolicyviolation 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onscroll, set object'); break - case "function": - console.log("[*] SVGElement_get_onsecuritypolicyviolation 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onscroll, set function'); break default: - // string number - console.log("[*] SVGElement_get_onsecuritypolicyviolation 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onscroll = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onscroll, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onsecuritypolicyviolation = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onsecuritypolicyviolation; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onsecuritypolicyviolation, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onsecuritypolicyviolation, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onsecuritypolicyviolation, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onsecuritypolicyviolation, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onsecuritypolicyviolation = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onsecuritypolicyviolation = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onsecuritypolicyviolation, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onseeked = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onseeked; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onseeked 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onsecuritypolicyviolation, set object'); break - case "function": - console.log("[*] SVGElement_get_onseeked 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onsecuritypolicyviolation, set function'); break default: - // string number - console.log("[*] SVGElement_get_onseeked 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onsecuritypolicyviolation = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onsecuritypolicyviolation, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onseeked = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onseeked; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onseeked, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onseeked, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onseeked, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onseeked, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onseeked = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onseeked = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onseeked, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onseeking = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onseeking; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onseeking 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onseeked, set object'); break - case "function": - console.log("[*] SVGElement_get_onseeking 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onseeked, set function'); break default: - // string number - console.log("[*] SVGElement_get_onseeking 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onseeked = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onseeked, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onseeking = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onseeking; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onseeking, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onseeking, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onseeking, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onseeking, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onseeking = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onseeking = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onseeking, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onselect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onselect; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onselect 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onseeking, set object'); break - case "function": - console.log("[*] SVGElement_get_onselect 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onseeking, set function'); break default: - // string number - console.log("[*] SVGElement_get_onselect 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onseeking = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onseeking, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onselect = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onselect; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onselect, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onselect, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onselect, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onselect, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onselect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onselect = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onselect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onslotchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onslotchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onslotchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onselect, set object'); break - case "function": - console.log("[*] SVGElement_get_onslotchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onselect, set function'); break default: - // string number - console.log("[*] SVGElement_get_onslotchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onselect = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onselect, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onslotchange = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onslotchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onslotchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onslotchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onslotchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onslotchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onslotchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onslotchange = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onslotchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onstalled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onstalled; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onstalled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onslotchange, set object'); break - case "function": - console.log("[*] SVGElement_get_onstalled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onslotchange, set function'); break default: - // string number - console.log("[*] SVGElement_get_onstalled 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onslotchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onslotchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onstalled = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onstalled; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onstalled, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onstalled, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onstalled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onstalled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onstalled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onstalled = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onstalled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onsubmit = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onsubmit; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onsubmit 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onstalled, set object'); break - case "function": - console.log("[*] SVGElement_get_onsubmit 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onstalled, set function'); break default: - // string number - console.log("[*] SVGElement_get_onsubmit 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onstalled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onstalled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onsubmit = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onsubmit; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onsubmit, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onsubmit, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onsubmit, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onsubmit, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onsubmit = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onsubmit = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onsubmit, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onsuspend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onsuspend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onsuspend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onsubmit, set object'); break - case "function": - console.log("[*] SVGElement_get_onsuspend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onsubmit, set function'); break default: - // string number - console.log("[*] SVGElement_get_onsuspend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onsubmit = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onsubmit, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onsuspend = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onsuspend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onsuspend, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onsuspend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onsuspend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onsuspend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onsuspend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onsuspend = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onsuspend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ontimeupdate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontimeupdate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ontimeupdate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onsuspend, set object'); break - case "function": - console.log("[*] SVGElement_get_ontimeupdate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onsuspend, set function'); break default: - // string number - console.log("[*] SVGElement_get_ontimeupdate 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onsuspend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onsuspend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ontimeupdate = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontimeupdate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ontimeupdate, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ontimeupdate, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ontimeupdate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ontimeupdate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ontimeupdate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontimeupdate = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ontimeupdate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ontoggle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontoggle; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ontoggle 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ontimeupdate, set object'); break - case "function": - console.log("[*] SVGElement_get_ontoggle 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ontimeupdate, set function'); break default: - // string number - console.log("[*] SVGElement_get_ontoggle 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontimeupdate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ontimeupdate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ontoggle = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontoggle; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ontoggle, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ontoggle, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ontoggle, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ontoggle, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ontoggle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontoggle = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ontoggle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onvolumechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onvolumechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onvolumechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ontoggle, set object'); break - case "function": - console.log("[*] SVGElement_get_onvolumechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ontoggle, set function'); break default: - // string number - console.log("[*] SVGElement_get_onvolumechange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontoggle = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ontoggle, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onvolumechange = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onvolumechange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onvolumechange, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onvolumechange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onvolumechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onvolumechange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onvolumechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onvolumechange = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onvolumechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onwaiting = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwaiting; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onwaiting 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onvolumechange, set object'); break - case "function": - console.log("[*] SVGElement_get_onwaiting 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onvolumechange, set function'); break default: - // string number - console.log("[*] SVGElement_get_onwaiting 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onvolumechange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onvolumechange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onwaiting = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwaiting; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onwaiting, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onwaiting, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onwaiting, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onwaiting, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onwaiting = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwaiting = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onwaiting, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onwebkitanimationend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkitanimationend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onwebkitanimationend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onwaiting, set object'); break - case "function": - console.log("[*] SVGElement_get_onwebkitanimationend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onwaiting, set function'); break default: - // string number - console.log("[*] SVGElement_get_onwebkitanimationend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwaiting = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onwaiting, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onwebkitanimationend = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkitanimationend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onwebkitanimationend, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onwebkitanimationend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onwebkitanimationend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onwebkitanimationend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onwebkitanimationend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkitanimationend = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onwebkitanimationend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onwebkitanimationiteration = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkitanimationiteration; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onwebkitanimationiteration 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onwebkitanimationend, set object'); break - case "function": - console.log("[*] SVGElement_get_onwebkitanimationiteration 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onwebkitanimationend, set function'); break default: - // string number - console.log("[*] SVGElement_get_onwebkitanimationiteration 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkitanimationend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onwebkitanimationend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onwebkitanimationiteration = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkitanimationiteration; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onwebkitanimationiteration, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onwebkitanimationiteration, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onwebkitanimationiteration, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onwebkitanimationiteration, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onwebkitanimationiteration = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkitanimationiteration = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onwebkitanimationiteration, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onwebkitanimationstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkitanimationstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onwebkitanimationstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onwebkitanimationiteration, set object'); break - case "function": - console.log("[*] SVGElement_get_onwebkitanimationstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onwebkitanimationiteration, set function'); break default: - // string number - console.log("[*] SVGElement_get_onwebkitanimationstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkitanimationiteration = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onwebkitanimationiteration, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onwebkitanimationstart = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkitanimationstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onwebkitanimationstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onwebkitanimationstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onwebkitanimationstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onwebkitanimationstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onwebkitanimationstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkitanimationstart = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onwebkitanimationstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onwebkittransitionend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkittransitionend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onwebkittransitionend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onwebkitanimationstart, set object'); break - case "function": - console.log("[*] SVGElement_get_onwebkittransitionend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onwebkitanimationstart, set function'); break default: - // string number - console.log("[*] SVGElement_get_onwebkittransitionend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkitanimationstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onwebkitanimationstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onwebkittransitionend = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkittransitionend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onwebkittransitionend, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onwebkittransitionend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onwebkittransitionend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onwebkittransitionend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onwebkittransitionend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkittransitionend = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onwebkittransitionend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onwheel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwheel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onwheel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onwebkittransitionend, set object'); break - case "function": - console.log("[*] SVGElement_get_onwheel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onwebkittransitionend, set function'); break default: - // string number - console.log("[*] SVGElement_get_onwheel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkittransitionend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onwebkittransitionend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onwheel = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwheel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onwheel, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onwheel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onwheel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onwheel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onwheel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwheel = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onwheel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onauxclick = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onauxclick; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onauxclick 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onwheel, set object'); break - case "function": - console.log("[*] SVGElement_get_onauxclick 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onwheel, set function'); break default: - // string number - console.log("[*] SVGElement_get_onauxclick 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwheel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onwheel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onauxclick = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onauxclick; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onauxclick, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onauxclick, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onauxclick, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onauxclick, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onauxclick = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onauxclick = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onauxclick, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ongotpointercapture = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ongotpointercapture; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ongotpointercapture 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onauxclick, set object'); break - case "function": - console.log("[*] SVGElement_get_ongotpointercapture 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onauxclick, set function'); break default: - // string number - console.log("[*] SVGElement_get_ongotpointercapture 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onauxclick = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onauxclick, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ongotpointercapture = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ongotpointercapture; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ongotpointercapture, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ongotpointercapture, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ongotpointercapture, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ongotpointercapture, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ongotpointercapture = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ongotpointercapture = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ongotpointercapture, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onlostpointercapture = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onlostpointercapture; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onlostpointercapture 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ongotpointercapture, set object'); break - case "function": - console.log("[*] SVGElement_get_onlostpointercapture 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ongotpointercapture, set function'); break default: - // string number - console.log("[*] SVGElement_get_onlostpointercapture 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ongotpointercapture = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ongotpointercapture, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onlostpointercapture = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onlostpointercapture; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onlostpointercapture, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onlostpointercapture, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onlostpointercapture, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onlostpointercapture, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onlostpointercapture = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onlostpointercapture = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onlostpointercapture, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onpointerdown = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerdown; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onpointerdown 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onlostpointercapture, set object'); break - case "function": - console.log("[*] SVGElement_get_onpointerdown 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onlostpointercapture, set function'); break default: - // string number - console.log("[*] SVGElement_get_onpointerdown 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onlostpointercapture = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onlostpointercapture, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onpointerdown = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerdown; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onpointerdown, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onpointerdown, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onpointerdown, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onpointerdown, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onpointerdown = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerdown = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onpointerdown, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onpointermove = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointermove; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onpointermove 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onpointerdown, set object'); break - case "function": - console.log("[*] SVGElement_get_onpointermove 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onpointerdown, set function'); break default: - // string number - console.log("[*] SVGElement_get_onpointermove 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerdown = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onpointerdown, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onpointermove = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointermove; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onpointermove, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onpointermove, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onpointermove, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onpointermove, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onpointermove = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointermove = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onpointermove, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onpointerrawupdate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerrawupdate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onpointerrawupdate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onpointermove, set object'); break - case "function": - console.log("[*] SVGElement_get_onpointerrawupdate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onpointermove, set function'); break default: - // string number - console.log("[*] SVGElement_get_onpointerrawupdate 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointermove = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onpointerrawupdate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onpointermove, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.SVGElement_set_onpointerrawupdate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerrawupdate = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onpointerrawupdate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.SVGElement_get_onpointerup = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.onpointerup; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onpointerup 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_get_onpointerup, 返回object'); break - case "function": - console.log("[*] SVGElement_get_onpointerup 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_get_onpointerup, 返回function'); break default: - // string number - console.log("[*] SVGElement_get_onpointerup 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onpointerup, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onpointerup, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onpointerup = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerup = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onpointerup, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onpointercancel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointercancel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onpointercancel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onpointerup, set object'); break - case "function": - console.log("[*] SVGElement_get_onpointercancel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onpointerup, set function'); break default: - // string number - console.log("[*] SVGElement_get_onpointercancel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerup = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onpointerup, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onpointercancel = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointercancel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onpointercancel, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onpointercancel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onpointercancel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onpointercancel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onpointercancel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointercancel = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onpointercancel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onpointerover = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerover; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onpointerover 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onpointercancel, set object'); break - case "function": - console.log("[*] SVGElement_get_onpointerover 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onpointercancel, set function'); break default: - // string number - console.log("[*] SVGElement_get_onpointerover 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointercancel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onpointercancel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onpointerover = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerover; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onpointerover, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onpointerover, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onpointerover, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onpointerover, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onpointerover = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerover = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onpointerover, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onpointerout = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerout; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onpointerout 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onpointerover, set object'); break - case "function": - console.log("[*] SVGElement_get_onpointerout 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onpointerover, set function'); break default: - // string number - console.log("[*] SVGElement_get_onpointerout 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerover = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onpointerover, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onpointerout = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerout; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onpointerout, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onpointerout, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onpointerout, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onpointerout, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onpointerout = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerout = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onpointerout, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onpointerenter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerenter; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onpointerenter 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onpointerout, set object'); break - case "function": - console.log("[*] SVGElement_get_onpointerenter 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onpointerout, set function'); break default: - // string number - console.log("[*] SVGElement_get_onpointerenter 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerout = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onpointerout, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onpointerenter = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerenter; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onpointerenter, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onpointerenter, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onpointerenter, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onpointerenter, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onpointerenter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerenter = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onpointerenter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onpointerleave = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerleave; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onpointerleave 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onpointerenter, set object'); break - case "function": - console.log("[*] SVGElement_get_onpointerleave 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onpointerenter, set function'); break default: - // string number - console.log("[*] SVGElement_get_onpointerleave 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerenter = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onpointerenter, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onpointerleave = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerleave; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onpointerleave, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onpointerleave, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onpointerleave, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onpointerleave, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onpointerleave = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerleave = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onpointerleave, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onselectstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onselectstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onselectstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onpointerleave, set object'); break - case "function": - console.log("[*] SVGElement_get_onselectstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onpointerleave, set function'); break default: - // string number - console.log("[*] SVGElement_get_onselectstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerleave = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onpointerleave, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onselectstart = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onselectstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onselectstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onselectstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onselectstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onselectstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onselectstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onselectstart = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onselectstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onselectionchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onselectionchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onselectionchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onselectstart, set object'); break - case "function": - console.log("[*] SVGElement_get_onselectionchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onselectstart, set function'); break default: - // string number - console.log("[*] SVGElement_get_onselectionchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onselectstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onselectstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onselectionchange = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onselectionchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onselectionchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onselectionchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onselectionchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onselectionchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onselectionchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onselectionchange = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onselectionchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onanimationend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onanimationend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onanimationend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onselectionchange, set object'); break - case "function": - console.log("[*] SVGElement_get_onanimationend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onselectionchange, set function'); break default: - // string number - console.log("[*] SVGElement_get_onanimationend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onselectionchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onselectionchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onanimationend = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onanimationend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onanimationend, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onanimationend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onanimationend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onanimationend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onanimationend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onanimationend = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onanimationend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onanimationiteration = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onanimationiteration; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onanimationiteration 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onanimationend, set object'); break - case "function": - console.log("[*] SVGElement_get_onanimationiteration 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onanimationend, set function'); break default: - // string number - console.log("[*] SVGElement_get_onanimationiteration 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onanimationend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onanimationend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onanimationiteration = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onanimationiteration; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onanimationiteration, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onanimationiteration, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onanimationiteration, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onanimationiteration, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onanimationiteration = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onanimationiteration = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onanimationiteration, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onanimationstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onanimationstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onanimationstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onanimationiteration, set object'); break - case "function": - console.log("[*] SVGElement_get_onanimationstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onanimationiteration, set function'); break default: - // string number - console.log("[*] SVGElement_get_onanimationstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onanimationiteration = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onanimationiteration, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onanimationstart = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onanimationstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onanimationstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onanimationstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onanimationstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onanimationstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onanimationstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onanimationstart = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onanimationstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ontransitionrun = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontransitionrun; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ontransitionrun 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onanimationstart, set object'); break - case "function": - console.log("[*] SVGElement_get_ontransitionrun 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onanimationstart, set function'); break default: - // string number - console.log("[*] SVGElement_get_ontransitionrun 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onanimationstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onanimationstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ontransitionrun = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontransitionrun; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ontransitionrun, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ontransitionrun, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ontransitionrun, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ontransitionrun, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ontransitionrun = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontransitionrun = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ontransitionrun, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ontransitionstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontransitionstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ontransitionstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ontransitionrun, set object'); break - case "function": - console.log("[*] SVGElement_get_ontransitionstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ontransitionrun, set function'); break default: - // string number - console.log("[*] SVGElement_get_ontransitionstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontransitionrun = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ontransitionrun, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ontransitionstart = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontransitionstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ontransitionstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ontransitionstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ontransitionstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ontransitionstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ontransitionstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontransitionstart = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ontransitionstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ontransitionend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontransitionend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ontransitionend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ontransitionstart, set object'); break - case "function": - console.log("[*] SVGElement_get_ontransitionend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ontransitionstart, set function'); break default: - // string number - console.log("[*] SVGElement_get_ontransitionend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontransitionstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ontransitionstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ontransitionend = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontransitionend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ontransitionend, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ontransitionend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ontransitionend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ontransitionend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ontransitionend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontransitionend = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ontransitionend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_ontransitioncancel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontransitioncancel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_ontransitioncancel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ontransitionend, set object'); break - case "function": - console.log("[*] SVGElement_get_ontransitioncancel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ontransitionend, set function'); break default: - // string number - console.log("[*] SVGElement_get_ontransitioncancel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontransitionend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ontransitionend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_ontransitioncancel = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontransitioncancel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_ontransitioncancel, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_ontransitioncancel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_ontransitioncancel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_ontransitioncancel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_ontransitioncancel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontransitioncancel = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_ontransitioncancel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_oncopy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncopy; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_oncopy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_ontransitioncancel, set object'); break - case "function": - console.log("[*] SVGElement_get_oncopy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_ontransitioncancel, set function'); break default: - // string number - console.log("[*] SVGElement_get_oncopy 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontransitioncancel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_ontransitioncancel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_oncopy = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncopy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_oncopy, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_oncopy, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_oncopy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_oncopy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_oncopy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncopy = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_oncopy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_oncut = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncut; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_oncut 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_oncopy, set object'); break - case "function": - console.log("[*] SVGElement_get_oncut 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_oncopy, set function'); break default: - // string number - console.log("[*] SVGElement_get_oncut 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncopy = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_oncopy, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_oncut = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncut; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_oncut, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_oncut, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_oncut, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_oncut, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_oncut = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncut = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_oncut, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_onpaste = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpaste; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onpaste 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_oncut, set object'); break - case "function": - console.log("[*] SVGElement_get_onpaste 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_oncut, set function'); break default: - // string number - console.log("[*] SVGElement_get_onpaste 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncut = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_oncut, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onpaste = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpaste; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onpaste, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onpaste, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onpaste, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onpaste, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_onpaste = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpaste = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onpaste, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_dataset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.dataset; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_dataset 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_onpaste, set object'); break - case "function": - console.log("[*] SVGElement_get_dataset 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_onpaste, set function'); break default: - // string number - console.log("[*] SVGElement_get_dataset 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpaste = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onpaste, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_dataset = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.dataset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_dataset, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_dataset, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_dataset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_dataset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.SVGElement_get_nonce = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.nonce; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_nonce 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_get_nonce, 返回object'); break - case "function": - console.log("[*] SVGElement_get_nonce 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_get_nonce, 返回function'); break default: - // string number - console.log("[*] SVGElement_get_nonce 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_nonce, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_nonce, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_nonce = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.nonce = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_nonce, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_autofocus = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.autofocus; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_autofocus 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_nonce, set object'); break - case "function": - console.log("[*] SVGElement_get_autofocus 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_nonce, set function'); break default: - // string number - console.log("[*] SVGElement_get_autofocus 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.nonce = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_nonce, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_autofocus = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.autofocus; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_autofocus, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_autofocus, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_autofocus, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_autofocus, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_autofocus = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.autofocus = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_autofocus, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_tabIndex = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.tabIndex; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_tabIndex 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_autofocus, set object'); break - case "function": - console.log("[*] SVGElement_get_tabIndex 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_autofocus, set function'); break default: - // string number - console.log("[*] SVGElement_get_tabIndex 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.autofocus = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_autofocus, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_tabIndex = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.tabIndex; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_tabIndex, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_tabIndex, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_tabIndex, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_tabIndex, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_tabIndex = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.tabIndex = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_tabIndex, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_style = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.style; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_style 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_tabIndex, set object'); break - case "function": - console.log("[*] SVGElement_get_style 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_tabIndex, set function'); break default: - // string number - console.log("[*] SVGElement_get_style 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.tabIndex = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_tabIndex, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_style = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.style; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_style, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGElement_get_style, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_style, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_style, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGElement_set_style = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.style = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_style, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGElement_get_attributeStyleMap = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.attributeStyleMap; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_attributeStyleMap 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_set_style, set object'); break - case "function": - console.log("[*] SVGElement_get_attributeStyleMap 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_set_style, set function'); break default: - // string number - console.log("[*] SVGElement_get_attributeStyleMap 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.style = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_attributeStyleMap, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_style, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } this.SVGElement_blur = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.blur.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGElement_blur 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGElement_blur 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGElement_blur 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_blur, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.SVGElement_focus = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.focus.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] SVGElement_focus 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] SVGElement_focus 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] SVGElement_focus 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_focus, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.SVGElement_get_onscrollend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onscrollend; - let type = typeof result; - switch (type) { + let result = dom_element.blur.apply(dom_element, arguments); + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGElement_get_onscrollend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGElement_blur, 返回object'); break - case "function": - console.log("[*] SVGElement_get_onscrollend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGElement_blur, 返回function'); break default: - // string number - console.log("[*] SVGElement_get_onscrollend 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGElement_get_onscrollend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_blur, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.SVGElement_set_onscrollend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onscrollend = val; - if (cbb_wf.is_log) { - console.log("[*] SVGElement_set_onscrollend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + +this.SVGElement_focus = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.focus.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_focus, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGElement_focus, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_focus, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.SVGElement_get_onpointerrawupdate = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerrawupdate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onpointerrawupdate, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onpointerrawupdate, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onpointerrawupdate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.SVGElement_set_onpointerrawupdate = function (val) { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGElement_set_onpointerrawupdate, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGElement_set_onpointerrawupdate, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerrawupdate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onpointerrawupdate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGElement_get_onbeforematch = function () { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onbeforematch; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGElement_get_onbeforematch, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGElement_get_onbeforematch, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_get_onbeforematch, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.SVGElement_set_onbeforematch = function (val) { + let r = cbb_wf.checkIllegal(this, "SVGElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGElement_set_onbeforematch, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGElement_set_onbeforematch, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforematch = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGElement_set_onbeforematch, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.SVGComponentTransferFunctionElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGComponentTransferFunctionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGComponentTransferFunctionElement_get_type, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGComponentTransferFunctionElement_get_type, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGComponentTransferFunctionElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGComponentTransferFunctionElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGComponentTransferFunctionElement_get_tableValues = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGComponentTransferFunctionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "tableValues"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.tableValues; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGComponentTransferFunctionElement_get_tableValues, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGComponentTransferFunctionElement_get_tableValues, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGComponentTransferFunctionElement_get_tableValues, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGComponentTransferFunctionElement_get_tableValues, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGComponentTransferFunctionElement_get_slope = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGComponentTransferFunctionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "slope"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.slope; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGComponentTransferFunctionElement_get_slope, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGComponentTransferFunctionElement_get_slope, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGComponentTransferFunctionElement_get_slope, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGComponentTransferFunctionElement_get_slope, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGComponentTransferFunctionElement_get_intercept = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGComponentTransferFunctionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "intercept"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.intercept; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGComponentTransferFunctionElement_get_intercept, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGComponentTransferFunctionElement_get_intercept, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGComponentTransferFunctionElement_get_intercept, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGComponentTransferFunctionElement_get_intercept, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGComponentTransferFunctionElement_get_amplitude = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGComponentTransferFunctionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "amplitude"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.amplitude; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGComponentTransferFunctionElement_get_amplitude, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGComponentTransferFunctionElement_get_amplitude, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGComponentTransferFunctionElement_get_amplitude, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGComponentTransferFunctionElement_get_amplitude, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGComponentTransferFunctionElement_get_exponent = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGComponentTransferFunctionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "exponent"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.exponent; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGComponentTransferFunctionElement_get_exponent, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGComponentTransferFunctionElement_get_exponent, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGComponentTransferFunctionElement_get_exponent, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGComponentTransferFunctionElement_get_exponent, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGComponentTransferFunctionElement_get_offset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGComponentTransferFunctionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "offset"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.offset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGComponentTransferFunctionElement_get_offset, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGComponentTransferFunctionElement_get_offset, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGComponentTransferFunctionElement_get_offset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGComponentTransferFunctionElement_get_offset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGClipPathElement_get_clipPathUnits = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGClipPathElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "clipPathUnits"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGClipPathElement_get_clipPathUnits, this =>", this + '', ", result =>", result + '', info); - } - return result; -} + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.clipPathUnits; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGClipPathElement_get_clipPathUnits, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGClipPathElement_get_clipPathUnits, 返回function'); + break + default: -this.SVGClipPathElement_get_transform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGClipPathElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "transform"); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGClipPathElement_get_transform, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGClipPathElement_get_clipPathUnits, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGCircleElement_get_cx = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGCircleElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cx"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cx; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGCircleElement_get_cx, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGCircleElement_get_cx, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGCircleElement_get_cx, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGCircleElement_get_cx, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGCircleElement_get_cy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGCircleElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cy"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGCircleElement_get_cy, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGCircleElement_get_cy, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGCircleElement_get_cy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGCircleElement_get_cy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGCircleElement_get_r = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGCircleElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "r"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.r; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGCircleElement_get_r, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGCircleElement_get_r, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGCircleElement_get_r, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGCircleElement_get_r, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGAnimationElement_get_targetElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "targetElement"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.targetElement; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_get_targetElement, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_get_targetElement, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimationElement_get_targetElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_get_targetElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGAnimationElement_get_onbegin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onbegin"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onbegin; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_get_onbegin, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_get_onbegin, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimationElement_get_onbegin, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_get_onbegin, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGAnimationElement_set_onbegin = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onbegin", val); - if (cbb_wf.is_log) { - console.log("[*] SVGAnimationElement_set_onbegin, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_set_onbegin, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_set_onbegin, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbegin = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_set_onbegin, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.SVGAnimationElement_get_onend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onend"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_get_onend, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_get_onend, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimationElement_get_onend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_get_onend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGAnimationElement_set_onend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onend", val); - if (cbb_wf.is_log) { - console.log("[*] SVGAnimationElement_set_onend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGAnimationElement_get_onrepeat = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onrepeat"); + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_set_onend, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_set_onend, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onend = val; + } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimationElement_get_onrepeat, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_set_onend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGAnimationElement_get_onrepeat = function () { + let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onrepeat; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_get_onrepeat, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_get_onrepeat, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_get_onrepeat, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.SVGAnimationElement_set_onrepeat = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onrepeat", val); - if (cbb_wf.is_log) { - console.log("[*] SVGAnimationElement_set_onrepeat, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGAnimationElement_get_requiredExtensions = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "requiredExtensions"); + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_set_onrepeat, set object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_set_onrepeat, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onrepeat = val; + } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimationElement_get_requiredExtensions, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_set_onrepeat, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGAnimationElement_get_requiredExtensions = function () { + let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.requiredExtensions; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_get_requiredExtensions, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_get_requiredExtensions, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_get_requiredExtensions, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGAnimationElement_get_systemLanguage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "systemLanguage"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.systemLanguage; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_get_systemLanguage, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_get_systemLanguage, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimationElement_get_systemLanguage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_get_systemLanguage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGAnimationElement_beginElement = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGAnimationElement_beginElement, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGAnimationElement_beginElementAt = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGAnimationElement_beginElementAt, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGAnimationElement_endElement = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGAnimationElement_endElement, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGAnimationElement_endElementAt = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGAnimationElement_endElementAt, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGAnimationElement_getCurrentTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGAnimationElement_getCurrentTime, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGAnimationElement_getSimpleDuration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGAnimationElement_getSimpleDuration, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGAnimationElement_getStartTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGAnimationElement_getStartTime, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGAnimatedTransformList_get_baseVal = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimatedTransformList"); + let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseVal"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.beginElement.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_beginElement, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_beginElement, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedTransformList_get_baseVal, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_beginElement, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.SVGAnimatedTransformList_get_animVal = function () { - // 非法调用 +this.SVGAnimationElement_beginElementAt = function () { + let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.beginElementAt.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_beginElementAt, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_beginElementAt, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_beginElementAt, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.SVGAnimationElement_endElement = function () { + let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.endElement.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_endElement, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_endElement, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_endElement, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.SVGAnimationElement_endElementAt = function () { + let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.endElementAt.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_endElementAt, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_endElementAt, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_endElementAt, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.SVGAnimationElement_getCurrentTime = function () { + let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getCurrentTime.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_getCurrentTime, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_getCurrentTime, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_getCurrentTime, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.SVGAnimationElement_getSimpleDuration = function () { + let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getSimpleDuration.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_getSimpleDuration, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_getSimpleDuration, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_getSimpleDuration, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.SVGAnimationElement_getStartTime = function () { + let r = cbb_wf.checkIllegal(this, "SVGAnimationElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getStartTime.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAnimationElement_getStartTime, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAnimationElement_getStartTime, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimationElement_getStartTime, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGAnimatedTransformList_get_baseVal = function () { let r = cbb_wf.checkIllegal(this, "SVGAnimatedTransformList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "animVal"); + + let result = cbb_wf.getValue(this, 'baseVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedTransformList_get_animVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedTransformList_get_baseVal, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SVGAnimatedTransformList_get_animVal = function () { + let r = cbb_wf.checkIllegal(this, "SVGAnimatedTransformList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'animVal'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedTransformList_get_animVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.SVGAnimatedString_get_baseVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedString"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.baseVal; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGAnimatedString_get_baseVal 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGAnimatedString_get_baseVal, 返回object'); break - case "function": - console.log("[*] SVGAnimatedString_get_baseVal 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGAnimatedString_get_baseVal, 返回function'); break default: - // string number - console.log("[*] SVGAnimatedString_get_baseVal 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedString_get_baseVal, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedString_get_baseVal, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGAnimatedString_set_baseVal = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimatedString"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.baseVal = val; - if (cbb_wf.is_log) { - console.log("[*] SVGAnimatedString_set_baseVal, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.SVGAnimatedString_get_animVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedString"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.animVal; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] SVGAnimatedString_get_animVal 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] SVGAnimatedString_set_baseVal, set object'); break - case "function": - console.log("[*] SVGAnimatedString_get_animVal 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] SVGAnimatedString_set_baseVal, set function'); break default: - // string number - console.log("[*] SVGAnimatedString_get_animVal 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.baseVal = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedString_set_baseVal, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SVGAnimatedString_get_animVal = function () { + let r = cbb_wf.checkIllegal(this, "SVGAnimatedString"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.animVal; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAnimatedString_get_animVal, 返回object'); break + case "function": + cbb_wf.console.log('[*] SVGAnimatedString_get_animVal, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedString_get_animVal, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedString_get_animVal, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGAnimatedRect_get_baseVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedRect"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseVal"); + + let result = cbb_wf.getValue(this, 'baseVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedRect_get_baseVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedRect_get_baseVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedRect_get_animVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedRect"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "animVal"); + + let result = cbb_wf.getValue(this, 'animVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedRect_get_animVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedRect_get_animVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedPreserveAspectRatio_get_baseVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedPreserveAspectRatio"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseVal"); + + let result = cbb_wf.getValue(this, 'baseVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedPreserveAspectRatio_get_baseVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedPreserveAspectRatio_get_baseVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedPreserveAspectRatio_get_animVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedPreserveAspectRatio"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "animVal"); + + let result = cbb_wf.getValue(this, 'animVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedPreserveAspectRatio_get_animVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedPreserveAspectRatio_get_animVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedNumberList_get_baseVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedNumberList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseVal"); + + let result = cbb_wf.getValue(this, 'baseVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedNumberList_get_baseVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedNumberList_get_baseVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedNumberList_get_animVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedNumberList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "animVal"); + + let result = cbb_wf.getValue(this, 'animVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedNumberList_get_animVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedNumberList_get_animVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedNumber_get_baseVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedNumber"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseVal"); + + let result = cbb_wf.getValue(this, 'baseVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedNumber_get_baseVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedNumber_get_baseVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedNumber_set_baseVal = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimatedNumber"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "baseVal", val); - if (cbb_wf.is_log) { - console.log("[*] SVGAnimatedNumber_set_baseVal, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGAnimatedNumber_get_animVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedNumber"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "animVal"); + cbb_wf.setValue(this, 'baseVal', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedNumber_get_animVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedNumber_set_baseVal, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SVGAnimatedNumber_get_animVal = function () { + let r = cbb_wf.checkIllegal(this, "SVGAnimatedNumber"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'animVal'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedNumber_get_animVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedLengthList_get_baseVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedLengthList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseVal"); + + let result = cbb_wf.getValue(this, 'baseVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedLengthList_get_baseVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedLengthList_get_baseVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedLengthList_get_animVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedLengthList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "animVal"); + + let result = cbb_wf.getValue(this, 'animVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedLengthList_get_animVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedLengthList_get_animVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedLength_get_baseVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedLength"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseVal"); + + let result = cbb_wf.getValue(this, 'baseVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedLength_get_baseVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedLength_get_baseVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedLength_get_animVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedLength"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "animVal"); + + let result = cbb_wf.getValue(this, 'animVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedLength_get_animVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedLength_get_animVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedInteger_get_baseVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedInteger"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseVal"); + + let result = cbb_wf.getValue(this, 'baseVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedInteger_get_baseVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedInteger_get_baseVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedInteger_set_baseVal = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimatedInteger"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "baseVal", val); - if (cbb_wf.is_log) { - console.log("[*] SVGAnimatedInteger_set_baseVal, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGAnimatedInteger_get_animVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedInteger"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "animVal"); + cbb_wf.setValue(this, 'baseVal', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedInteger_get_animVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedInteger_set_baseVal, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SVGAnimatedInteger_get_animVal = function () { + let r = cbb_wf.checkIllegal(this, "SVGAnimatedInteger"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'animVal'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedInteger_get_animVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedEnumeration_get_baseVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedEnumeration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseVal"); + + let result = cbb_wf.getValue(this, 'baseVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedEnumeration_get_baseVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedEnumeration_get_baseVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedEnumeration_set_baseVal = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimatedEnumeration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "baseVal", val); - if (cbb_wf.is_log) { - console.log("[*] SVGAnimatedEnumeration_set_baseVal, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGAnimatedEnumeration_get_animVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedEnumeration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "animVal"); + cbb_wf.setValue(this, 'baseVal', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedEnumeration_get_animVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedEnumeration_set_baseVal, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SVGAnimatedEnumeration_get_animVal = function () { + let r = cbb_wf.checkIllegal(this, "SVGAnimatedEnumeration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'animVal'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedEnumeration_get_animVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedBoolean_get_baseVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedBoolean"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseVal"); + + let result = cbb_wf.getValue(this, 'baseVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedBoolean_get_baseVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedBoolean_get_baseVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedBoolean_set_baseVal = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAnimatedBoolean"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "baseVal", val); - if (cbb_wf.is_log) { - console.log("[*] SVGAnimatedBoolean_set_baseVal, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGAnimatedBoolean_get_animVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedBoolean"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "animVal"); + cbb_wf.setValue(this, 'baseVal', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedBoolean_get_animVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedBoolean_set_baseVal, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SVGAnimatedBoolean_get_animVal = function () { + let r = cbb_wf.checkIllegal(this, "SVGAnimatedBoolean"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'animVal'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedBoolean_get_animVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedAngle_get_baseVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedAngle"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseVal"); + + let result = cbb_wf.getValue(this, 'baseVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedAngle_get_baseVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedAngle_get_baseVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAnimatedAngle_get_animVal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAnimatedAngle"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "animVal"); + + let result = cbb_wf.getValue(this, 'animVal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAnimatedAngle_get_animVal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAnimatedAngle_get_animVal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAngle_get_unitType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAngle"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "unitType"); + + let result = cbb_wf.getValue(this, 'unitType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAngle_get_unitType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAngle_get_unitType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAngle_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAngle"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "value"); + + let result = cbb_wf.getValue(this, 'value'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAngle_get_value, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAngle_get_value, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAngle_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAngle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "value", val); - if (cbb_wf.is_log) { - console.log("[*] SVGAngle_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SVGAngle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'value', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAngle_set_value, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SVGAngle_get_valueInSpecifiedUnits = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAngle"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "valueInSpecifiedUnits"); + + let result = cbb_wf.getValue(this, 'valueInSpecifiedUnits'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAngle_get_valueInSpecifiedUnits, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAngle_get_valueInSpecifiedUnits, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SVGAngle_set_valueInSpecifiedUnits = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAngle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "valueInSpecifiedUnits", val); - if (cbb_wf.is_log) { - console.log("[*] SVGAngle_set_valueInSpecifiedUnits, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGAngle_get_valueAsString = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAngle"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "valueAsString"); + cbb_wf.setValue(this, 'valueInSpecifiedUnits', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAngle_get_valueAsString, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAngle_set_valueInSpecifiedUnits, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SVGAngle_get_valueAsString = function () { + let r = cbb_wf.checkIllegal(this, "SVGAngle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'valueAsString'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAngle_get_valueAsString, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SVGAngle_set_valueAsString = function (val) { + let r = cbb_wf.checkIllegal(this, "SVGAngle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'valueAsString', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAngle_set_valueAsString, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SVGAngle_convertToSpecifiedUnits = function () { + let r = cbb_wf.checkIllegal(this, "SVGAngle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAngle_convertToSpecifiedUnits, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SVGAngle_newValueSpecifiedUnits = function () { + let r = cbb_wf.checkIllegal(this, "SVGAngle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAngle_newValueSpecifiedUnits, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.SVGAngle_set_valueAsString = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAngle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "valueAsString", val); - if (cbb_wf.is_log) { - console.log("[*] SVGAngle_set_valueAsString, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SVGAngle_convertToSpecifiedUnits = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAngle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGAngle_convertToSpecifiedUnits, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SVGAngle_newValueSpecifiedUnits = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SVGAngle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SVGAngle_newValueSpecifiedUnits, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.SVGAElement_get_target = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "target"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.target; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAElement_get_target, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAElement_get_target, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAElement_get_target, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAElement_get_target, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.SVGAElement_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SVGAElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "href"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] SVGAElement_get_href, 返回object'); + break + case "function": + cbb_wf.console.log('[*] SVGAElement_get_href, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SVGAElement_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SVGAElement_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - -this.Response_error = function () { -let r = cbb_wf.checkIllegal(this, "Response"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Response_error, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.Response_json = function () { -let r = cbb_wf.checkIllegal(this, "Response"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Response_json, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.Response_redirect = function () { -let r = cbb_wf.checkIllegal(this, "Response"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Response_redirect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} this.Response_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Response"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Response_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Response_get_url = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Response"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "url"); + + let result = cbb_wf.getValue(this, 'url'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Response_get_url, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_get_url, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Response_get_redirected = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Response"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "redirected"); + + let result = cbb_wf.getValue(this, 'redirected'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Response_get_redirected, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_get_redirected, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Response_get_status = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Response"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "status"); + + let result = cbb_wf.getValue(this, 'status'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Response_get_status, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_get_status, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Response_get_ok = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Response"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ok"); + + let result = cbb_wf.getValue(this, 'ok'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Response_get_ok, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_get_ok, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Response_get_statusText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Response"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "statusText"); + + let result = cbb_wf.getValue(this, 'statusText'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Response_get_statusText, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_get_statusText, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Response_get_headers = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Response"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "headers"); + + let result = cbb_wf.getValue(this, 'headers'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Response_get_headers, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_get_headers, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Response_get_body = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Response"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "body"); + + let result = cbb_wf.getValue(this, 'body'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Response_get_body, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_get_body, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Response_get_bodyUsed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Response"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "bodyUsed"); + + let result = cbb_wf.getValue(this, 'bodyUsed'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Response_get_bodyUsed, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_get_bodyUsed, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Response_arrayBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Response"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Response_arrayBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Response"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_arrayBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Response_blob = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Response"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Response_blob, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Response"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_blob, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Response_clone = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Response"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Response_clone, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Response"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_clone, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Response_formData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Response"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Response_formData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Response"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_formData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Response_json = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Response"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Response_json, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Response"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_json, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Response_text = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Response"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Response_text, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Response"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Response_text, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ResizeObserverSize_get_inlineSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ResizeObserverSize"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "inlineSize"); + + let result = cbb_wf.getValue(this, 'inlineSize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ResizeObserverSize_get_inlineSize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ResizeObserverSize_get_inlineSize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ResizeObserverSize_get_blockSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ResizeObserverSize"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "blockSize"); + + let result = cbb_wf.getValue(this, 'blockSize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ResizeObserverSize_get_blockSize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ResizeObserverSize_get_blockSize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ResizeObserverEntry_get_target = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ResizeObserverEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "target"); + + let result = cbb_wf.getValue(this, 'target'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ResizeObserverEntry_get_target, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ResizeObserverEntry_get_target, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ResizeObserverEntry_get_contentRect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ResizeObserverEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "contentRect"); + + let result = cbb_wf.getValue(this, 'contentRect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ResizeObserverEntry_get_contentRect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ResizeObserverEntry_get_contentRect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ResizeObserverEntry_get_contentBoxSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ResizeObserverEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "contentBoxSize"); + + let result = cbb_wf.getValue(this, 'contentBoxSize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ResizeObserverEntry_get_contentBoxSize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ResizeObserverEntry_get_contentBoxSize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ResizeObserverEntry_get_borderBoxSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ResizeObserverEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "borderBoxSize"); + + let result = cbb_wf.getValue(this, 'borderBoxSize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ResizeObserverEntry_get_borderBoxSize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ResizeObserverEntry_get_borderBoxSize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ResizeObserverEntry_get_devicePixelContentBoxSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ResizeObserverEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "devicePixelContentBoxSize"); + + let result = cbb_wf.getValue(this, 'devicePixelContentBoxSize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ResizeObserverEntry_get_devicePixelContentBoxSize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ResizeObserverEntry_get_devicePixelContentBoxSize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ResizeObserver_disconnect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ResizeObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ResizeObserver_disconnect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ResizeObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ResizeObserver_disconnect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ResizeObserver_observe = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ResizeObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ResizeObserver_observe, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ResizeObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ResizeObserver_observe, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ResizeObserver_unobserve = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ResizeObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ResizeObserver_unobserve, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ResizeObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ResizeObserver_unobserve, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Request_get_method = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "method"); + + let result = cbb_wf.getValue(this, 'method'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_method, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_method, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_get_url = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "url"); + + let result = cbb_wf.getValue(this, 'url'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_url, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_url, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_get_headers = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "headers"); + + let result = cbb_wf.getValue(this, 'headers'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_headers, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_headers, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_get_destination = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "destination"); + + let result = cbb_wf.getValue(this, 'destination'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_destination, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_destination, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_get_referrer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "referrer"); + + let result = cbb_wf.getValue(this, 'referrer'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_referrer, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_referrer, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_get_referrerPolicy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "referrerPolicy"); + + let result = cbb_wf.getValue(this, 'referrerPolicy'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_referrerPolicy, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_referrerPolicy, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_get_mode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mode"); + + let result = cbb_wf.getValue(this, 'mode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_mode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_mode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_get_credentials = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "credentials"); + + let result = cbb_wf.getValue(this, 'credentials'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_credentials, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_credentials, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_get_cache = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cache"); + + let result = cbb_wf.getValue(this, 'cache'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_cache, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_cache, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_get_redirect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "redirect"); + + let result = cbb_wf.getValue(this, 'redirect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_redirect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_redirect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_get_integrity = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "integrity"); + + let result = cbb_wf.getValue(this, 'integrity'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_integrity, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_integrity, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_get_keepalive = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "keepalive"); + + let result = cbb_wf.getValue(this, 'keepalive'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_keepalive, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_keepalive, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_get_signal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "signal"); + + let result = cbb_wf.getValue(this, 'signal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_signal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_signal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_get_isHistoryNavigation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "isHistoryNavigation"); + + let result = cbb_wf.getValue(this, 'isHistoryNavigation'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_isHistoryNavigation, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_isHistoryNavigation, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_get_bodyUsed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "bodyUsed"); + + let result = cbb_wf.getValue(this, 'bodyUsed'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_bodyUsed, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_get_bodyUsed, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Request_arrayBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Request"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Request_arrayBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Request"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_arrayBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Request_blob = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Request"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Request_blob, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Request"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_blob, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Request_clone = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Request"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Request_clone, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Request"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_clone, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Request_formData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Request"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Request_formData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Request"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_formData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Request_json = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Request"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Request_json, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Request"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_json, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Request_text = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Request"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Request_text, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Request_get_body = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Request"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "body"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_body, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Request_text, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.Request_get_targetAddressSpace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Request"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "targetAddressSpace"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Request_get_targetAddressSpace, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.ReportingObserver_disconnect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReportingObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReportingObserver_disconnect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ReportingObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReportingObserver_disconnect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ReportingObserver_observe = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReportingObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReportingObserver_observe, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ReportingObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReportingObserver_observe, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ReportingObserver_takeRecords = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReportingObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReportingObserver_takeRecords, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ReportingObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReportingObserver_takeRecords, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ReadableStreamDefaultReader_read = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStreamDefaultReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStreamDefaultReader_read, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ReadableStreamDefaultReader_releaseLock = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStreamDefaultReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStreamDefaultReader_releaseLock, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ReadableStreamDefaultReader_get_closed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ReadableStreamDefaultReader"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "closed"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ReadableStreamDefaultReader_get_closed, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamDefaultReader_read, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.ReadableStreamDefaultReader_cancel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStreamDefaultReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStreamDefaultReader_cancel, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - +this.ReadableStreamDefaultReader_releaseLock = function () { + let r = cbb_wf.checkIllegal(this, "ReadableStreamDefaultReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamDefaultReader_releaseLock, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ReadableStreamDefaultReader_get_closed = function () { + let r = cbb_wf.checkIllegal(this, "ReadableStreamDefaultReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'closed'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamDefaultReader_get_closed, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ReadableStreamDefaultReader_cancel = function () { + let r = cbb_wf.checkIllegal(this, "ReadableStreamDefaultReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamDefaultReader_cancel, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ReadableStreamDefaultController_get_desiredSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ReadableStreamDefaultController"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "desiredSize"); + + let result = cbb_wf.getValue(this, 'desiredSize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ReadableStreamDefaultController_get_desiredSize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamDefaultController_get_desiredSize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ReadableStreamDefaultController_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStreamDefaultController"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStreamDefaultController_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ReadableStreamDefaultController"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamDefaultController_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ReadableStreamDefaultController_enqueue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStreamDefaultController"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStreamDefaultController_enqueue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ReadableStreamDefaultController"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamDefaultController_enqueue, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ReadableStreamDefaultController_error = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStreamDefaultController"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStreamDefaultController_error, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ReadableStreamDefaultController"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamDefaultController_error, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ReadableStreamBYOBRequest_get_view = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ReadableStreamBYOBRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "view"); + + let result = cbb_wf.getValue(this, 'view'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ReadableStreamBYOBRequest_get_view, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamBYOBRequest_get_view, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ReadableStreamBYOBRequest_respond = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStreamBYOBRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStreamBYOBRequest_respond, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ReadableStreamBYOBRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamBYOBRequest_respond, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ReadableStreamBYOBRequest_respondWithNewView = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStreamBYOBRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStreamBYOBRequest_respondWithNewView, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ReadableStreamBYOBRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamBYOBRequest_respondWithNewView, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ReadableStreamBYOBReader_read = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStreamBYOBReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStreamBYOBReader_read, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ReadableStreamBYOBReader_releaseLock = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStreamBYOBReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStreamBYOBReader_releaseLock, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ReadableStreamBYOBReader_get_closed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ReadableStreamBYOBReader"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "closed"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ReadableStreamBYOBReader_get_closed, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamBYOBReader_read, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.ReadableStreamBYOBReader_cancel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStreamBYOBReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStreamBYOBReader_cancel, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - +this.ReadableStreamBYOBReader_releaseLock = function () { + let r = cbb_wf.checkIllegal(this, "ReadableStreamBYOBReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamBYOBReader_releaseLock, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ReadableStreamBYOBReader_get_closed = function () { + let r = cbb_wf.checkIllegal(this, "ReadableStreamBYOBReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'closed'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamBYOBReader_get_closed, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ReadableStreamBYOBReader_cancel = function () { + let r = cbb_wf.checkIllegal(this, "ReadableStreamBYOBReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStreamBYOBReader_cancel, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ReadableStream_get_locked = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ReadableStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "locked"); + + let result = cbb_wf.getValue(this, 'locked'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ReadableStream_get_locked, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStream_get_locked, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ReadableStream_cancel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStream_cancel, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ReadableStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStream_cancel, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ReadableStream_getReader = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStream_getReader, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ReadableStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStream_getReader, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ReadableStream_pipeThrough = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStream_pipeThrough, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ReadableStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStream_pipeThrough, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ReadableStream_pipeTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStream_pipeTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ReadableStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStream_pipeTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ReadableStream_tee = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStream_tee, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ReadableStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.ReadableStream_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableStream_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableStream_tee, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } + return result; +} this.ReadableByteStreamController_get_byobRequest = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ReadableByteStreamController"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "byobRequest"); + + let result = cbb_wf.getValue(this, 'byobRequest'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ReadableByteStreamController_get_byobRequest, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableByteStreamController_get_byobRequest, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ReadableByteStreamController_get_desiredSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ReadableByteStreamController"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "desiredSize"); + + let result = cbb_wf.getValue(this, 'desiredSize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ReadableByteStreamController_get_desiredSize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableByteStreamController_get_desiredSize, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ReadableByteStreamController_close = function () { + let r = cbb_wf.checkIllegal(this, "ReadableByteStreamController"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableByteStreamController_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ReadableByteStreamController_enqueue = function () { + let r = cbb_wf.checkIllegal(this, "ReadableByteStreamController"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableByteStreamController_enqueue, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ReadableByteStreamController_error = function () { + let r = cbb_wf.checkIllegal(this, "ReadableByteStreamController"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ReadableByteStreamController_error, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.ReadableByteStreamController_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableByteStreamController"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableByteStreamController_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ReadableByteStreamController_enqueue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableByteStreamController"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableByteStreamController_enqueue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ReadableByteStreamController_error = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ReadableByteStreamController"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ReadableByteStreamController_error, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.Range_get_commonAncestorContainer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Range"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "commonAncestorContainer"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.commonAncestorContainer; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_get_commonAncestorContainer, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_get_commonAncestorContainer, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Range_get_commonAncestorContainer, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_get_commonAncestorContainer, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Range_cloneContents = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_cloneContents, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cloneContents.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_cloneContents, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_cloneContents, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_cloneContents, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_cloneRange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_cloneRange, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cloneRange.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_cloneRange, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_cloneRange, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_cloneRange, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_collapse = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_collapse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.collapse.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_collapse, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_collapse, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_collapse, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_compareBoundaryPoints = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_compareBoundaryPoints, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.compareBoundaryPoints.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_compareBoundaryPoints, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_compareBoundaryPoints, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_compareBoundaryPoints, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_comparePoint = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_comparePoint, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.comparePoint.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_comparePoint, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_comparePoint, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_comparePoint, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_createContextualFragment = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_createContextualFragment, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createContextualFragment.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_createContextualFragment, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_createContextualFragment, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_createContextualFragment, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_deleteContents = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_deleteContents, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.deleteContents.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_deleteContents, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_deleteContents, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_deleteContents, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_detach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_detach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.detach.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_detach, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_detach, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_detach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_expand = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_expand, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.expand.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_expand, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_expand, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_expand, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_extractContents = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_extractContents, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.extractContents.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_extractContents, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_extractContents, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_extractContents, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_getBoundingClientRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_getBoundingClientRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getBoundingClientRect.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_getBoundingClientRect, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_getBoundingClientRect, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_getBoundingClientRect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_getClientRects = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_getClientRects, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getClientRects.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_getClientRects, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_getClientRects, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_getClientRects, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_insertNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_insertNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.insertNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_insertNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_insertNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_insertNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_intersectsNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_intersectsNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.intersectsNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_intersectsNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_intersectsNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_intersectsNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_isPointInRange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_isPointInRange, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.isPointInRange.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_isPointInRange, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_isPointInRange, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_isPointInRange, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_selectNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_selectNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.selectNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_selectNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_selectNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_selectNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_selectNodeContents = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_selectNodeContents, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.selectNodeContents.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_selectNodeContents, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_selectNodeContents, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_selectNodeContents, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_setEnd = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_setEnd, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setEnd.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_setEnd, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_setEnd, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_setEnd, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_setEndAfter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_setEndAfter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setEndAfter.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_setEndAfter, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_setEndAfter, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_setEndAfter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_setEndBefore = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_setEndBefore, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setEndBefore.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_setEndBefore, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_setEndBefore, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_setEndBefore, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_setStart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_setStart, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setStart.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_setStart, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_setStart, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_setStart, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_setStartAfter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_setStartAfter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setStartAfter.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_setStartAfter, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_setStartAfter, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_setStartAfter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_setStartBefore = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_setStartBefore, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setStartBefore.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_setStartBefore, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_setStartBefore, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_setStartBefore, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_surroundContents = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_surroundContents, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.surroundContents.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_surroundContents, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_surroundContents, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_surroundContents, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Range_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Range"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Range_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Range"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.toString.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Range_toString, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Range_toString, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Range_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.RadioNodeList_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RadioNodeList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] RadioNodeList_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] RadioNodeList_get_value, 返回object'); break - case "function": - console.log("[*] RadioNodeList_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] RadioNodeList_get_value, 返回function'); break default: - // string number - console.log("[*] RadioNodeList_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RadioNodeList_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RadioNodeList_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.RadioNodeList_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RadioNodeList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] RadioNodeList_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "RadioNodeList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] RadioNodeList_set_value, set object'); + break + case "function": + cbb_wf.console.log('[*] RadioNodeList_set_value, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RadioNodeList_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.RTCTrackEvent_get_receiver = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCTrackEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "receiver"); + + let result = cbb_wf.getValue(this, 'receiver'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCTrackEvent_get_receiver, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCTrackEvent_get_receiver, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCTrackEvent_get_track = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCTrackEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "track"); + + let result = cbb_wf.getValue(this, 'track'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCTrackEvent_get_track, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCTrackEvent_get_track, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCTrackEvent_get_streams = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCTrackEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "streams"); + + let result = cbb_wf.getValue(this, 'streams'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCTrackEvent_get_streams, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCTrackEvent_get_streams, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCTrackEvent_get_transceiver = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCTrackEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "transceiver"); + + let result = cbb_wf.getValue(this, 'transceiver'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCTrackEvent_get_transceiver, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCTrackEvent_get_transceiver, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCStatsReport_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCStatsReport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + + let result = cbb_wf.getValue(this, 'size'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCStatsReport_get_size, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCStatsReport_get_size, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCStatsReport_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCStatsReport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCStatsReport_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCStatsReport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCStatsReport_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCStatsReport_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCStatsReport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCStatsReport_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCStatsReport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCStatsReport_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCStatsReport_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCStatsReport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCStatsReport_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCStatsReport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCStatsReport_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCStatsReport_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCStatsReport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCStatsReport_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCStatsReport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCStatsReport_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCStatsReport_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCStatsReport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCStatsReport_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCStatsReport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCStatsReport_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCStatsReport_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCStatsReport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCStatsReport_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCStatsReport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCStatsReport_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCSessionDescription_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCSessionDescription"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCSessionDescription_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCSessionDescription_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCSessionDescription_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCSessionDescription"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "type", val); - if (cbb_wf.is_log) { - console.log("[*] RTCSessionDescription_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.RTCSessionDescription_get_sdp = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCSessionDescription"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sdp"); + cbb_wf.setValue(this, 'type', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCSessionDescription_get_sdp, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCSessionDescription_set_type, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.RTCSessionDescription_get_sdp = function () { + let r = cbb_wf.checkIllegal(this, "RTCSessionDescription"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'sdp'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCSessionDescription_get_sdp, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCSessionDescription_set_sdp = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCSessionDescription"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "sdp", val); - if (cbb_wf.is_log) { - console.log("[*] RTCSessionDescription_set_sdp, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCSessionDescription"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'sdp', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCSessionDescription_set_sdp, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCSessionDescription_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCSessionDescription"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCSessionDescription_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCSessionDescription"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCSessionDescription_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCSctpTransport_get_transport = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCSctpTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "transport"); + + let result = cbb_wf.getValue(this, 'transport'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCSctpTransport_get_transport, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCSctpTransport_get_transport, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCSctpTransport_get_state = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCSctpTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "state"); + + let result = cbb_wf.getValue(this, 'state'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCSctpTransport_get_state, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCSctpTransport_get_state, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCSctpTransport_get_maxMessageSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCSctpTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "maxMessageSize"); + + let result = cbb_wf.getValue(this, 'maxMessageSize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCSctpTransport_get_maxMessageSize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCSctpTransport_get_maxMessageSize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCSctpTransport_get_maxChannels = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCSctpTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "maxChannels"); + + let result = cbb_wf.getValue(this, 'maxChannels'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCSctpTransport_get_maxChannels, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCSctpTransport_get_maxChannels, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCSctpTransport_get_onstatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCSctpTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onstatechange"); + + let result = cbb_wf.getValue(this, 'onstatechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCSctpTransport_get_onstatechange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCSctpTransport_get_onstatechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCSctpTransport_set_onstatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCSctpTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onstatechange", val); - if (cbb_wf.is_log) { - console.log("[*] RTCSctpTransport_set_onstatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCSctpTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onstatechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCSctpTransport_set_onstatechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCRtpTransceiver_get_mid = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mid"); + + let result = cbb_wf.getValue(this, 'mid'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpTransceiver_get_mid, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpTransceiver_get_mid, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCRtpTransceiver_get_sender = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sender"); + + let result = cbb_wf.getValue(this, 'sender'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpTransceiver_get_sender, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpTransceiver_get_sender, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCRtpTransceiver_get_receiver = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "receiver"); + + let result = cbb_wf.getValue(this, 'receiver'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpTransceiver_get_receiver, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpTransceiver_get_receiver, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCRtpTransceiver_get_stopped = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "stopped"); + + let result = cbb_wf.getValue(this, 'stopped'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpTransceiver_get_stopped, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpTransceiver_get_stopped, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCRtpTransceiver_get_direction = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "direction"); + + let result = cbb_wf.getValue(this, 'direction'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpTransceiver_get_direction, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpTransceiver_get_direction, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCRtpTransceiver_set_direction = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "direction", val); - if (cbb_wf.is_log) { - console.log("[*] RTCRtpTransceiver_set_direction, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.RTCRtpTransceiver_get_currentDirection = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "currentDirection"); + cbb_wf.setValue(this, 'direction', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpTransceiver_get_currentDirection, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpTransceiver_set_direction, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.RTCRtpTransceiver_get_currentDirection = function () { + let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'currentDirection'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpTransceiver_get_currentDirection, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCRtpTransceiver_setCodecPreferences = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpTransceiver_setCodecPreferences, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.RTCRtpTransceiver_stop = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpTransceiver_stop, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpTransceiver_setCodecPreferences, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } -this.RTCRtpTransceiver_getHeaderExtensionsToNegotiate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpTransceiver_getHeaderExtensionsToNegotiate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCRtpTransceiver_getNegotiatedHeaderExtensions = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpTransceiver_getNegotiatedHeaderExtensions, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCRtpTransceiver_setHeaderExtensionsToNegotiate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpTransceiver_setHeaderExtensionsToNegotiate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCRtpSender_getCapabilities = function () { -let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpSender_getCapabilities, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); + return result; } -return result; - +this.RTCRtpTransceiver_stop = function () { + let r = cbb_wf.checkIllegal(this, "RTCRtpTransceiver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpTransceiver_stop, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; } this.RTCRtpSender_get_track = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "track"); + + let result = cbb_wf.getValue(this, 'track'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpSender_get_track, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpSender_get_track, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCRtpSender_get_transport = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "transport"); + + let result = cbb_wf.getValue(this, 'transport'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpSender_get_transport, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpSender_get_transport, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCRtpSender_get_rtcpTransport = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rtcpTransport"); + + let result = cbb_wf.getValue(this, 'rtcpTransport'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpSender_get_rtcpTransport, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpSender_get_rtcpTransport, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCRtpSender_get_dtmf = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "dtmf"); + + let result = cbb_wf.getValue(this, 'dtmf'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpSender_get_dtmf, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpSender_get_dtmf, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCRtpSender_createEncodedStreams = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpSender_createEncodedStreams, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.RTCRtpSender_getParameters = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpSender_getParameters, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpSender_createEncodedStreams, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } -this.RTCRtpSender_getStats = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpSender_getStats, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCRtpSender_replaceTrack = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpSender_replaceTrack, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCRtpSender_setParameters = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpSender_setParameters, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCRtpSender_setStreams = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpSender_setStreams, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCRtpReceiver_getCapabilities = function () { -let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpReceiver_getCapabilities, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); + return result; } -return result; - +this.RTCRtpSender_getParameters = function () { + let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpSender_getParameters, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.RTCRtpSender_getStats = function () { + let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpSender_getStats, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.RTCRtpSender_replaceTrack = function () { + let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpSender_replaceTrack, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.RTCRtpSender_setParameters = function () { + let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpSender_setParameters, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.RTCRtpSender_setStreams = function () { + let r = cbb_wf.checkIllegal(this, "RTCRtpSender"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpSender_setStreams, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; } this.RTCRtpReceiver_get_track = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "track"); + + let result = cbb_wf.getValue(this, 'track'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpReceiver_get_track, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpReceiver_get_track, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCRtpReceiver_get_transport = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "transport"); + + let result = cbb_wf.getValue(this, 'transport'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpReceiver_get_transport, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpReceiver_get_transport, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCRtpReceiver_get_rtcpTransport = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rtcpTransport"); + + let result = cbb_wf.getValue(this, 'rtcpTransport'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpReceiver_get_rtcpTransport, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpReceiver_get_rtcpTransport, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCRtpReceiver_get_playoutDelayHint = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "playoutDelayHint"); + + let result = cbb_wf.getValue(this, 'playoutDelayHint'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpReceiver_get_playoutDelayHint, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpReceiver_get_playoutDelayHint, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCRtpReceiver_set_playoutDelayHint = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "playoutDelayHint", val); - if (cbb_wf.is_log) { - console.log("[*] RTCRtpReceiver_set_playoutDelayHint, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.RTCRtpReceiver_createEncodedStreams = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpReceiver_createEncodedStreams, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCRtpReceiver_getContributingSources = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpReceiver_getContributingSources, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCRtpReceiver_getParameters = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpReceiver_getParameters, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCRtpReceiver_getStats = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpReceiver_getStats, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCRtpReceiver_getSynchronizationSources = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCRtpReceiver_getSynchronizationSources, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCRtpReceiver_get_jitterBufferTarget = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "jitterBufferTarget"); + cbb_wf.setValue(this, 'playoutDelayHint', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCRtpReceiver_get_jitterBufferTarget, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpReceiver_set_playoutDelayHint, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.RTCRtpReceiver_createEncodedStreams = function () { + let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpReceiver_createEncodedStreams, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.RTCRtpReceiver_set_jitterBufferTarget = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "jitterBufferTarget", val); - if (cbb_wf.is_log) { - console.log("[*] RTCRtpReceiver_set_jitterBufferTarget, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; +this.RTCRtpReceiver_getContributingSources = function () { + let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpReceiver_getContributingSources, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.RTCRtpReceiver_getParameters = function () { + let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpReceiver_getParameters, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.RTCRtpReceiver_getStats = function () { + let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpReceiver_getStats, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.RTCRtpReceiver_getSynchronizationSources = function () { + let r = cbb_wf.checkIllegal(this, "RTCRtpReceiver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCRtpReceiver_getSynchronizationSources, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnectionIceEvent_get_candidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnectionIceEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "candidate"); + + let result = cbb_wf.getValue(this, 'candidate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnectionIceEvent_get_candidate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnectionIceEvent_get_candidate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnectionIceErrorEvent_get_address = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnectionIceErrorEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "address"); + + let result = cbb_wf.getValue(this, 'address'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnectionIceErrorEvent_get_address, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnectionIceErrorEvent_get_address, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnectionIceErrorEvent_get_port = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnectionIceErrorEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "port"); + + let result = cbb_wf.getValue(this, 'port'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnectionIceErrorEvent_get_port, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnectionIceErrorEvent_get_port, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnectionIceErrorEvent_get_hostCandidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnectionIceErrorEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "hostCandidate"); + + let result = cbb_wf.getValue(this, 'hostCandidate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnectionIceErrorEvent_get_hostCandidate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnectionIceErrorEvent_get_hostCandidate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnectionIceErrorEvent_get_url = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnectionIceErrorEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "url"); + + let result = cbb_wf.getValue(this, 'url'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnectionIceErrorEvent_get_url, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnectionIceErrorEvent_get_url, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnectionIceErrorEvent_get_errorCode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnectionIceErrorEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "errorCode"); + + let result = cbb_wf.getValue(this, 'errorCode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnectionIceErrorEvent_get_errorCode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnectionIceErrorEvent_get_errorCode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnectionIceErrorEvent_get_errorText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnectionIceErrorEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "errorText"); + + let result = cbb_wf.getValue(this, 'errorText'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnectionIceErrorEvent_get_errorText, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnectionIceErrorEvent_get_errorText, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.RTCPeerConnection_generateCertificate = function () { -let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_generateCertificate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} this.RTCPeerConnection_get_localDescription = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "localDescription"); + + let result = cbb_wf.getValue(this, 'localDescription'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_localDescription, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_localDescription, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_get_currentLocalDescription = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "currentLocalDescription"); + + let result = cbb_wf.getValue(this, 'currentLocalDescription'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_currentLocalDescription, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_currentLocalDescription, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_get_pendingLocalDescription = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pendingLocalDescription"); + + let result = cbb_wf.getValue(this, 'pendingLocalDescription'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_pendingLocalDescription, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_pendingLocalDescription, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_get_remoteDescription = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "remoteDescription"); + + let result = cbb_wf.getValue(this, 'remoteDescription'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_remoteDescription, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_remoteDescription, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_get_currentRemoteDescription = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "currentRemoteDescription"); + + let result = cbb_wf.getValue(this, 'currentRemoteDescription'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_currentRemoteDescription, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_currentRemoteDescription, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_get_pendingRemoteDescription = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pendingRemoteDescription"); + + let result = cbb_wf.getValue(this, 'pendingRemoteDescription'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_pendingRemoteDescription, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_pendingRemoteDescription, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_get_signalingState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "signalingState"); + + let result = cbb_wf.getValue(this, 'signalingState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_signalingState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_signalingState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_get_iceGatheringState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "iceGatheringState"); + + let result = cbb_wf.getValue(this, 'iceGatheringState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_iceGatheringState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_iceGatheringState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_get_iceConnectionState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "iceConnectionState"); + + let result = cbb_wf.getValue(this, 'iceConnectionState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_iceConnectionState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_iceConnectionState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_get_connectionState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "connectionState"); + + let result = cbb_wf.getValue(this, 'connectionState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_connectionState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_connectionState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_get_canTrickleIceCandidates = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "canTrickleIceCandidates"); + + let result = cbb_wf.getValue(this, 'canTrickleIceCandidates'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_canTrickleIceCandidates, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_canTrickleIceCandidates, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_get_onnegotiationneeded = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onnegotiationneeded"); + + let result = cbb_wf.getValue(this, 'onnegotiationneeded'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_onnegotiationneeded, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_onnegotiationneeded, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_set_onnegotiationneeded = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onnegotiationneeded", val); - if (cbb_wf.is_log) { - console.log("[*] RTCPeerConnection_set_onnegotiationneeded, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onnegotiationneeded', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_set_onnegotiationneeded, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCPeerConnection_get_onicecandidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onicecandidate"); + + let result = cbb_wf.getValue(this, 'onicecandidate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_onicecandidate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_onicecandidate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_set_onicecandidate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onicecandidate", val); - if (cbb_wf.is_log) { - console.log("[*] RTCPeerConnection_set_onicecandidate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onicecandidate', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_set_onicecandidate, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCPeerConnection_get_onsignalingstatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onsignalingstatechange"); + + let result = cbb_wf.getValue(this, 'onsignalingstatechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_onsignalingstatechange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_onsignalingstatechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_set_onsignalingstatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onsignalingstatechange", val); - if (cbb_wf.is_log) { - console.log("[*] RTCPeerConnection_set_onsignalingstatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onsignalingstatechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_set_onsignalingstatechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCPeerConnection_get_oniceconnectionstatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oniceconnectionstatechange"); + + let result = cbb_wf.getValue(this, 'oniceconnectionstatechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_oniceconnectionstatechange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_oniceconnectionstatechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_set_oniceconnectionstatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oniceconnectionstatechange", val); - if (cbb_wf.is_log) { - console.log("[*] RTCPeerConnection_set_oniceconnectionstatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'oniceconnectionstatechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_set_oniceconnectionstatechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCPeerConnection_get_onconnectionstatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onconnectionstatechange"); + + let result = cbb_wf.getValue(this, 'onconnectionstatechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_onconnectionstatechange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_onconnectionstatechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_set_onconnectionstatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onconnectionstatechange", val); - if (cbb_wf.is_log) { - console.log("[*] RTCPeerConnection_set_onconnectionstatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onconnectionstatechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_set_onconnectionstatechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCPeerConnection_get_onicegatheringstatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onicegatheringstatechange"); + + let result = cbb_wf.getValue(this, 'onicegatheringstatechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_onicegatheringstatechange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_onicegatheringstatechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_set_onicegatheringstatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onicegatheringstatechange", val); - if (cbb_wf.is_log) { - console.log("[*] RTCPeerConnection_set_onicegatheringstatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onicegatheringstatechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_set_onicegatheringstatechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCPeerConnection_get_onicecandidateerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onicecandidateerror"); + + let result = cbb_wf.getValue(this, 'onicecandidateerror'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_onicecandidateerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_onicecandidateerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_set_onicecandidateerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onicecandidateerror", val); - if (cbb_wf.is_log) { - console.log("[*] RTCPeerConnection_set_onicecandidateerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onicecandidateerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_set_onicecandidateerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCPeerConnection_get_ontrack = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ontrack"); + + let result = cbb_wf.getValue(this, 'ontrack'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_ontrack, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_ontrack, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_set_ontrack = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ontrack", val); - if (cbb_wf.is_log) { - console.log("[*] RTCPeerConnection_set_ontrack, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ontrack', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_set_ontrack, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCPeerConnection_get_sctp = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sctp"); + + let result = cbb_wf.getValue(this, 'sctp'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_sctp, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_sctp, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_get_ondatachannel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ondatachannel"); + + let result = cbb_wf.getValue(this, 'ondatachannel'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_ondatachannel, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_ondatachannel, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_set_ondatachannel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondatachannel", val); - if (cbb_wf.is_log) { - console.log("[*] RTCPeerConnection_set_ondatachannel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ondatachannel', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_set_ondatachannel, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCPeerConnection_get_onaddstream = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onaddstream"); + + let result = cbb_wf.getValue(this, 'onaddstream'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_onaddstream, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_onaddstream, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_set_onaddstream = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onaddstream", val); - if (cbb_wf.is_log) { - console.log("[*] RTCPeerConnection_set_onaddstream, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.RTCPeerConnection_get_onremovestream = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onremovestream"); + cbb_wf.setValue(this, 'onaddstream', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCPeerConnection_get_onremovestream, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_set_onaddstream, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.RTCPeerConnection_get_onremovestream = function () { + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onremovestream'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_get_onremovestream, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCPeerConnection_set_onremovestream = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onremovestream", val); - if (cbb_wf.is_log) { - console.log("[*] RTCPeerConnection_set_onremovestream, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onremovestream', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_set_onremovestream, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCPeerConnection_addIceCandidate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_addIceCandidate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_addIceCandidate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_addStream = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_addStream, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_addStream, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_addTrack = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_addTrack, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_addTrack, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_addTransceiver = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_addTransceiver, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_addTransceiver, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_createAnswer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_createAnswer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_createAnswer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_createDTMFSender = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_createDTMFSender, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_createDTMFSender, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_createDataChannel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_createDataChannel, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_createDataChannel, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_createOffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_createOffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_createOffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_getConfiguration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_getConfiguration, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_getConfiguration, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_getLocalStreams = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_getLocalStreams, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_getLocalStreams, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_getReceivers = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_getReceivers, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_getReceivers, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_getRemoteStreams = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_getRemoteStreams, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_getRemoteStreams, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_getSenders = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_getSenders, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_getSenders, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_getStats = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_getStats, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_getStats, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_getTransceivers = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_getTransceivers, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_getTransceivers, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_removeStream = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_removeStream, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_removeStream, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_removeTrack = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_removeTrack, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_removeTrack, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_restartIce = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_restartIce, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_restartIce, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_setConfiguration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_setConfiguration, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_setConfiguration, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_setLocalDescription = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_setLocalDescription, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_setLocalDescription, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCPeerConnection_setRemoteDescription = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCPeerConnection_setRemoteDescription, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCIceTransport_get_role = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); + let r = cbb_wf.checkIllegal(this, "RTCPeerConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "role"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceTransport_get_role, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCPeerConnection_setRemoteDescription, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.RTCIceTransport_get_state = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "state"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceTransport_get_state, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.RTCIceTransport_get_gatheringState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "gatheringState"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceTransport_get_gatheringState, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.RTCIceTransport_get_onstatechange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onstatechange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceTransport_get_onstatechange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.RTCIceTransport_set_onstatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onstatechange", val); - if (cbb_wf.is_log) { - console.log("[*] RTCIceTransport_set_onstatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.RTCIceTransport_get_ongatheringstatechange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ongatheringstatechange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceTransport_get_ongatheringstatechange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.RTCIceTransport_set_ongatheringstatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ongatheringstatechange", val); - if (cbb_wf.is_log) { - console.log("[*] RTCIceTransport_set_ongatheringstatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.RTCIceTransport_get_onselectedcandidatepairchange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onselectedcandidatepairchange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceTransport_get_onselectedcandidatepairchange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.RTCIceTransport_set_onselectedcandidatepairchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onselectedcandidatepairchange", val); - if (cbb_wf.is_log) { - console.log("[*] RTCIceTransport_set_onselectedcandidatepairchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.RTCIceTransport_getLocalCandidates = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCIceTransport_getLocalCandidates, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCIceTransport_getLocalParameters = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCIceTransport_getLocalParameters, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCIceTransport_getRemoteCandidates = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCIceTransport_getRemoteCandidates, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCIceTransport_getRemoteParameters = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCIceTransport_getRemoteParameters, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.RTCIceTransport_getSelectedCandidatePair = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCIceTransport_getSelectedCandidatePair, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.RTCIceCandidate_get_candidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "candidate"); + + let result = cbb_wf.getValue(this, 'candidate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_candidate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_get_candidate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCIceCandidate_get_sdpMid = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sdpMid"); + + let result = cbb_wf.getValue(this, 'sdpMid'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_sdpMid, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_get_sdpMid, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCIceCandidate_get_sdpMLineIndex = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sdpMLineIndex"); + + let result = cbb_wf.getValue(this, 'sdpMLineIndex'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_sdpMLineIndex, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_get_sdpMLineIndex, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCIceCandidate_get_foundation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "foundation"); + + let result = cbb_wf.getValue(this, 'foundation'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_foundation, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_get_foundation, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCIceCandidate_get_component = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "component"); + + let result = cbb_wf.getValue(this, 'component'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_component, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_get_component, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCIceCandidate_get_priority = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "priority"); + + let result = cbb_wf.getValue(this, 'priority'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_priority, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_get_priority, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCIceCandidate_get_address = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "address"); + + let result = cbb_wf.getValue(this, 'address'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_address, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_get_address, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCIceCandidate_get_protocol = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "protocol"); + + let result = cbb_wf.getValue(this, 'protocol'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_protocol, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_get_protocol, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCIceCandidate_get_port = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "port"); + + let result = cbb_wf.getValue(this, 'port'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_port, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_get_port, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCIceCandidate_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCIceCandidate_get_tcpType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "tcpType"); + + let result = cbb_wf.getValue(this, 'tcpType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_tcpType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_get_tcpType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCIceCandidate_get_relatedAddress = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "relatedAddress"); + + let result = cbb_wf.getValue(this, 'relatedAddress'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_relatedAddress, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_get_relatedAddress, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCIceCandidate_get_relatedPort = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "relatedPort"); + + let result = cbb_wf.getValue(this, 'relatedPort'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_relatedPort, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_get_relatedPort, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCIceCandidate_get_usernameFragment = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "usernameFragment"); + + let result = cbb_wf.getValue(this, 'usernameFragment'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_usernameFragment, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_get_usernameFragment, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.RTCIceCandidate_get_relayProtocol = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "relayProtocol"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_relayProtocol, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.RTCIceCandidate_get_url = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "url"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCIceCandidate_get_url, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.RTCIceCandidate_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCIceCandidate_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCIceCandidate"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceCandidate_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCErrorEvent_get_error = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCErrorEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "error"); + + let result = cbb_wf.getValue(this, 'error'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCErrorEvent_get_error, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCErrorEvent_get_error, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCError_get_errorDetail = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCError"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "errorDetail"); + + let result = cbb_wf.getValue(this, 'errorDetail'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCError_get_errorDetail, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCError_get_errorDetail, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCError_get_sdpLineNumber = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCError"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sdpLineNumber"); + + let result = cbb_wf.getValue(this, 'sdpLineNumber'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCError_get_sdpLineNumber, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCError_get_sdpLineNumber, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCError_get_httpRequestStatusCode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCError"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "httpRequestStatusCode"); + + let result = cbb_wf.getValue(this, 'httpRequestStatusCode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCError_get_httpRequestStatusCode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCError_get_httpRequestStatusCode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCError_get_sctpCauseCode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCError"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sctpCauseCode"); + + let result = cbb_wf.getValue(this, 'sctpCauseCode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCError_get_sctpCauseCode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCError_get_sctpCauseCode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCError_get_receivedAlert = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCError"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "receivedAlert"); + + let result = cbb_wf.getValue(this, 'receivedAlert'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCError_get_receivedAlert, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCError_get_receivedAlert, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCError_get_sentAlert = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCError"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sentAlert"); + + let result = cbb_wf.getValue(this, 'sentAlert'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCError_get_sentAlert, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCError_get_sentAlert, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCEncodedVideoFrame_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCEncodedVideoFrame"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCEncodedVideoFrame_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCEncodedVideoFrame_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCEncodedVideoFrame_get_timestamp = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCEncodedVideoFrame"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "timestamp"); + + let result = cbb_wf.getValue(this, 'timestamp'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCEncodedVideoFrame_get_timestamp, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCEncodedVideoFrame_get_timestamp, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCEncodedVideoFrame_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCEncodedVideoFrame"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "data"); + + let result = cbb_wf.getValue(this, 'data'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCEncodedVideoFrame_get_data, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCEncodedVideoFrame_get_data, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCEncodedVideoFrame_set_data = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCEncodedVideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "data", val); - if (cbb_wf.is_log) { - console.log("[*] RTCEncodedVideoFrame_set_data, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCEncodedVideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'data', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCEncodedVideoFrame_set_data, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCEncodedVideoFrame_getMetadata = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCEncodedVideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCEncodedVideoFrame_getMetadata, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCEncodedVideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCEncodedVideoFrame_getMetadata, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCEncodedVideoFrame_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCEncodedVideoFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCEncodedVideoFrame_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCEncodedVideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCEncodedVideoFrame_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCEncodedAudioFrame_get_timestamp = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCEncodedAudioFrame"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "timestamp"); + + let result = cbb_wf.getValue(this, 'timestamp'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCEncodedAudioFrame_get_timestamp, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCEncodedAudioFrame_get_timestamp, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCEncodedAudioFrame_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCEncodedAudioFrame"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "data"); + + let result = cbb_wf.getValue(this, 'data'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCEncodedAudioFrame_get_data, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCEncodedAudioFrame_get_data, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCEncodedAudioFrame_set_data = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCEncodedAudioFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "data", val); - if (cbb_wf.is_log) { - console.log("[*] RTCEncodedAudioFrame_set_data, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCEncodedAudioFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'data', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCEncodedAudioFrame_set_data, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCEncodedAudioFrame_getMetadata = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCEncodedAudioFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCEncodedAudioFrame_getMetadata, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCEncodedAudioFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCEncodedAudioFrame_getMetadata, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCEncodedAudioFrame_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCEncodedAudioFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCEncodedAudioFrame_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCEncodedAudioFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCEncodedAudioFrame_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCDtlsTransport_get_iceTransport = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDtlsTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "iceTransport"); + + let result = cbb_wf.getValue(this, 'iceTransport'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDtlsTransport_get_iceTransport, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDtlsTransport_get_iceTransport, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDtlsTransport_get_state = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDtlsTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "state"); + + let result = cbb_wf.getValue(this, 'state'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDtlsTransport_get_state, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDtlsTransport_get_state, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDtlsTransport_get_onstatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDtlsTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onstatechange"); + + let result = cbb_wf.getValue(this, 'onstatechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDtlsTransport_get_onstatechange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDtlsTransport_get_onstatechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDtlsTransport_set_onstatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDtlsTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onstatechange", val); - if (cbb_wf.is_log) { - console.log("[*] RTCDtlsTransport_set_onstatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.RTCDtlsTransport_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDtlsTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + cbb_wf.setValue(this, 'onstatechange', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDtlsTransport_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDtlsTransport_set_onstatechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.RTCDtlsTransport_get_onerror = function () { + let r = cbb_wf.checkIllegal(this, "RTCDtlsTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onerror'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDtlsTransport_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDtlsTransport_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDtlsTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] RTCDtlsTransport_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCDtlsTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDtlsTransport_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCDtlsTransport_getRemoteCertificates = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDtlsTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCDtlsTransport_getRemoteCertificates, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCDtlsTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDtlsTransport_getRemoteCertificates, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCDataChannelEvent_get_channel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannelEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "channel"); + + let result = cbb_wf.getValue(this, 'channel'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannelEvent_get_channel, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannelEvent_get_channel, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_get_label = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "label"); + + let result = cbb_wf.getValue(this, 'label'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_label, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_label, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_get_ordered = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ordered"); + + let result = cbb_wf.getValue(this, 'ordered'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_ordered, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_ordered, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_get_maxPacketLifeTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "maxPacketLifeTime"); + + let result = cbb_wf.getValue(this, 'maxPacketLifeTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_maxPacketLifeTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_maxPacketLifeTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_get_maxRetransmits = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "maxRetransmits"); + + let result = cbb_wf.getValue(this, 'maxRetransmits'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_maxRetransmits, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_maxRetransmits, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_get_protocol = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "protocol"); + + let result = cbb_wf.getValue(this, 'protocol'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_protocol, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_protocol, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_get_negotiated = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "negotiated"); + + let result = cbb_wf.getValue(this, 'negotiated'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_negotiated, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_negotiated, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "id"); + + let result = cbb_wf.getValue(this, 'id'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_id, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_id, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_get_readyState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "readyState"); + + let result = cbb_wf.getValue(this, 'readyState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_readyState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_readyState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_get_bufferedAmount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "bufferedAmount"); + + let result = cbb_wf.getValue(this, 'bufferedAmount'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_bufferedAmount, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_bufferedAmount, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_get_bufferedAmountLowThreshold = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "bufferedAmountLowThreshold"); + + let result = cbb_wf.getValue(this, 'bufferedAmountLowThreshold'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_bufferedAmountLowThreshold, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_bufferedAmountLowThreshold, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_set_bufferedAmountLowThreshold = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "bufferedAmountLowThreshold", val); - if (cbb_wf.is_log) { - console.log("[*] RTCDataChannel_set_bufferedAmountLowThreshold, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'bufferedAmountLowThreshold', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_set_bufferedAmountLowThreshold, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCDataChannel_get_onopen = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onopen"); + + let result = cbb_wf.getValue(this, 'onopen'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_onopen, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_onopen, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_set_onopen = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onopen", val); - if (cbb_wf.is_log) { - console.log("[*] RTCDataChannel_set_onopen, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onopen', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_set_onopen, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCDataChannel_get_onbufferedamountlow = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onbufferedamountlow"); + + let result = cbb_wf.getValue(this, 'onbufferedamountlow'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_onbufferedamountlow, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_onbufferedamountlow, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_set_onbufferedamountlow = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onbufferedamountlow", val); - if (cbb_wf.is_log) { - console.log("[*] RTCDataChannel_set_onbufferedamountlow, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onbufferedamountlow', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_set_onbufferedamountlow, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCDataChannel_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + + let result = cbb_wf.getValue(this, 'onerror'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] RTCDataChannel_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCDataChannel_get_onclosing = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onclosing"); + + let result = cbb_wf.getValue(this, 'onclosing'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_onclosing, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_onclosing, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_set_onclosing = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onclosing", val); - if (cbb_wf.is_log) { - console.log("[*] RTCDataChannel_set_onclosing, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onclosing', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_set_onclosing, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCDataChannel_get_onclose = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onclose"); + + let result = cbb_wf.getValue(this, 'onclose'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_onclose, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_onclose, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_set_onclose = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onclose", val); - if (cbb_wf.is_log) { - console.log("[*] RTCDataChannel_set_onclose, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onclose', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_set_onclose, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCDataChannel_get_onmessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmessage"); + + let result = cbb_wf.getValue(this, 'onmessage'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_onmessage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_onmessage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_set_onmessage = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmessage", val); - if (cbb_wf.is_log) { - console.log("[*] RTCDataChannel_set_onmessage, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onmessage', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_set_onmessage, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCDataChannel_get_binaryType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "binaryType"); + + let result = cbb_wf.getValue(this, 'binaryType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_binaryType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_binaryType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_set_binaryType = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "binaryType", val); - if (cbb_wf.is_log) { - console.log("[*] RTCDataChannel_set_binaryType, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.RTCDataChannel_get_reliable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "reliable"); + cbb_wf.setValue(this, 'binaryType', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDataChannel_get_reliable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_set_binaryType, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.RTCDataChannel_get_reliable = function () { + let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'reliable'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_get_reliable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDataChannel_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCDataChannel_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCDataChannel_send = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCDataChannel_send, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCDataChannel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDataChannel_send, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCDTMFToneChangeEvent_get_tone = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDTMFToneChangeEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "tone"); + + let result = cbb_wf.getValue(this, 'tone'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDTMFToneChangeEvent_get_tone, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDTMFToneChangeEvent_get_tone, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDTMFSender_get_ontonechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDTMFSender"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ontonechange"); + + let result = cbb_wf.getValue(this, 'ontonechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDTMFSender_get_ontonechange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDTMFSender_get_ontonechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDTMFSender_set_ontonechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDTMFSender"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ontonechange", val); - if (cbb_wf.is_log) { - console.log("[*] RTCDTMFSender_set_ontonechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RTCDTMFSender"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ontonechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDTMFSender_set_ontonechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RTCDTMFSender_get_canInsertDTMF = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDTMFSender"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "canInsertDTMF"); + + let result = cbb_wf.getValue(this, 'canInsertDTMF'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDTMFSender_get_canInsertDTMF, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDTMFSender_get_canInsertDTMF, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDTMFSender_get_toneBuffer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCDTMFSender"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "toneBuffer"); + + let result = cbb_wf.getValue(this, 'toneBuffer'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCDTMFSender_get_toneBuffer, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDTMFSender_get_toneBuffer, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCDTMFSender_insertDTMF = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCDTMFSender"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCDTMFSender_insertDTMF, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCDTMFSender"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCDTMFSender_insertDTMF, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RTCCertificate_get_expires = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RTCCertificate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "expires"); + + let result = cbb_wf.getValue(this, 'expires'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RTCCertificate_get_expires, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCCertificate_get_expires, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RTCCertificate_getFingerprints = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RTCCertificate"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RTCCertificate_getFingerprints, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RTCCertificate"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCCertificate_getFingerprints, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PromiseRejectionEvent_get_promise = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PromiseRejectionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "promise"); + + let result = cbb_wf.getValue(this, 'promise'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PromiseRejectionEvent_get_promise, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PromiseRejectionEvent_get_promise, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PromiseRejectionEvent_get_reason = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PromiseRejectionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "reason"); + + let result = cbb_wf.getValue(this, 'reason'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PromiseRejectionEvent_get_reason, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PromiseRejectionEvent_get_reason, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ProgressEvent_get_lengthComputable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ProgressEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lengthComputable"); + + let result = cbb_wf.getValue(this, 'lengthComputable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ProgressEvent_get_lengthComputable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ProgressEvent_get_lengthComputable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ProgressEvent_get_loaded = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ProgressEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "loaded"); + + let result = cbb_wf.getValue(this, 'loaded'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ProgressEvent_get_loaded, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ProgressEvent_get_loaded, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ProgressEvent_get_total = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ProgressEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "total"); + + let result = cbb_wf.getValue(this, 'total'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ProgressEvent_get_total, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ProgressEvent_get_total, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } -this.Profiler_get_sampleInterval = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Profiler"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "sampleInterval"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Profiler_get_sampleInterval, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Profiler_get_stopped = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Profiler"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "stopped"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Profiler_get_stopped, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Profiler_stop = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Profiler"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Profiler_stop, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.ProcessingInstruction_get_target = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ProcessingInstruction"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.target; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] ProcessingInstruction_get_target 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] ProcessingInstruction_get_target, 返回object'); break - case "function": - console.log("[*] ProcessingInstruction_get_target 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] ProcessingInstruction_get_target, 返回function'); break default: - // string number - console.log("[*] ProcessingInstruction_get_target 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ProcessingInstruction_get_target, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ProcessingInstruction_get_target, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.ProcessingInstruction_get_sheet = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ProcessingInstruction"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.sheet; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] ProcessingInstruction_get_sheet 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] ProcessingInstruction_get_sheet, 返回object'); break - case "function": - console.log("[*] ProcessingInstruction_get_sheet 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] ProcessingInstruction_get_sheet, 返回function'); break default: - // string number - console.log("[*] ProcessingInstruction_get_sheet 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ProcessingInstruction_get_sheet, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ProcessingInstruction_get_sheet, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.PopStateEvent_get_state = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PopStateEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "state"); + + let result = cbb_wf.getValue(this, 'state'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PopStateEvent_get_state, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PopStateEvent_get_state, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.PopStateEvent_get_hasUAVisualTransition = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PopStateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "hasUAVisualTransition"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PopStateEvent_get_hasUAVisualTransition, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.PointerEvent_get_pointerId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PointerEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pointerId"); + + let result = cbb_wf.getValue(this, 'pointerId'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PointerEvent_get_pointerId, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PointerEvent_get_pointerId, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PointerEvent_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PointerEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + + let result = cbb_wf.getValue(this, 'width'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PointerEvent_get_width, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PointerEvent_get_width, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PointerEvent_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PointerEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + + let result = cbb_wf.getValue(this, 'height'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PointerEvent_get_height, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PointerEvent_get_height, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PointerEvent_get_pressure = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PointerEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pressure"); + + let result = cbb_wf.getValue(this, 'pressure'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PointerEvent_get_pressure, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PointerEvent_get_pressure, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PointerEvent_get_tiltX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PointerEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "tiltX"); + + let result = cbb_wf.getValue(this, 'tiltX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PointerEvent_get_tiltX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PointerEvent_get_tiltX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PointerEvent_get_tiltY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PointerEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "tiltY"); + + let result = cbb_wf.getValue(this, 'tiltY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PointerEvent_get_tiltY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PointerEvent_get_tiltY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PointerEvent_get_azimuthAngle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PointerEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "azimuthAngle"); + + let result = cbb_wf.getValue(this, 'azimuthAngle'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PointerEvent_get_azimuthAngle, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PointerEvent_get_azimuthAngle, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PointerEvent_get_altitudeAngle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PointerEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "altitudeAngle"); + + let result = cbb_wf.getValue(this, 'altitudeAngle'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PointerEvent_get_altitudeAngle, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PointerEvent_get_altitudeAngle, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PointerEvent_get_tangentialPressure = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PointerEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "tangentialPressure"); + + let result = cbb_wf.getValue(this, 'tangentialPressure'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PointerEvent_get_tangentialPressure, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PointerEvent_get_tangentialPressure, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PointerEvent_get_twist = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PointerEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "twist"); + + let result = cbb_wf.getValue(this, 'twist'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PointerEvent_get_twist, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PointerEvent_get_twist, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PointerEvent_get_pointerType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PointerEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pointerType"); + + let result = cbb_wf.getValue(this, 'pointerType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PointerEvent_get_pointerType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PointerEvent_get_pointerType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PointerEvent_get_isPrimary = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PointerEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "isPrimary"); + + let result = cbb_wf.getValue(this, 'isPrimary'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PointerEvent_get_isPrimary, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PointerEvent_get_isPrimary, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PointerEvent_getCoalescedEvents = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PointerEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PointerEvent_getCoalescedEvents, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PointerEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PointerEvent_getCoalescedEvents, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PointerEvent_getPredictedEvents = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PointerEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PointerEvent_getPredictedEvents, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PointerEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PointerEvent_getPredictedEvents, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PluginArray_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PluginArray"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PluginArray_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PluginArray_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PluginArray_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PluginArray"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PluginArray_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PluginArray"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PluginArray_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PluginArray_namedItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PluginArray"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PluginArray_namedItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PluginArray"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PluginArray_namedItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PluginArray_refresh = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PluginArray"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PluginArray_refresh, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PluginArray"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PluginArray_refresh, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Plugin_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Plugin"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Plugin_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Plugin_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Plugin_get_filename = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Plugin"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "filename"); + + let result = cbb_wf.getValue(this, 'filename'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Plugin_get_filename, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Plugin_get_filename, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Plugin_get_description = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Plugin"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "description"); + + let result = cbb_wf.getValue(this, 'description'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Plugin_get_description, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Plugin_get_description, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Plugin_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Plugin"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Plugin_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Plugin_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Plugin_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Plugin"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Plugin_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Plugin"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Plugin_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Plugin_namedItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Plugin"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Plugin_namedItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.PictureInPictureWindow_get_width = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PictureInPictureWindow"); + let r = cbb_wf.checkIllegal(this, "Plugin"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PictureInPictureWindow_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Plugin_namedItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.PictureInPictureWindow_get_height = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PictureInPictureWindow"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "height"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PictureInPictureWindow_get_height, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.PictureInPictureWindow_get_onresize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PictureInPictureWindow"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onresize"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PictureInPictureWindow_get_onresize, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.PictureInPictureWindow_set_onresize = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PictureInPictureWindow"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onresize", val); - if (cbb_wf.is_log) { - console.log("[*] PictureInPictureWindow_set_onresize, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.PictureInPictureEvent_get_pictureInPictureWindow = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PictureInPictureEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "pictureInPictureWindow"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PictureInPictureEvent_get_pictureInPictureWindow, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.PerformanceTiming_get_navigationStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "navigationStart"); + + let result = cbb_wf.getValue(this, 'navigationStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_navigationStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_navigationStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_unloadEventStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "unloadEventStart"); + + let result = cbb_wf.getValue(this, 'unloadEventStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_unloadEventStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_unloadEventStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_unloadEventEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "unloadEventEnd"); + + let result = cbb_wf.getValue(this, 'unloadEventEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_unloadEventEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_unloadEventEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_redirectStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "redirectStart"); + + let result = cbb_wf.getValue(this, 'redirectStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_redirectStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_redirectStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_redirectEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "redirectEnd"); + + let result = cbb_wf.getValue(this, 'redirectEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_redirectEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_redirectEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_fetchStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fetchStart"); + + let result = cbb_wf.getValue(this, 'fetchStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_fetchStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_fetchStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_domainLookupStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "domainLookupStart"); + + let result = cbb_wf.getValue(this, 'domainLookupStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_domainLookupStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_domainLookupStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_domainLookupEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "domainLookupEnd"); + + let result = cbb_wf.getValue(this, 'domainLookupEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_domainLookupEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_domainLookupEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_connectStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "connectStart"); + + let result = cbb_wf.getValue(this, 'connectStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_connectStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_connectStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_connectEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "connectEnd"); + + let result = cbb_wf.getValue(this, 'connectEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_connectEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_connectEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_secureConnectionStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "secureConnectionStart"); + + let result = cbb_wf.getValue(this, 'secureConnectionStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_secureConnectionStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_secureConnectionStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_requestStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "requestStart"); + + let result = cbb_wf.getValue(this, 'requestStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_requestStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_requestStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_responseStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "responseStart"); + + let result = cbb_wf.getValue(this, 'responseStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_responseStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_responseStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_responseEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "responseEnd"); + + let result = cbb_wf.getValue(this, 'responseEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_responseEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_responseEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_domLoading = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "domLoading"); + + let result = cbb_wf.getValue(this, 'domLoading'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_domLoading, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_domLoading, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_domInteractive = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "domInteractive"); + + let result = cbb_wf.getValue(this, 'domInteractive'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_domInteractive, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_domInteractive, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_domContentLoadedEventStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "domContentLoadedEventStart"); + + let result = cbb_wf.getValue(this, 'domContentLoadedEventStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_domContentLoadedEventStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_domContentLoadedEventStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_domContentLoadedEventEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "domContentLoadedEventEnd"); + + let result = cbb_wf.getValue(this, 'domContentLoadedEventEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_domContentLoadedEventEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_domContentLoadedEventEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_domComplete = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "domComplete"); + + let result = cbb_wf.getValue(this, 'domComplete'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_domComplete, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_domComplete, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_loadEventStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "loadEventStart"); + + let result = cbb_wf.getValue(this, 'loadEventStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_loadEventStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_loadEventStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_get_loadEventEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "loadEventEnd"); + + let result = cbb_wf.getValue(this, 'loadEventEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceTiming_get_loadEventEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_get_loadEventEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceTiming_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceTiming_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PerformanceTiming"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceTiming_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PerformanceServerTiming_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceServerTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceServerTiming_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceServerTiming_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceServerTiming_get_duration = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceServerTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "duration"); + + let result = cbb_wf.getValue(this, 'duration'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceServerTiming_get_duration, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceServerTiming_get_duration, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceServerTiming_get_description = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceServerTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "description"); + + let result = cbb_wf.getValue(this, 'description'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceServerTiming_get_description, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceServerTiming_get_description, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceServerTiming_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceServerTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceServerTiming_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PerformanceServerTiming"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceServerTiming_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PerformanceResourceTiming_get_initiatorType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "initiatorType"); + + let result = cbb_wf.getValue(this, 'initiatorType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_initiatorType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_initiatorType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_nextHopProtocol = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "nextHopProtocol"); + + let result = cbb_wf.getValue(this, 'nextHopProtocol'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_nextHopProtocol, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_nextHopProtocol, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.PerformanceResourceTiming_get_deliveryType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "deliveryType"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_deliveryType, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.PerformanceResourceTiming_get_workerStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "workerStart"); + + let result = cbb_wf.getValue(this, 'workerStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_workerStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_workerStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_redirectStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "redirectStart"); + + let result = cbb_wf.getValue(this, 'redirectStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_redirectStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_redirectStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_redirectEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "redirectEnd"); + + let result = cbb_wf.getValue(this, 'redirectEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_redirectEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_redirectEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_fetchStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fetchStart"); + + let result = cbb_wf.getValue(this, 'fetchStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_fetchStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_fetchStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_domainLookupStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "domainLookupStart"); + + let result = cbb_wf.getValue(this, 'domainLookupStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_domainLookupStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_domainLookupStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_domainLookupEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "domainLookupEnd"); + + let result = cbb_wf.getValue(this, 'domainLookupEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_domainLookupEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_domainLookupEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_connectStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "connectStart"); + + let result = cbb_wf.getValue(this, 'connectStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_connectStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_connectStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_connectEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "connectEnd"); + + let result = cbb_wf.getValue(this, 'connectEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_connectEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_connectEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_secureConnectionStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "secureConnectionStart"); + + let result = cbb_wf.getValue(this, 'secureConnectionStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_secureConnectionStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_secureConnectionStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_requestStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "requestStart"); + + let result = cbb_wf.getValue(this, 'requestStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_requestStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_requestStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_responseStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "responseStart"); + + let result = cbb_wf.getValue(this, 'responseStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_responseStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_responseStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_responseEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "responseEnd"); + + let result = cbb_wf.getValue(this, 'responseEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_responseEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_responseEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_transferSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "transferSize"); + + let result = cbb_wf.getValue(this, 'transferSize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_transferSize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_transferSize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_encodedBodySize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "encodedBodySize"); + + let result = cbb_wf.getValue(this, 'encodedBodySize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_encodedBodySize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_encodedBodySize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_decodedBodySize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "decodedBodySize"); + + let result = cbb_wf.getValue(this, 'decodedBodySize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_decodedBodySize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_decodedBodySize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceResourceTiming_get_serverTiming = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "serverTiming"); + + let result = cbb_wf.getValue(this, 'serverTiming'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_serverTiming, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_get_serverTiming, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.PerformanceResourceTiming_get_responseStatus = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "responseStatus"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_responseStatus, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.PerformanceResourceTiming_get_firstInterimResponseStart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "firstInterimResponseStart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_firstInterimResponseStart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.PerformanceResourceTiming_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceResourceTiming_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.PerformanceResourceTiming_get_renderBlockingStatus = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceResourceTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "renderBlockingStatus"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceResourceTiming_get_renderBlockingStatus, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceResourceTiming_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - this.PerformanceObserverEntryList_getEntries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceObserverEntryList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceObserverEntryList_getEntries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PerformanceObserverEntryList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceObserverEntryList_getEntries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PerformanceObserverEntryList_getEntriesByName = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceObserverEntryList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceObserverEntryList_getEntriesByName, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PerformanceObserverEntryList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceObserverEntryList_getEntriesByName, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PerformanceObserverEntryList_getEntriesByType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceObserverEntryList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceObserverEntryList_getEntriesByType, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PerformanceObserverEntryList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceObserverEntryList_getEntriesByType, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PerformanceObserver_disconnect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceObserver_disconnect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PerformanceObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceObserver_disconnect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PerformanceObserver_observe = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceObserver_observe, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PerformanceObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceObserver_observe, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PerformanceObserver_takeRecords = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceObserver_takeRecords, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PerformanceObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceObserver_takeRecords, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PerformanceNavigationTiming_get_unloadEventStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceNavigationTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "unloadEventStart"); + + let result = cbb_wf.getValue(this, 'unloadEventStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigationTiming_get_unloadEventStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceNavigationTiming_get_unloadEventStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceNavigationTiming_get_unloadEventEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceNavigationTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "unloadEventEnd"); + + let result = cbb_wf.getValue(this, 'unloadEventEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigationTiming_get_unloadEventEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceNavigationTiming_get_unloadEventEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceNavigationTiming_get_domInteractive = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceNavigationTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "domInteractive"); + + let result = cbb_wf.getValue(this, 'domInteractive'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigationTiming_get_domInteractive, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceNavigationTiming_get_domInteractive, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceNavigationTiming_get_domContentLoadedEventStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceNavigationTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "domContentLoadedEventStart"); + + let result = cbb_wf.getValue(this, 'domContentLoadedEventStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigationTiming_get_domContentLoadedEventStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceNavigationTiming_get_domContentLoadedEventStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceNavigationTiming_get_domContentLoadedEventEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceNavigationTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "domContentLoadedEventEnd"); + + let result = cbb_wf.getValue(this, 'domContentLoadedEventEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigationTiming_get_domContentLoadedEventEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceNavigationTiming_get_domContentLoadedEventEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceNavigationTiming_get_domComplete = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceNavigationTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "domComplete"); + + let result = cbb_wf.getValue(this, 'domComplete'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigationTiming_get_domComplete, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceNavigationTiming_get_domComplete, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceNavigationTiming_get_loadEventStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceNavigationTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "loadEventStart"); + + let result = cbb_wf.getValue(this, 'loadEventStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigationTiming_get_loadEventStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceNavigationTiming_get_loadEventStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceNavigationTiming_get_loadEventEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceNavigationTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "loadEventEnd"); + + let result = cbb_wf.getValue(this, 'loadEventEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigationTiming_get_loadEventEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceNavigationTiming_get_loadEventEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceNavigationTiming_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceNavigationTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigationTiming_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceNavigationTiming_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceNavigationTiming_get_redirectCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceNavigationTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "redirectCount"); + + let result = cbb_wf.getValue(this, 'redirectCount'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigationTiming_get_redirectCount, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceNavigationTiming_get_redirectCount, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.PerformanceNavigationTiming_get_criticalCHRestart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceNavigationTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "criticalCHRestart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigationTiming_get_criticalCHRestart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.PerformanceNavigationTiming_get_activationStart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceNavigationTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "activationStart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigationTiming_get_activationStart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.PerformanceNavigationTiming_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceNavigationTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceNavigationTiming_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.PerformanceNavigationTiming_get_notRestoredReasons = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceNavigationTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "notRestoredReasons"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigationTiming_get_notRestoredReasons, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceNavigationTiming_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - this.PerformanceNavigation_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceNavigation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigation_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceNavigation_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceNavigation_get_redirectCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceNavigation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "redirectCount"); + + let result = cbb_wf.getValue(this, 'redirectCount'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceNavigation_get_redirectCount, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceNavigation_get_redirectCount, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceNavigation_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceNavigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceNavigation_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PerformanceNavigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceNavigation_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PerformanceMeasure_get_detail = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceMeasure"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "detail"); + + let result = cbb_wf.getValue(this, 'detail'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceMeasure_get_detail, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceMeasure_get_detail, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceMark_get_detail = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceMark"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "detail"); + + let result = cbb_wf.getValue(this, 'detail'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceMark_get_detail, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceMark_get_detail, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceLongTaskTiming_get_attribution = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceLongTaskTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "attribution"); + + let result = cbb_wf.getValue(this, 'attribution'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceLongTaskTiming_get_attribution, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceLongTaskTiming_get_attribution, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceLongTaskTiming_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceLongTaskTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceLongTaskTiming_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PerformanceLongTaskTiming"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceLongTaskTiming_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PerformanceEventTiming_get_processingStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceEventTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "processingStart"); + + let result = cbb_wf.getValue(this, 'processingStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceEventTiming_get_processingStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceEventTiming_get_processingStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceEventTiming_get_processingEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceEventTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "processingEnd"); + + let result = cbb_wf.getValue(this, 'processingEnd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceEventTiming_get_processingEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceEventTiming_get_processingEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceEventTiming_get_cancelable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceEventTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cancelable"); + + let result = cbb_wf.getValue(this, 'cancelable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceEventTiming_get_cancelable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceEventTiming_get_cancelable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceEventTiming_get_target = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceEventTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "target"); + + let result = cbb_wf.getValue(this, 'target'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceEventTiming_get_target, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceEventTiming_get_target, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.PerformanceEventTiming_get_interactionId = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceEventTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "interactionId"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceEventTiming_get_interactionId, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.PerformanceEventTiming_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceEventTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceEventTiming_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PerformanceEventTiming"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceEventTiming_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.PerformanceEventTiming_get_interactionId = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceEventTiming"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'interactionId'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceEventTiming_get_interactionId, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.PerformanceEntry_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceEntry_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceEntry_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceEntry_get_entryType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "entryType"); + + let result = cbb_wf.getValue(this, 'entryType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceEntry_get_entryType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceEntry_get_entryType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceEntry_get_startTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "startTime"); + + let result = cbb_wf.getValue(this, 'startTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceEntry_get_startTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceEntry_get_startTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceEntry_get_duration = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "duration"); + + let result = cbb_wf.getValue(this, 'duration'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceEntry_get_duration, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceEntry_get_duration, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceEntry_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceEntry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceEntry_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PerformanceEntry"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceEntry_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PerformanceElementTiming_get_renderTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceElementTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "renderTime"); + + let result = cbb_wf.getValue(this, 'renderTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceElementTiming_get_renderTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceElementTiming_get_renderTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceElementTiming_get_loadTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceElementTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "loadTime"); + + let result = cbb_wf.getValue(this, 'loadTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceElementTiming_get_loadTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceElementTiming_get_loadTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceElementTiming_get_intersectionRect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceElementTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "intersectionRect"); + + let result = cbb_wf.getValue(this, 'intersectionRect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceElementTiming_get_intersectionRect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceElementTiming_get_intersectionRect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceElementTiming_get_identifier = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceElementTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "identifier"); + + let result = cbb_wf.getValue(this, 'identifier'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceElementTiming_get_identifier, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceElementTiming_get_identifier, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceElementTiming_get_naturalWidth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceElementTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "naturalWidth"); + + let result = cbb_wf.getValue(this, 'naturalWidth'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceElementTiming_get_naturalWidth, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceElementTiming_get_naturalWidth, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceElementTiming_get_naturalHeight = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceElementTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "naturalHeight"); + + let result = cbb_wf.getValue(this, 'naturalHeight'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceElementTiming_get_naturalHeight, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceElementTiming_get_naturalHeight, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceElementTiming_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceElementTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "id"); + + let result = cbb_wf.getValue(this, 'id'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceElementTiming_get_id, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceElementTiming_get_id, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceElementTiming_get_element = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceElementTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "element"); + + let result = cbb_wf.getValue(this, 'element'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceElementTiming_get_element, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceElementTiming_get_element, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceElementTiming_get_url = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PerformanceElementTiming"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "url"); + + let result = cbb_wf.getValue(this, 'url'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceElementTiming_get_url, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceElementTiming_get_url, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PerformanceElementTiming_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceElementTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceElementTiming_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PerformanceElementTiming"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PerformanceElementTiming_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Performance_get_timeOrigin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Performance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "timeOrigin"); + + let result = cbb_wf.getValue(this, 'timeOrigin'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Performance_get_timeOrigin, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_get_timeOrigin, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Performance_get_onresourcetimingbufferfull = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Performance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onresourcetimingbufferfull"); + + let result = cbb_wf.getValue(this, 'onresourcetimingbufferfull'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Performance_get_onresourcetimingbufferfull, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_get_onresourcetimingbufferfull, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Performance_set_onresourcetimingbufferfull = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Performance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onresourcetimingbufferfull", val); - if (cbb_wf.is_log) { - console.log("[*] Performance_set_onresourcetimingbufferfull, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "Performance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onresourcetimingbufferfull', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_set_onresourcetimingbufferfull, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Performance_clearMarks = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Performance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Performance_clearMarks, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Performance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_clearMarks, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Performance_clearMeasures = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Performance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Performance_clearMeasures, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Performance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_clearMeasures, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Performance_clearResourceTimings = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Performance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Performance_clearResourceTimings, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Performance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_clearResourceTimings, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Performance_getEntries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Performance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Performance_getEntries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Performance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_getEntries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Performance_getEntriesByName = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Performance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Performance_getEntriesByName, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Performance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_getEntriesByName, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Performance_getEntriesByType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Performance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Performance_getEntriesByType, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Performance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_getEntriesByType, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Performance_mark = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Performance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Performance_mark, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Performance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_mark, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Performance_measure = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Performance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Performance_measure, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Performance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_measure, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Performance_now = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Performance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Performance_now, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Performance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_now, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Performance_setResourceTimingBufferSize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Performance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Performance_setResourceTimingBufferSize, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Performance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_setResourceTimingBufferSize, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Performance_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Performance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Performance_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Performance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Performance_get_timing = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Performance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "timing"); + + let result = cbb_wf.getValue(this, 'timing'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Performance_get_timing, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_get_timing, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Performance_get_navigation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Performance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "navigation"); + + let result = cbb_wf.getValue(this, 'navigation'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Performance_get_navigation, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_get_navigation, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Performance_get_memory = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Performance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "memory"); + + let result = cbb_wf.getValue(this, 'memory'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Performance_get_memory, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_get_memory, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Performance_get_eventCounts = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Performance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "eventCounts"); + + let result = cbb_wf.getValue(this, 'eventCounts'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Performance_get_eventCounts, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Performance_get_eventCounts, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Path2D_addPath = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Path2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Path2D_addPath, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Path2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Path2D_addPath, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Path2D_roundRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Path2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Path2D_roundRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Path2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Path2D_roundRect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Path2D_arc = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Path2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Path2D_arc, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Path2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Path2D_arc, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Path2D_arcTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Path2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Path2D_arcTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Path2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Path2D_arcTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Path2D_bezierCurveTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Path2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Path2D_bezierCurveTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Path2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Path2D_bezierCurveTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Path2D_closePath = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Path2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Path2D_closePath, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Path2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Path2D_closePath, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Path2D_ellipse = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Path2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Path2D_ellipse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Path2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Path2D_ellipse, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Path2D_lineTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Path2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Path2D_lineTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Path2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Path2D_lineTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Path2D_moveTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Path2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Path2D_moveTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Path2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Path2D_moveTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Path2D_quadraticCurveTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Path2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Path2D_quadraticCurveTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Path2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Path2D_quadraticCurveTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Path2D_rect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Path2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Path2D_rect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Path2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Path2D_rect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PannerNode_get_panningModel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "panningModel"); + + let result = cbb_wf.getValue(this, 'panningModel'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PannerNode_get_panningModel, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_get_panningModel, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PannerNode_set_panningModel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PannerNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "panningModel", val); - if (cbb_wf.is_log) { - console.log("[*] PannerNode_set_panningModel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PannerNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'panningModel', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_set_panningModel, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PannerNode_get_positionX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "positionX"); + + let result = cbb_wf.getValue(this, 'positionX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PannerNode_get_positionX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_get_positionX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PannerNode_get_positionY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "positionY"); + + let result = cbb_wf.getValue(this, 'positionY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PannerNode_get_positionY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_get_positionY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PannerNode_get_positionZ = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "positionZ"); + + let result = cbb_wf.getValue(this, 'positionZ'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PannerNode_get_positionZ, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_get_positionZ, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PannerNode_get_orientationX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "orientationX"); + + let result = cbb_wf.getValue(this, 'orientationX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PannerNode_get_orientationX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_get_orientationX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PannerNode_get_orientationY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "orientationY"); + + let result = cbb_wf.getValue(this, 'orientationY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PannerNode_get_orientationY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_get_orientationY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PannerNode_get_orientationZ = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "orientationZ"); + + let result = cbb_wf.getValue(this, 'orientationZ'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PannerNode_get_orientationZ, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_get_orientationZ, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PannerNode_get_distanceModel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "distanceModel"); + + let result = cbb_wf.getValue(this, 'distanceModel'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PannerNode_get_distanceModel, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_get_distanceModel, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PannerNode_set_distanceModel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PannerNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "distanceModel", val); - if (cbb_wf.is_log) { - console.log("[*] PannerNode_set_distanceModel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PannerNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'distanceModel', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_set_distanceModel, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PannerNode_get_refDistance = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "refDistance"); + + let result = cbb_wf.getValue(this, 'refDistance'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PannerNode_get_refDistance, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_get_refDistance, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PannerNode_set_refDistance = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PannerNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "refDistance", val); - if (cbb_wf.is_log) { - console.log("[*] PannerNode_set_refDistance, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PannerNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'refDistance', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_set_refDistance, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PannerNode_get_maxDistance = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "maxDistance"); + + let result = cbb_wf.getValue(this, 'maxDistance'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PannerNode_get_maxDistance, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_get_maxDistance, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PannerNode_set_maxDistance = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PannerNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "maxDistance", val); - if (cbb_wf.is_log) { - console.log("[*] PannerNode_set_maxDistance, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PannerNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'maxDistance', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_set_maxDistance, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PannerNode_get_rolloffFactor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rolloffFactor"); + + let result = cbb_wf.getValue(this, 'rolloffFactor'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PannerNode_get_rolloffFactor, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_get_rolloffFactor, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PannerNode_set_rolloffFactor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PannerNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "rolloffFactor", val); - if (cbb_wf.is_log) { - console.log("[*] PannerNode_set_rolloffFactor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PannerNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'rolloffFactor', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_set_rolloffFactor, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PannerNode_get_coneInnerAngle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "coneInnerAngle"); + + let result = cbb_wf.getValue(this, 'coneInnerAngle'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PannerNode_get_coneInnerAngle, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_get_coneInnerAngle, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PannerNode_set_coneInnerAngle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PannerNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "coneInnerAngle", val); - if (cbb_wf.is_log) { - console.log("[*] PannerNode_set_coneInnerAngle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PannerNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'coneInnerAngle', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_set_coneInnerAngle, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PannerNode_get_coneOuterAngle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "coneOuterAngle"); + + let result = cbb_wf.getValue(this, 'coneOuterAngle'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PannerNode_get_coneOuterAngle, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_get_coneOuterAngle, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PannerNode_set_coneOuterAngle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PannerNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "coneOuterAngle", val); - if (cbb_wf.is_log) { - console.log("[*] PannerNode_set_coneOuterAngle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.PannerNode_get_coneOuterGain = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PannerNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "coneOuterGain"); + cbb_wf.setValue(this, 'coneOuterAngle', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PannerNode_get_coneOuterGain, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_set_coneOuterAngle, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.PannerNode_get_coneOuterGain = function () { + let r = cbb_wf.checkIllegal(this, "PannerNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'coneOuterGain'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_get_coneOuterGain, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PannerNode_set_coneOuterGain = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PannerNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "coneOuterGain", val); - if (cbb_wf.is_log) { - console.log("[*] PannerNode_set_coneOuterGain, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PannerNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'coneOuterGain', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_set_coneOuterGain, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PannerNode_setOrientation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PannerNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PannerNode_setOrientation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PannerNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_setOrientation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PannerNode_setPosition = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PannerNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PannerNode_setPosition, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PannerNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PannerNode_setPosition, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PageTransitionEvent_get_persisted = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PageTransitionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "persisted"); + + let result = cbb_wf.getValue(this, 'persisted'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PageTransitionEvent_get_persisted, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PageTransitionEvent_get_persisted, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.OverconstrainedError_get_constraint = function () { - // 非法调用 +this.OverconstrainedError_get_name = function () { let r = cbb_wf.checkIllegal(this, "OverconstrainedError"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "constraint"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OverconstrainedError_get_constraint, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OverconstrainedError_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } +this.OverconstrainedError_get_message = function () { + let r = cbb_wf.checkIllegal(this, "OverconstrainedError"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'message'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OverconstrainedError_get_message, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.OverconstrainedError_get_constraint = function () { + let r = cbb_wf.checkIllegal(this, "OverconstrainedError"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'constraint'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OverconstrainedError_get_constraint, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.OscillatorNode_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OscillatorNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OscillatorNode_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OscillatorNode_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OscillatorNode_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OscillatorNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "type", val); - if (cbb_wf.is_log) { - console.log("[*] OscillatorNode_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OscillatorNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'type', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OscillatorNode_set_type, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OscillatorNode_get_frequency = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OscillatorNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "frequency"); + + let result = cbb_wf.getValue(this, 'frequency'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OscillatorNode_get_frequency, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OscillatorNode_get_frequency, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OscillatorNode_get_detune = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OscillatorNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "detune"); + + let result = cbb_wf.getValue(this, 'detune'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OscillatorNode_get_detune, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OscillatorNode_get_detune, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OscillatorNode_setPeriodicWave = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OscillatorNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OscillatorNode_setPeriodicWave, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OscillatorNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OscillatorNode_setPeriodicWave, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_get_canvas = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "canvas"); + + let result = cbb_wf.getValue(this, 'canvas'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_canvas, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_canvas, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_get_globalAlpha = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "globalAlpha"); + + let result = cbb_wf.getValue(this, 'globalAlpha'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_globalAlpha, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_globalAlpha, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_globalAlpha = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "globalAlpha", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_globalAlpha, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'globalAlpha', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_globalAlpha, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_globalCompositeOperation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "globalCompositeOperation"); + + let result = cbb_wf.getValue(this, 'globalCompositeOperation'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_globalCompositeOperation, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_globalCompositeOperation, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_globalCompositeOperation = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "globalCompositeOperation", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_globalCompositeOperation, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'globalCompositeOperation', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_globalCompositeOperation, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_filter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "filter"); + + let result = cbb_wf.getValue(this, 'filter'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_filter, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_filter, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_filter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "filter", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_filter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'filter', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_filter, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_imageSmoothingEnabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "imageSmoothingEnabled"); + + let result = cbb_wf.getValue(this, 'imageSmoothingEnabled'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_imageSmoothingEnabled, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_imageSmoothingEnabled, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_imageSmoothingEnabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "imageSmoothingEnabled", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_imageSmoothingEnabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'imageSmoothingEnabled', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_imageSmoothingEnabled, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_imageSmoothingQuality = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "imageSmoothingQuality"); + + let result = cbb_wf.getValue(this, 'imageSmoothingQuality'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_imageSmoothingQuality, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_imageSmoothingQuality, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_imageSmoothingQuality = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "imageSmoothingQuality", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_imageSmoothingQuality, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'imageSmoothingQuality', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_imageSmoothingQuality, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_strokeStyle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "strokeStyle"); + + let result = cbb_wf.getValue(this, 'strokeStyle'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_strokeStyle, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_strokeStyle, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_strokeStyle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "strokeStyle", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_strokeStyle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'strokeStyle', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_strokeStyle, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_fillStyle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fillStyle"); + + let result = cbb_wf.getValue(this, 'fillStyle'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_fillStyle, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_fillStyle, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_fillStyle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "fillStyle", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_fillStyle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'fillStyle', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_fillStyle, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_shadowOffsetX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shadowOffsetX"); + + let result = cbb_wf.getValue(this, 'shadowOffsetX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_shadowOffsetX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_shadowOffsetX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_shadowOffsetX = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "shadowOffsetX", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_shadowOffsetX, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'shadowOffsetX', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_shadowOffsetX, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_shadowOffsetY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shadowOffsetY"); + + let result = cbb_wf.getValue(this, 'shadowOffsetY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_shadowOffsetY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_shadowOffsetY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_shadowOffsetY = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "shadowOffsetY", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_shadowOffsetY, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'shadowOffsetY', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_shadowOffsetY, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_shadowBlur = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shadowBlur"); + + let result = cbb_wf.getValue(this, 'shadowBlur'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_shadowBlur, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_shadowBlur, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_shadowBlur = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "shadowBlur", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_shadowBlur, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'shadowBlur', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_shadowBlur, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_shadowColor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shadowColor"); + + let result = cbb_wf.getValue(this, 'shadowColor'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_shadowColor, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_shadowColor, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_shadowColor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "shadowColor", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_shadowColor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'shadowColor', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_shadowColor, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_lineWidth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lineWidth"); + + let result = cbb_wf.getValue(this, 'lineWidth'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_lineWidth, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_lineWidth, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_lineWidth = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "lineWidth", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_lineWidth, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'lineWidth', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_lineWidth, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_lineCap = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lineCap"); + + let result = cbb_wf.getValue(this, 'lineCap'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_lineCap, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_lineCap, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_lineCap = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "lineCap", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_lineCap, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'lineCap', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_lineCap, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_lineJoin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lineJoin"); + + let result = cbb_wf.getValue(this, 'lineJoin'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_lineJoin, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_lineJoin, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_lineJoin = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "lineJoin", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_lineJoin, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'lineJoin', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_lineJoin, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_miterLimit = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "miterLimit"); + + let result = cbb_wf.getValue(this, 'miterLimit'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_miterLimit, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_miterLimit, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_miterLimit = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "miterLimit", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_miterLimit, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'miterLimit', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_miterLimit, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_lineDashOffset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lineDashOffset"); + + let result = cbb_wf.getValue(this, 'lineDashOffset'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_lineDashOffset, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_lineDashOffset, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_lineDashOffset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "lineDashOffset", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_lineDashOffset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'lineDashOffset', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_lineDashOffset, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_font = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "font"); + + let result = cbb_wf.getValue(this, 'font'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_font, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_font, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_font = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "font", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_font, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'font', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_font, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_textAlign = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "textAlign"); + + let result = cbb_wf.getValue(this, 'textAlign'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_textAlign, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_textAlign, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_textAlign = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "textAlign", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_textAlign, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'textAlign', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_textAlign, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_textBaseline = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "textBaseline"); + + let result = cbb_wf.getValue(this, 'textBaseline'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_textBaseline, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_textBaseline, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_textBaseline = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "textBaseline", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_textBaseline, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'textBaseline', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_textBaseline, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_direction = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "direction"); + + let result = cbb_wf.getValue(this, 'direction'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_direction, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_direction, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_direction = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "direction", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_direction, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'direction', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_direction, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_fontKerning = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fontKerning"); + + let result = cbb_wf.getValue(this, 'fontKerning'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_fontKerning, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_fontKerning, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_fontKerning = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "fontKerning", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_fontKerning, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'fontKerning', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_fontKerning, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_fontStretch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fontStretch"); + + let result = cbb_wf.getValue(this, 'fontStretch'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_fontStretch, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_fontStretch, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_fontStretch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "fontStretch", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_fontStretch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'fontStretch', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_fontStretch, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_fontVariantCaps = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fontVariantCaps"); + + let result = cbb_wf.getValue(this, 'fontVariantCaps'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_fontVariantCaps, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_fontVariantCaps, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_fontVariantCaps = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "fontVariantCaps", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_fontVariantCaps, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'fontVariantCaps', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_fontVariantCaps, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_letterSpacing = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "letterSpacing"); + + let result = cbb_wf.getValue(this, 'letterSpacing'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_letterSpacing, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_letterSpacing, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_letterSpacing = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "letterSpacing", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_letterSpacing, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'letterSpacing', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_letterSpacing, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_get_textRendering = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "textRendering"); + + let result = cbb_wf.getValue(this, 'textRendering'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_textRendering, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_textRendering, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_textRendering = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "textRendering", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_textRendering, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.OffscreenCanvasRenderingContext2D_get_wordSpacing = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "wordSpacing"); + cbb_wf.setValue(this, 'textRendering', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvasRenderingContext2D_get_wordSpacing, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_textRendering, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.OffscreenCanvasRenderingContext2D_get_wordSpacing = function () { + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'wordSpacing'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_get_wordSpacing, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvasRenderingContext2D_set_wordSpacing = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "wordSpacing", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvasRenderingContext2D_set_wordSpacing, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'wordSpacing', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_set_wordSpacing, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvasRenderingContext2D_clip = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_clip, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_clip, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_createConicGradient = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_createConicGradient, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_createConicGradient, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_createImageData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_createImageData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_createImageData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_createLinearGradient = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_createLinearGradient, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_createLinearGradient, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_createPattern = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_createPattern, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_createPattern, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_createRadialGradient = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_createRadialGradient, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_createRadialGradient, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_drawImage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_drawImage, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_drawImage, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_fill = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_fill, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_fill, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_fillText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_fillText, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_fillText, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_getImageData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_getImageData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_getImageData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_getLineDash = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_getLineDash, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_getLineDash, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_getTransform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_getTransform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_getTransform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_isContextLost = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_isContextLost, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_isContextLost, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_isPointInPath = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_isPointInPath, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_isPointInPath, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_isPointInStroke = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_isPointInStroke, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_isPointInStroke, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_measureText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_measureText, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_measureText, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_putImageData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_putImageData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_putImageData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_reset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_reset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_reset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_roundRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_roundRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_roundRect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_save = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_save, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_save, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_scale = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_scale, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_scale, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_setLineDash = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_setLineDash, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_setLineDash, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_setTransform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_setTransform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_setTransform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_stroke = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_stroke, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_stroke, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_strokeText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_strokeText, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_strokeText, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_transform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_transform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_transform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_translate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_translate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_translate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_arc = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_arc, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_arc, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_arcTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_arcTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_arcTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_beginPath = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_beginPath, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_beginPath, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_bezierCurveTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_bezierCurveTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_bezierCurveTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_clearRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_clearRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_clearRect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_closePath = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_closePath, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_closePath, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_ellipse = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_ellipse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_ellipse, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_fillRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_fillRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_fillRect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_lineTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_lineTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_lineTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_moveTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_moveTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_moveTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_quadraticCurveTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_quadraticCurveTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_quadraticCurveTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_rect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_rect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_rect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_resetTransform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_resetTransform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_resetTransform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_restore = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_restore, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_restore, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_rotate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_rotate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_rotate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvasRenderingContext2D_strokeRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvasRenderingContext2D_strokeRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvasRenderingContext2D_strokeRect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvas_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + + let result = cbb_wf.getValue(this, 'width'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvas_get_width, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvas_get_width, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvas_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "width", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvas_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'width', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvas_set_width, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvas_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + + let result = cbb_wf.getValue(this, 'height'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvas_get_height, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvas_get_height, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvas_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "height", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvas_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'height', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvas_set_height, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvas_get_oncontextlost = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oncontextlost"); + + let result = cbb_wf.getValue(this, 'oncontextlost'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvas_get_oncontextlost, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvas_get_oncontextlost, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvas_set_oncontextlost = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncontextlost", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvas_set_oncontextlost, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.OffscreenCanvas_get_oncontextrestored = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oncontextrestored"); + cbb_wf.setValue(this, 'oncontextlost', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OffscreenCanvas_get_oncontextrestored, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvas_set_oncontextlost, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.OffscreenCanvas_get_oncontextrestored = function () { + let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'oncontextrestored'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvas_get_oncontextrestored, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OffscreenCanvas_set_oncontextrestored = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncontextrestored", val); - if (cbb_wf.is_log) { - console.log("[*] OffscreenCanvas_set_oncontextrestored, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'oncontextrestored', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvas_set_oncontextrestored, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.OffscreenCanvas_convertToBlob = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvas_convertToBlob, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvas_convertToBlob, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvas_getContext = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvas_getContext, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvas_getContext, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OffscreenCanvas_transferToImageBitmap = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OffscreenCanvas_transferToImageBitmap, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OffscreenCanvas"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OffscreenCanvas_transferToImageBitmap, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OfflineAudioContext_get_oncomplete = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OfflineAudioContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oncomplete"); + + let result = cbb_wf.getValue(this, 'oncomplete'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OfflineAudioContext_get_oncomplete, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OfflineAudioContext_get_oncomplete, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OfflineAudioContext_set_oncomplete = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OfflineAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncomplete", val); - if (cbb_wf.is_log) { - console.log("[*] OfflineAudioContext_set_oncomplete, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.OfflineAudioContext_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OfflineAudioContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + cbb_wf.setValue(this, 'oncomplete', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OfflineAudioContext_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OfflineAudioContext_set_oncomplete, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.OfflineAudioContext_get_length = function () { + let r = cbb_wf.checkIllegal(this, "OfflineAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'length'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OfflineAudioContext_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OfflineAudioContext_resume = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OfflineAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OfflineAudioContext_resume, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OfflineAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OfflineAudioContext_resume, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OfflineAudioContext_startRendering = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OfflineAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OfflineAudioContext_startRendering, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OfflineAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OfflineAudioContext_startRendering, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OfflineAudioContext_suspend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OfflineAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OfflineAudioContext_suspend, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OfflineAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OfflineAudioContext_suspend, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OfflineAudioCompletionEvent_get_renderedBuffer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OfflineAudioCompletionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "renderedBuffer"); + + let result = cbb_wf.getValue(this, 'renderedBuffer'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OfflineAudioCompletionEvent_get_renderedBuffer, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OfflineAudioCompletionEvent_get_renderedBuffer, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.NodeList_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NodeList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.entries.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] NodeList_entries 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] NodeList_entries 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] NodeList_entries 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NodeList_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.NodeList_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NodeList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.keys.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] NodeList_keys 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] NodeList_keys 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] NodeList_keys 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NodeList_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.NodeList_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NodeList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.values.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] NodeList_values 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] NodeList_values 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] NodeList_values 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NodeList_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.NodeList_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NodeList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.forEach.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] NodeList_forEach 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] NodeList_forEach 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] NodeList_forEach 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NodeList_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.NodeList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "NodeList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.length; - let type = typeof result; - switch (type) { + let result = dom_element.entries.apply(dom_element, arguments); + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] NodeList_get_length 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] NodeList_entries, 返回object'); break - case "function": - console.log("[*] NodeList_get_length 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] NodeList_entries, 返回function'); break default: - // string number - console.log("[*] NodeList_get_length 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NodeList_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NodeList_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.NodeList_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NodeList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.item.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] NodeList_item 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] NodeList_item 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] NodeList_item 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NodeList_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + +this.NodeList_keys = function () { + let r = cbb_wf.checkIllegal(this, "NodeList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.keys.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NodeList_keys, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NodeList_keys, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NodeList_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.NodeList_values = function () { + let r = cbb_wf.checkIllegal(this, "NodeList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.values.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NodeList_values, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NodeList_values, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NodeList_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.NodeList_forEach = function () { + let r = cbb_wf.checkIllegal(this, "NodeList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.forEach.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NodeList_forEach, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NodeList_forEach, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NodeList_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.NodeList_get_length = function () { + let r = cbb_wf.checkIllegal(this, "NodeList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.length; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NodeList_get_length, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NodeList_get_length, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NodeList_get_length, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} + +this.NodeList_item = function () { + let r = cbb_wf.checkIllegal(this, "NodeList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.item.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NodeList_item, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NodeList_item, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NodeList_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.NodeIterator_get_root = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "NodeIterator"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "root"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.root; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NodeIterator_get_root, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NodeIterator_get_root, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NodeIterator_get_root, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NodeIterator_get_root, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.NodeIterator_get_referenceNode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "NodeIterator"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "referenceNode"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.referenceNode; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NodeIterator_get_referenceNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NodeIterator_get_referenceNode, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NodeIterator_get_referenceNode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NodeIterator_get_referenceNode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.NodeIterator_get_pointerBeforeReferenceNode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "NodeIterator"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pointerBeforeReferenceNode"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.pointerBeforeReferenceNode; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NodeIterator_get_pointerBeforeReferenceNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NodeIterator_get_pointerBeforeReferenceNode, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NodeIterator_get_pointerBeforeReferenceNode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NodeIterator_get_pointerBeforeReferenceNode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.NodeIterator_get_whatToShow = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "NodeIterator"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "whatToShow"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.whatToShow; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NodeIterator_get_whatToShow, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NodeIterator_get_whatToShow, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NodeIterator_get_whatToShow, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NodeIterator_get_whatToShow, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.NodeIterator_get_filter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "NodeIterator"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "filter"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.filter; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NodeIterator_get_filter, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NodeIterator_get_filter, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NodeIterator_get_filter, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NodeIterator_get_filter, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.NodeIterator_detach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NodeIterator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NodeIterator_detach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "NodeIterator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.detach.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NodeIterator_detach, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NodeIterator_detach, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NodeIterator_detach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.NodeIterator_nextNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NodeIterator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NodeIterator_nextNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "NodeIterator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.nextNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NodeIterator_nextNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NodeIterator_nextNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NodeIterator_nextNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.NodeIterator_previousNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NodeIterator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NodeIterator_previousNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "NodeIterator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.previousNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NodeIterator_previousNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NodeIterator_previousNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NodeIterator_previousNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_get_nodeType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Node"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.nodeType; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Node_get_nodeType 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Node_get_nodeType, 返回object'); break - case "function": - console.log("[*] Node_get_nodeType 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Node_get_nodeType, 返回function'); break default: - // string number - console.log("[*] Node_get_nodeType 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_get_nodeType, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_get_nodeType, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Node_get_nodeName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Node"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.nodeName; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Node_get_nodeName 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Node_get_nodeName, 返回object'); break - case "function": - console.log("[*] Node_get_nodeName 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Node_get_nodeName, 返回function'); break default: - // string number - console.log("[*] Node_get_nodeName 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_get_nodeName, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_get_nodeName, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Node_get_baseURI = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Node"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.baseURI; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Node_get_baseURI 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Node_get_baseURI, 返回object'); break - case "function": - console.log("[*] Node_get_baseURI 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Node_get_baseURI, 返回function'); break default: - // string number - console.log("[*] Node_get_baseURI 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_get_baseURI, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_get_baseURI, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Node_get_isConnected = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Node"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.isConnected; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Node_get_isConnected 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Node_get_isConnected, 返回object'); break - case "function": - console.log("[*] Node_get_isConnected 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Node_get_isConnected, 返回function'); break default: - // string number - console.log("[*] Node_get_isConnected 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_get_isConnected, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_get_isConnected, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Node_get_ownerDocument = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Node"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.ownerDocument; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Node_get_ownerDocument 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Node_get_ownerDocument, 返回object'); break - case "function": - console.log("[*] Node_get_ownerDocument 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Node_get_ownerDocument, 返回function'); break default: - // string number - console.log("[*] Node_get_ownerDocument 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_get_ownerDocument, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_get_ownerDocument, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Node_get_parentNode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Node"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.parentNode; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Node_get_parentNode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Node_get_parentNode, 返回object'); break - case "function": - console.log("[*] Node_get_parentNode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Node_get_parentNode, 返回function'); break default: - // string number - console.log("[*] Node_get_parentNode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_get_parentNode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_get_parentNode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Node_get_parentElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Node"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.parentElement; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Node_get_parentElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Node_get_parentElement, 返回object'); break - case "function": - console.log("[*] Node_get_parentElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Node_get_parentElement, 返回function'); break default: - // string number - console.log("[*] Node_get_parentElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_get_parentElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_get_parentElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Node_get_childNodes = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Node"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.childNodes; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Node_get_childNodes 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Node_get_childNodes, 返回object'); break - case "function": - console.log("[*] Node_get_childNodes 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Node_get_childNodes, 返回function'); break default: - // string number - console.log("[*] Node_get_childNodes 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_get_childNodes, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_get_childNodes, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Node_get_firstChild = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Node"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.firstChild; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Node_get_firstChild 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Node_get_firstChild, 返回object'); break - case "function": - console.log("[*] Node_get_firstChild 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Node_get_firstChild, 返回function'); break default: - // string number - console.log("[*] Node_get_firstChild 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_get_firstChild, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_get_firstChild, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Node_get_lastChild = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Node"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.lastChild; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Node_get_lastChild 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Node_get_lastChild, 返回object'); break - case "function": - console.log("[*] Node_get_lastChild 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Node_get_lastChild, 返回function'); break default: - // string number - console.log("[*] Node_get_lastChild 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_get_lastChild, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_get_lastChild, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Node_get_previousSibling = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Node"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.previousSibling; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Node_get_previousSibling 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Node_get_previousSibling, 返回object'); break - case "function": - console.log("[*] Node_get_previousSibling 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Node_get_previousSibling, 返回function'); break default: - // string number - console.log("[*] Node_get_previousSibling 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_get_previousSibling, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_get_previousSibling, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Node_get_nextSibling = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Node"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.nextSibling; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Node_get_nextSibling 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Node_get_nextSibling, 返回object'); break - case "function": - console.log("[*] Node_get_nextSibling 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Node_get_nextSibling, 返回function'); break default: - // string number - console.log("[*] Node_get_nextSibling 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_get_nextSibling, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_get_nextSibling, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Node_get_nodeValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Node"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.nodeValue; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Node_get_nodeValue 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Node_get_nodeValue, 返回object'); break - case "function": - console.log("[*] Node_get_nodeValue 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Node_get_nodeValue, 返回function'); break default: - // string number - console.log("[*] Node_get_nodeValue 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_get_nodeValue, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_get_nodeValue, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Node_set_nodeValue = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.nodeValue = val; - if (cbb_wf.is_log) { - console.log("[*] Node_set_nodeValue, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Node_get_textContent = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Node"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.textContent; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Node_get_textContent 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Node_set_nodeValue, set object'); break - case "function": - console.log("[*] Node_get_textContent 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Node_set_nodeValue, set function'); break default: - // string number - console.log("[*] Node_get_textContent 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.nodeValue = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_set_nodeValue, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Node_get_textContent = function () { + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.textContent; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_get_textContent, 返回object'); break + case "function": + cbb_wf.console.log('[*] Node_get_textContent, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_get_textContent, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_get_textContent, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Node_set_textContent = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.textContent = val; - if (cbb_wf.is_log) { - console.log("[*] Node_set_textContent, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Node_set_textContent, set object'); + break + case "function": + cbb_wf.console.log('[*] Node_set_textContent, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.textContent = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_set_textContent, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.Node_appendChild = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.appendChild.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_appendChild 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_appendChild 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_appendChild 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_appendChild, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + // dom_element jsdom节点 + let result = dom_element.appendChild.apply(dom_element, arguments); + // result 是jsdom的对象, 我们要给他套个壳。 + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_appendChild, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_appendChild, 返回function'); + break + default: + // 如果是number或者boolean 我就不管了,直接返回出去 + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_appendChild, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_cloneNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.cloneNode.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_cloneNode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_cloneNode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_cloneNode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_cloneNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cloneNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_cloneNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_cloneNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_cloneNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_compareDocumentPosition = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.compareDocumentPosition.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_compareDocumentPosition 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_compareDocumentPosition 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_compareDocumentPosition 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_compareDocumentPosition, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.compareDocumentPosition.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_compareDocumentPosition, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_compareDocumentPosition, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_compareDocumentPosition, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_contains = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.contains.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_contains 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_contains 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_contains 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_contains, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.contains.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_contains, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_contains, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_contains, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_getRootNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getRootNode.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_getRootNode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_getRootNode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_getRootNode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_getRootNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getRootNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_getRootNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_getRootNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_getRootNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_hasChildNodes = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hasChildNodes.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_hasChildNodes 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_hasChildNodes 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_hasChildNodes 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_hasChildNodes, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hasChildNodes.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_hasChildNodes, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_hasChildNodes, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_hasChildNodes, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_insertBefore = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.insertBefore.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_insertBefore 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_insertBefore 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_insertBefore 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_insertBefore, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.insertBefore.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_insertBefore, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_insertBefore, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_insertBefore, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_isDefaultNamespace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.isDefaultNamespace.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_isDefaultNamespace 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_isDefaultNamespace 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_isDefaultNamespace 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_isDefaultNamespace, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.isDefaultNamespace.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_isDefaultNamespace, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_isDefaultNamespace, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_isDefaultNamespace, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_isEqualNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.isEqualNode.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_isEqualNode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_isEqualNode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_isEqualNode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_isEqualNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.isEqualNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_isEqualNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_isEqualNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_isEqualNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_isSameNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.isSameNode.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_isSameNode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_isSameNode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_isSameNode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_isSameNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.isSameNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_isSameNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_isSameNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_isSameNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_lookupNamespaceURI = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.lookupNamespaceURI.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_lookupNamespaceURI 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_lookupNamespaceURI 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_lookupNamespaceURI 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_lookupNamespaceURI, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.lookupNamespaceURI.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_lookupNamespaceURI, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_lookupNamespaceURI, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_lookupNamespaceURI, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_lookupPrefix = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.lookupPrefix.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_lookupPrefix 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_lookupPrefix 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_lookupPrefix 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_lookupPrefix, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.lookupPrefix.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_lookupPrefix, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_lookupPrefix, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_lookupPrefix, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_normalize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.normalize.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_normalize 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_normalize 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_normalize 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_normalize, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.normalize.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_normalize, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_normalize, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_normalize, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_removeChild = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.removeChild.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_removeChild 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_removeChild 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_removeChild 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_removeChild, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.removeChild.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_removeChild, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_removeChild, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_removeChild, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Node_replaceChild = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Node"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.replaceChild.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Node_replaceChild 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Node_replaceChild 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Node_replaceChild 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Node_replaceChild, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Node"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.replaceChild.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Node_replaceChild, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Node_replaceChild, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Node_replaceChild, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.NetworkInformation_get_onchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "NetworkInformation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onchange"); + + let result = cbb_wf.getValue(this, 'onchange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NetworkInformation_get_onchange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NetworkInformation_get_onchange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.NetworkInformation_set_onchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NetworkInformation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onchange", val); - if (cbb_wf.is_log) { - console.log("[*] NetworkInformation_set_onchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "NetworkInformation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NetworkInformation_set_onchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.NetworkInformation_get_effectiveType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "NetworkInformation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "effectiveType"); + + let result = cbb_wf.getValue(this, 'effectiveType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NetworkInformation_get_effectiveType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NetworkInformation_get_effectiveType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.NetworkInformation_get_rtt = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "NetworkInformation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rtt"); + + let result = cbb_wf.getValue(this, 'rtt'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NetworkInformation_get_rtt, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NetworkInformation_get_rtt, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.NetworkInformation_get_downlink = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "NetworkInformation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "downlink"); + + let result = cbb_wf.getValue(this, 'downlink'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NetworkInformation_get_downlink, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NetworkInformation_get_downlink, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.NetworkInformation_get_saveData = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "NetworkInformation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "saveData"); + + let result = cbb_wf.getValue(this, 'saveData'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NetworkInformation_get_saveData, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NetworkInformation_get_saveData, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.NavigatorUAData_get_brands = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigatorUAData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "brands"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigatorUAData_get_brands, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigatorUAData_get_mobile = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigatorUAData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "mobile"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigatorUAData_get_mobile, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigatorUAData_get_platform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigatorUAData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "platform"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigatorUAData_get_platform, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigatorUAData_getHighEntropyValues = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigatorUAData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NavigatorUAData_getHighEntropyValues, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.NavigatorUAData_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigatorUAData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NavigatorUAData_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.Navigator_get_vendorSub = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "vendorSub"); + + let result = cbb_wf.getValue(this, 'vendorSub'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_vendorSub, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_vendorSub, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_productSub = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "productSub"); + + let result = cbb_wf.getValue(this, 'productSub'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_productSub, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_productSub, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_vendor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "vendor"); + + let result = cbb_wf.getValue(this, 'vendor'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_vendor, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_vendor, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_maxTouchPoints = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "maxTouchPoints"); + + let result = cbb_wf.getValue(this, 'maxTouchPoints'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_maxTouchPoints, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_maxTouchPoints, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_scheduling = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "scheduling"); + + let result = cbb_wf.getValue(this, 'scheduling'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_scheduling, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_scheduling, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_userActivation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "userActivation"); + + let result = cbb_wf.getValue(this, 'userActivation'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_userActivation, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_userActivation, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_doNotTrack = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "doNotTrack"); + + let result = cbb_wf.getValue(this, 'doNotTrack'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_doNotTrack, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_doNotTrack, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_geolocation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "geolocation"); + + let result = cbb_wf.getValue(this, 'geolocation'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_geolocation, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_geolocation, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_connection = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "connection"); + + let result = cbb_wf.getValue(this, 'connection'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_connection, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_connection, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_plugins = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "plugins"); + + let result = cbb_wf.getValue(this, 'plugins'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_plugins, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_plugins, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_mimeTypes = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mimeTypes"); + + let result = cbb_wf.getValue(this, 'mimeTypes'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_mimeTypes, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_mimeTypes, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_pdfViewerEnabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pdfViewerEnabled"); + + let result = cbb_wf.getValue(this, 'pdfViewerEnabled'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_pdfViewerEnabled, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_pdfViewerEnabled, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_webkitTemporaryStorage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "webkitTemporaryStorage"); + + let result = cbb_wf.getValue(this, 'webkitTemporaryStorage'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_webkitTemporaryStorage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_webkitTemporaryStorage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_webkitPersistentStorage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "webkitPersistentStorage"); + + let result = cbb_wf.getValue(this, 'webkitPersistentStorage'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_webkitPersistentStorage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_webkitPersistentStorage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_windowControlsOverlay = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "windowControlsOverlay"); + + let result = cbb_wf.getValue(this, 'windowControlsOverlay'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_windowControlsOverlay, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_windowControlsOverlay, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_hardwareConcurrency = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "hardwareConcurrency"); + + let result = cbb_wf.getValue(this, 'hardwareConcurrency'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_hardwareConcurrency, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_hardwareConcurrency, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_cookieEnabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cookieEnabled"); + + let result = cbb_wf.getValue(this, 'cookieEnabled'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_cookieEnabled, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_cookieEnabled, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_appCodeName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "appCodeName"); + + let result = cbb_wf.getValue(this, 'appCodeName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_appCodeName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_appCodeName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_appName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "appName"); + + let result = cbb_wf.getValue(this, 'appName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_appName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_appName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_appVersion = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "appVersion"); + + let result = cbb_wf.getValue(this, 'appVersion'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_appVersion, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_appVersion, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_platform = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "platform"); + + let result = cbb_wf.getValue(this, 'platform'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_platform, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_platform, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_product = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "product"); + + let result = cbb_wf.getValue(this, 'product'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_product, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_product, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_userAgent = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "userAgent"); + + let result = cbb_wf.getValue(this, 'userAgent'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_userAgent, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_userAgent, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_language = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "language"); + + let result = cbb_wf.getValue(this, 'language'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_language, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_language, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_languages = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "languages"); + + let result = cbb_wf.getValue(this, 'languages'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_languages, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_languages, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_onLine = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onLine"); + + let result = cbb_wf.getValue(this, 'onLine'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_onLine, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_onLine, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_webdriver = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "webdriver"); + + let result = cbb_wf.getValue(this, 'webdriver'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_webdriver, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_webdriver, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_getGamepads = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_getGamepads, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_getGamepads, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_javaEnabled = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_javaEnabled, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_javaEnabled, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_sendBeacon = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_sendBeacon, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_sendBeacon, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_vibrate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_vibrate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_vibrate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_get_deprecatedRunAdAuctionEnforcesKAnonymity = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "deprecatedRunAdAuctionEnforcesKAnonymity"); + + let result = cbb_wf.getValue(this, 'deprecatedRunAdAuctionEnforcesKAnonymity'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_deprecatedRunAdAuctionEnforcesKAnonymity, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_deprecatedRunAdAuctionEnforcesKAnonymity, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } +this.Navigator_get_protectedAudience = function () { + let r = cbb_wf.checkIllegal(this, "Navigator"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'protectedAudience'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_protectedAudience, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.Navigator_get_bluetooth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "bluetooth"); + + let result = cbb_wf.getValue(this, 'bluetooth'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_bluetooth, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_bluetooth, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_storageBuckets = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "storageBuckets"); + + let result = cbb_wf.getValue(this, 'storageBuckets'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_storageBuckets, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_storageBuckets, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_clipboard = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "clipboard"); + + let result = cbb_wf.getValue(this, 'clipboard'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_clipboard, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_clipboard, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_credentials = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "credentials"); + + let result = cbb_wf.getValue(this, 'credentials'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_credentials, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_credentials, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_keyboard = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "keyboard"); + + let result = cbb_wf.getValue(this, 'keyboard'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_keyboard, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_keyboard, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_managed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "managed"); + + let result = cbb_wf.getValue(this, 'managed'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_managed, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_managed, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_mediaDevices = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mediaDevices"); + + let result = cbb_wf.getValue(this, 'mediaDevices'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_mediaDevices, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_mediaDevices, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_storage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "storage"); + + let result = cbb_wf.getValue(this, 'storage'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_storage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_storage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_serviceWorker = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "serviceWorker"); + + let result = cbb_wf.getValue(this, 'serviceWorker'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_serviceWorker, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_serviceWorker, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_virtualKeyboard = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "virtualKeyboard"); + + let result = cbb_wf.getValue(this, 'virtualKeyboard'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_virtualKeyboard, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_virtualKeyboard, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_wakeLock = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "wakeLock"); + + let result = cbb_wf.getValue(this, 'wakeLock'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_wakeLock, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_wakeLock, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_deviceMemory = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "deviceMemory"); + + let result = cbb_wf.getValue(this, 'deviceMemory'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_deviceMemory, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_deviceMemory, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_userAgentData = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "userAgentData"); + + let result = cbb_wf.getValue(this, 'userAgentData'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_userAgentData, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_userAgentData, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.Navigator_get_cookieDeprecationLabel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "cookieDeprecationLabel"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_cookieDeprecationLabel, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.Navigator_get_login = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "login"); + + let result = cbb_wf.getValue(this, 'login'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_login, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_login, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_ink = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ink"); + + let result = cbb_wf.getValue(this, 'ink'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_ink, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_ink, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_mediaCapabilities = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mediaCapabilities"); + + let result = cbb_wf.getValue(this, 'mediaCapabilities'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_mediaCapabilities, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_mediaCapabilities, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_hid = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "hid"); + + let result = cbb_wf.getValue(this, 'hid'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_hid, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_hid, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_locks = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "locks"); + + let result = cbb_wf.getValue(this, 'locks'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_locks, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_locks, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_gpu = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "gpu"); + + let result = cbb_wf.getValue(this, 'gpu'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_gpu, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_gpu, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_mediaSession = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mediaSession"); + + let result = cbb_wf.getValue(this, 'mediaSession'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_mediaSession, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_mediaSession, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_permissions = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "permissions"); + + let result = cbb_wf.getValue(this, 'permissions'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_permissions, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_permissions, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_presentation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "presentation"); + + let result = cbb_wf.getValue(this, 'presentation'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_presentation, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_presentation, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_usb = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "usb"); + + let result = cbb_wf.getValue(this, 'usb'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_usb, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_usb, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_xr = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "xr"); + + let result = cbb_wf.getValue(this, 'xr'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_xr, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_xr, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Navigator_get_serial = function () { - // 非法调用 + let r = cbb_wf.checkIllegal(this, "Navigator"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'serial'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] Navigator_get_serial, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Navigator_adAuctionComponents = function () { let r = cbb_wf.checkIllegal(this, "Navigator"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "serial"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigator_get_serial, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] Navigator_adAuctionComponents, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.Navigator_adAuctionComponents = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_adAuctionComponents, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.Navigator_runAdAuction = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_runAdAuction, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_runAdAuction, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_canLoadAdAuctionFencedFrame = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_canLoadAdAuctionFencedFrame, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_canLoadAdAuctionFencedFrame, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_canShare = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_canShare, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_canShare, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_share = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_share, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_share, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_clearAppBadge = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_clearAppBadge, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_clearAppBadge, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_getBattery = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_getBattery, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_getBattery, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_getUserMedia = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_getUserMedia, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_getUserMedia, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_requestMIDIAccess = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_requestMIDIAccess, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_requestMIDIAccess, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_requestMediaKeySystemAccess = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_requestMediaKeySystemAccess, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_requestMediaKeySystemAccess, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_setAppBadge = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_setAppBadge, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_setAppBadge, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_webkitGetUserMedia = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_webkitGetUserMedia, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_webkitGetUserMedia, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_clearOriginJoinedAdInterestGroups = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_clearOriginJoinedAdInterestGroups, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_clearOriginJoinedAdInterestGroups, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_createAuctionNonce = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_createAuctionNonce, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.Navigator_deprecatedReplaceInURN = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_deprecatedReplaceInURN, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Navigator_deprecatedURNToURL = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_deprecatedURNToURL, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Navigator_getInstalledRelatedApps = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_getInstalledRelatedApps, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_createAuctionNonce, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } + return result; +} this.Navigator_joinAdInterestGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_joinAdInterestGroup, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_joinAdInterestGroup, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_leaveAdInterestGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_leaveAdInterestGroup, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_leaveAdInterestGroup, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_updateAdInterestGroups = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_updateAdInterestGroups, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_updateAdInterestGroups, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Navigator_deprecatedReplaceInURN = function () { + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_deprecatedReplaceInURN, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Navigator_deprecatedURNToURL = function () { + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_deprecatedURNToURL, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Navigator_getInstalledRelatedApps = function () { + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_getInstalledRelatedApps, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_registerProtocolHandler = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_registerProtocolHandler, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Navigator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Navigator_registerProtocolHandler, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Navigator_unregisterProtocolHandler = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigator_unregisterProtocolHandler, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.NavigationTransition_get_navigationType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationTransition"); + let r = cbb_wf.checkIllegal(this, "Navigator"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "navigationType"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationTransition_get_navigationType, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationTransition_get_from = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationTransition"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "from"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationTransition_get_from, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationTransition_get_finished = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationTransition"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "finished"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationTransition_get_finished, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationHistoryEntry_get_key = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "key"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationHistoryEntry_get_key, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationHistoryEntry_get_id = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "id"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationHistoryEntry_get_id, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationHistoryEntry_get_url = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "url"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationHistoryEntry_get_url, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationHistoryEntry_get_index = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "index"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationHistoryEntry_get_index, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationHistoryEntry_get_sameDocument = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "sameDocument"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationHistoryEntry_get_sameDocument, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationHistoryEntry_get_ondispose = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondispose"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationHistoryEntry_get_ondispose, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationHistoryEntry_set_ondispose = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondispose", val); - if (cbb_wf.is_log) { - console.log("[*] NavigationHistoryEntry_set_ondispose, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.NavigationHistoryEntry_getState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NavigationHistoryEntry_getState, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.NavigationDestination_get_key = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationDestination"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "key"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationDestination_get_key, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationDestination_get_id = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationDestination"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "id"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationDestination_get_id, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationDestination_get_url = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationDestination"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "url"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationDestination_get_url, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationDestination_get_index = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationDestination"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "index"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationDestination_get_index, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationDestination_get_sameDocument = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationDestination"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "sameDocument"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationDestination_get_sameDocument, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationDestination_getState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationDestination"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NavigationDestination_getState, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.NavigationCurrentEntryChangeEvent_get_navigationType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationCurrentEntryChangeEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "navigationType"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationCurrentEntryChangeEvent_get_navigationType, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigationCurrentEntryChangeEvent_get_from = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationCurrentEntryChangeEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "from"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationCurrentEntryChangeEvent_get_from, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Navigation_get_currentEntry = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "currentEntry"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigation_get_currentEntry, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Navigation_get_transition = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "transition"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigation_get_transition, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Navigation_get_canGoBack = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "canGoBack"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigation_get_canGoBack, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Navigation_get_canGoForward = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "canGoForward"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigation_get_canGoForward, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Navigation_get_onnavigate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onnavigate"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigation_get_onnavigate, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Navigation_set_onnavigate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onnavigate", val); - if (cbb_wf.is_log) { - console.log("[*] Navigation_set_onnavigate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Navigation_get_onnavigatesuccess = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onnavigatesuccess"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigation_get_onnavigatesuccess, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Navigation_set_onnavigatesuccess = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onnavigatesuccess", val); - if (cbb_wf.is_log) { - console.log("[*] Navigation_set_onnavigatesuccess, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Navigation_get_onnavigateerror = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onnavigateerror"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigation_get_onnavigateerror, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Navigation_set_onnavigateerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onnavigateerror", val); - if (cbb_wf.is_log) { - console.log("[*] Navigation_set_onnavigateerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Navigation_get_oncurrententrychange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncurrententrychange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigation_get_oncurrententrychange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Navigation_set_oncurrententrychange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncurrententrychange", val); - if (cbb_wf.is_log) { - console.log("[*] Navigation_set_oncurrententrychange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Navigation_back = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigation_back, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Navigation_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigation_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Navigation_forward = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigation_forward, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Navigation_navigate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigation_navigate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Navigation_reload = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigation_reload, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Navigation_traverseTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigation_traverseTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Navigation_updateCurrentEntry = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Navigation_updateCurrentEntry, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Navigation_get_activation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Navigation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "activation"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Navigation_get_activation, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigateEvent_get_navigationType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "navigationType"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigateEvent_get_navigationType, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigateEvent_get_destination = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "destination"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigateEvent_get_destination, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigateEvent_get_canTransition = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "canTransition"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigateEvent_get_canTransition, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigateEvent_get_canIntercept = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "canIntercept"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigateEvent_get_canIntercept, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigateEvent_get_userInitiated = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "userInitiated"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigateEvent_get_userInitiated, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigateEvent_get_hashChange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "hashChange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigateEvent_get_hashChange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigateEvent_get_signal = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "signal"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigateEvent_get_signal, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigateEvent_get_formData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "formData"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigateEvent_get_formData, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigateEvent_get_downloadRequest = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "downloadRequest"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigateEvent_get_downloadRequest, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigateEvent_get_info = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "info"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigateEvent_get_info, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NavigateEvent_intercept = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NavigateEvent_intercept, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.NavigateEvent_scroll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NavigateEvent_scroll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.NavigateEvent_get_hasUAVisualTransition = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "hasUAVisualTransition"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigateEvent_get_hasUAVisualTransition, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] Navigator_unregisterProtocolHandler, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } this.NamedNodeMap_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.length; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] NamedNodeMap_get_length 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] NamedNodeMap_get_length, 返回object'); break - case "function": - console.log("[*] NamedNodeMap_get_length 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] NamedNodeMap_get_length, 返回function'); break default: - // string number - console.log("[*] NamedNodeMap_get_length 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NamedNodeMap_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NamedNodeMap_get_length, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.NamedNodeMap_getNamedItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getNamedItem.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] NamedNodeMap_getNamedItem 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] NamedNodeMap_getNamedItem 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] NamedNodeMap_getNamedItem 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NamedNodeMap_getNamedItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getNamedItem.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NamedNodeMap_getNamedItem, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NamedNodeMap_getNamedItem, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NamedNodeMap_getNamedItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.NamedNodeMap_getNamedItemNS = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getNamedItemNS.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] NamedNodeMap_getNamedItemNS 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] NamedNodeMap_getNamedItemNS 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] NamedNodeMap_getNamedItemNS 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NamedNodeMap_getNamedItemNS, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getNamedItemNS.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NamedNodeMap_getNamedItemNS, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NamedNodeMap_getNamedItemNS, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NamedNodeMap_getNamedItemNS, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.NamedNodeMap_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.item.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] NamedNodeMap_item 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] NamedNodeMap_item 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] NamedNodeMap_item 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NamedNodeMap_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.item.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NamedNodeMap_item, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NamedNodeMap_item, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NamedNodeMap_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.NamedNodeMap_removeNamedItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.removeNamedItem.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] NamedNodeMap_removeNamedItem 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] NamedNodeMap_removeNamedItem 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] NamedNodeMap_removeNamedItem 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NamedNodeMap_removeNamedItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.removeNamedItem.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NamedNodeMap_removeNamedItem, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NamedNodeMap_removeNamedItem, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NamedNodeMap_removeNamedItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.NamedNodeMap_removeNamedItemNS = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.removeNamedItemNS.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] NamedNodeMap_removeNamedItemNS 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] NamedNodeMap_removeNamedItemNS 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] NamedNodeMap_removeNamedItemNS 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NamedNodeMap_removeNamedItemNS, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.removeNamedItemNS.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NamedNodeMap_removeNamedItemNS, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NamedNodeMap_removeNamedItemNS, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NamedNodeMap_removeNamedItemNS, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.NamedNodeMap_setNamedItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setNamedItem.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] NamedNodeMap_setNamedItem 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] NamedNodeMap_setNamedItem 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] NamedNodeMap_setNamedItem 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NamedNodeMap_setNamedItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setNamedItem.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NamedNodeMap_setNamedItem, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NamedNodeMap_setNamedItem, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NamedNodeMap_setNamedItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.NamedNodeMap_setNamedItemNS = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setNamedItemNS.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] NamedNodeMap_setNamedItemNS 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] NamedNodeMap_setNamedItemNS 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] NamedNodeMap_setNamedItemNS 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NamedNodeMap_setNamedItemNS, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "NamedNodeMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setNamedItemNS.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] NamedNodeMap_setNamedItemNS, 返回object'); + break + case "function": + cbb_wf.console.log('[*] NamedNodeMap_setNamedItemNS, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NamedNodeMap_setNamedItemNS, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.MutationRecord_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MutationRecord"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] MutationRecord_get_type, 返回object'); + break + case "function": + cbb_wf.console.log('[*] MutationRecord_get_type, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MutationRecord_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationRecord_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.MutationRecord_get_target = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MutationRecord"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "target"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.target; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] MutationRecord_get_target, 返回object'); + break + case "function": + cbb_wf.console.log('[*] MutationRecord_get_target, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MutationRecord_get_target, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationRecord_get_target, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.MutationRecord_get_addedNodes = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MutationRecord"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "addedNodes"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.addedNodes; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] MutationRecord_get_addedNodes, 返回object'); + break + case "function": + cbb_wf.console.log('[*] MutationRecord_get_addedNodes, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MutationRecord_get_addedNodes, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationRecord_get_addedNodes, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.MutationRecord_get_removedNodes = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MutationRecord"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "removedNodes"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.removedNodes; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] MutationRecord_get_removedNodes, 返回object'); + break + case "function": + cbb_wf.console.log('[*] MutationRecord_get_removedNodes, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MutationRecord_get_removedNodes, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationRecord_get_removedNodes, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.MutationRecord_get_previousSibling = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MutationRecord"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "previousSibling"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.previousSibling; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] MutationRecord_get_previousSibling, 返回object'); + break + case "function": + cbb_wf.console.log('[*] MutationRecord_get_previousSibling, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MutationRecord_get_previousSibling, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationRecord_get_previousSibling, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.MutationRecord_get_nextSibling = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MutationRecord"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "nextSibling"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.nextSibling; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] MutationRecord_get_nextSibling, 返回object'); + break + case "function": + cbb_wf.console.log('[*] MutationRecord_get_nextSibling, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MutationRecord_get_nextSibling, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationRecord_get_nextSibling, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.MutationRecord_get_attributeName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MutationRecord"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "attributeName"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.attributeName; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] MutationRecord_get_attributeName, 返回object'); + break + case "function": + cbb_wf.console.log('[*] MutationRecord_get_attributeName, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MutationRecord_get_attributeName, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationRecord_get_attributeName, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.MutationRecord_get_attributeNamespace = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MutationRecord"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "attributeNamespace"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.attributeNamespace; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] MutationRecord_get_attributeNamespace, 返回object'); + break + case "function": + cbb_wf.console.log('[*] MutationRecord_get_attributeNamespace, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MutationRecord_get_attributeNamespace, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationRecord_get_attributeNamespace, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.MutationRecord_get_oldValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MutationRecord"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oldValue"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oldValue; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] MutationRecord_get_oldValue, 返回object'); + break + case "function": + cbb_wf.console.log('[*] MutationRecord_get_oldValue, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MutationRecord_get_oldValue, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationRecord_get_oldValue, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.MutationObserver_disconnect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MutationObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MutationObserver_disconnect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MutationObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.disconnect.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] MutationObserver_disconnect, 返回object'); + break + case "function": + cbb_wf.console.log('[*] MutationObserver_disconnect, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationObserver_disconnect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.MutationObserver_observe = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MutationObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MutationObserver_observe, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MutationObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.observe.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] MutationObserver_observe, 返回object'); + break + case "function": + cbb_wf.console.log('[*] MutationObserver_observe, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationObserver_observe, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.MutationObserver_takeRecords = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MutationObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MutationObserver_takeRecords, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MutationObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.takeRecords.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] MutationObserver_takeRecords, 返回object'); + break + case "function": + cbb_wf.console.log('[*] MutationObserver_takeRecords, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationObserver_takeRecords, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MutationEvent_get_relatedNode = function () { + let r = cbb_wf.checkIllegal(this, "MutationEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'relatedNode'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationEvent_get_relatedNode, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MutationEvent_get_prevValue = function () { + let r = cbb_wf.checkIllegal(this, "MutationEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'prevValue'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationEvent_get_prevValue, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MutationEvent_get_newValue = function () { + let r = cbb_wf.checkIllegal(this, "MutationEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'newValue'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationEvent_get_newValue, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MutationEvent_get_attrName = function () { + let r = cbb_wf.checkIllegal(this, "MutationEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'attrName'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationEvent_get_attrName, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MutationEvent_get_attrChange = function () { + let r = cbb_wf.checkIllegal(this, "MutationEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'attrChange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationEvent_get_attrChange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MutationEvent_initMutationEvent = function () { + let r = cbb_wf.checkIllegal(this, "MutationEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MutationEvent_initMutationEvent, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MouseEvent_get_screenX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "screenX"); + + let result = cbb_wf.getValue(this, 'screenX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_screenX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_screenX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_screenY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "screenY"); + + let result = cbb_wf.getValue(this, 'screenY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_screenY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_screenY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_clientX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "clientX"); + + let result = cbb_wf.getValue(this, 'clientX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_clientX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_clientX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_clientY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "clientY"); + + let result = cbb_wf.getValue(this, 'clientY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_clientY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_clientY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_ctrlKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ctrlKey"); + + let result = cbb_wf.getValue(this, 'ctrlKey'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_ctrlKey, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_ctrlKey, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_shiftKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shiftKey"); + + let result = cbb_wf.getValue(this, 'shiftKey'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_shiftKey, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_shiftKey, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_altKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "altKey"); + + let result = cbb_wf.getValue(this, 'altKey'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_altKey, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_altKey, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_metaKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "metaKey"); + + let result = cbb_wf.getValue(this, 'metaKey'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_metaKey, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_metaKey, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_button = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "button"); + + let result = cbb_wf.getValue(this, 'button'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_button, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_button, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_buttons = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "buttons"); + + let result = cbb_wf.getValue(this, 'buttons'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_buttons, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_buttons, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_relatedTarget = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "relatedTarget"); + + let result = cbb_wf.getValue(this, 'relatedTarget'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_relatedTarget, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_relatedTarget, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_pageX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pageX"); + + let result = cbb_wf.getValue(this, 'pageX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_pageX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_pageX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_pageY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pageY"); + + let result = cbb_wf.getValue(this, 'pageY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_pageY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_pageY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + + let result = cbb_wf.getValue(this, 'y'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_y, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_offsetX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "offsetX"); + + let result = cbb_wf.getValue(this, 'offsetX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_offsetX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_offsetX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_offsetY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "offsetY"); + + let result = cbb_wf.getValue(this, 'offsetY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_offsetY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_offsetY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_movementX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "movementX"); + + let result = cbb_wf.getValue(this, 'movementX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_movementX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_movementX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_movementY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "movementY"); + + let result = cbb_wf.getValue(this, 'movementY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_movementY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_movementY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_fromElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fromElement"); + + let result = cbb_wf.getValue(this, 'fromElement'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_fromElement, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_fromElement, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_toElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "toElement"); + + let result = cbb_wf.getValue(this, 'toElement'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_toElement, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_toElement, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_layerX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "layerX"); + + let result = cbb_wf.getValue(this, 'layerX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_layerX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_layerX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_get_layerY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MouseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "layerY"); + + let result = cbb_wf.getValue(this, 'layerY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MouseEvent_get_layerY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_get_layerY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MouseEvent_getModifierState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MouseEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MouseEvent_getModifierState, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MouseEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_getModifierState, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MouseEvent_initMouseEvent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MouseEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MouseEvent_initMouseEvent, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MouseEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MouseEvent_initMouseEvent, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MimeTypeArray_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MimeTypeArray"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MimeTypeArray_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MimeTypeArray_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MimeTypeArray_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MimeTypeArray"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MimeTypeArray_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MimeTypeArray"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MimeTypeArray_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MimeTypeArray_namedItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MimeTypeArray"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MimeTypeArray_namedItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MimeTypeArray"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MimeTypeArray_namedItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MimeType_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MimeType"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MimeType_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MimeType_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MimeType_get_suffixes = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MimeType"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "suffixes"); + + let result = cbb_wf.getValue(this, 'suffixes'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MimeType_get_suffixes, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MimeType_get_suffixes, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MimeType_get_description = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MimeType"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "description"); + + let result = cbb_wf.getValue(this, 'description'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MimeType_get_description, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MimeType_get_description, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MimeType_get_enabledPlugin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MimeType"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "enabledPlugin"); + + let result = cbb_wf.getValue(this, 'enabledPlugin'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MimeType_get_enabledPlugin, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MimeType_get_enabledPlugin, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MessagePort_get_onmessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MessagePort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmessage"); + + let result = cbb_wf.getValue(this, 'onmessage'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MessagePort_get_onmessage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessagePort_get_onmessage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MessagePort_set_onmessage = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MessagePort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmessage", val); - if (cbb_wf.is_log) { - console.log("[*] MessagePort_set_onmessage, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MessagePort_get_onmessageerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MessagePort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmessageerror"); + cbb_wf.setValue(this, 'onmessage', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MessagePort_get_onmessageerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessagePort_set_onmessage, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MessagePort_get_onmessageerror = function () { + let r = cbb_wf.checkIllegal(this, "MessagePort"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onmessageerror'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessagePort_get_onmessageerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MessagePort_set_onmessageerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MessagePort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmessageerror", val); - if (cbb_wf.is_log) { - console.log("[*] MessagePort_set_onmessageerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MessagePort"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onmessageerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessagePort_set_onmessageerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MessagePort_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MessagePort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MessagePort_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MessagePort"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessagePort_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MessagePort_postMessage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MessagePort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MessagePort_postMessage, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MessagePort"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessagePort_postMessage, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MessagePort_start = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MessagePort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MessagePort_start, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MessagePort"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessagePort_start, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MessageEvent_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MessageEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "data"); + + let result = cbb_wf.getValue(this, 'data'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MessageEvent_get_data, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessageEvent_get_data, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MessageEvent_get_origin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MessageEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "origin"); + + let result = cbb_wf.getValue(this, 'origin'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MessageEvent_get_origin, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessageEvent_get_origin, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MessageEvent_get_lastEventId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MessageEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lastEventId"); + + let result = cbb_wf.getValue(this, 'lastEventId'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MessageEvent_get_lastEventId, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessageEvent_get_lastEventId, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MessageEvent_get_source = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MessageEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "source"); + + let result = cbb_wf.getValue(this, 'source'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MessageEvent_get_source, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessageEvent_get_source, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MessageEvent_get_ports = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MessageEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ports"); + + let result = cbb_wf.getValue(this, 'ports'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MessageEvent_get_ports, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessageEvent_get_ports, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MessageEvent_get_userActivation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MessageEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "userActivation"); + + let result = cbb_wf.getValue(this, 'userActivation'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MessageEvent_get_userActivation, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessageEvent_get_userActivation, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MessageEvent_initMessageEvent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MessageEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MessageEvent_initMessageEvent, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MessageEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessageEvent_initMessageEvent, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MessageChannel_get_port1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MessageChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "port1"); + + let result = cbb_wf.getValue(this, 'port1'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MessageChannel_get_port1, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessageChannel_get_port1, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MessageChannel_get_port2 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MessageChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "port2"); + + let result = cbb_wf.getValue(this, 'port2'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MessageChannel_get_port2, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MessageChannel_get_port2, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.MediaStreamTrackVideoStats_get_deliveredFrames = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrackVideoStats"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "deliveredFrames"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrackVideoStats_get_deliveredFrames, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrackVideoStats_get_discardedFrames = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrackVideoStats"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "discardedFrames"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrackVideoStats_get_discardedFrames, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrackVideoStats_get_totalFrames = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrackVideoStats"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "totalFrames"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrackVideoStats_get_totalFrames, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrackVideoStats_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrackVideoStats"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStreamTrackVideoStats_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaStreamTrackProcessor_get_readable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrackProcessor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "readable"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrackProcessor_get_readable, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrackGenerator_get_writable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrackGenerator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "writable"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrackGenerator_get_writable, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.MediaStreamTrackEvent_get_track = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaStreamTrackEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "track"); + + let result = cbb_wf.getValue(this, 'track'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrackEvent_get_track, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrackEvent_get_track, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.MediaStreamTrack_get_kind = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "kind"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrack_get_kind, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrack_get_id = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "id"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrack_get_id, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrack_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrack_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrack_get_enabled = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "enabled"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrack_get_enabled, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrack_set_enabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "enabled", val); - if (cbb_wf.is_log) { - console.log("[*] MediaStreamTrack_set_enabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MediaStreamTrack_get_muted = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "muted"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrack_get_muted, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrack_get_onmute = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onmute"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrack_get_onmute, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrack_set_onmute = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmute", val); - if (cbb_wf.is_log) { - console.log("[*] MediaStreamTrack_set_onmute, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MediaStreamTrack_get_onunmute = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onunmute"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrack_get_onunmute, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrack_set_onunmute = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onunmute", val); - if (cbb_wf.is_log) { - console.log("[*] MediaStreamTrack_set_onunmute, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MediaStreamTrack_get_readyState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "readyState"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrack_get_readyState, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrack_get_onended = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onended"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrack_get_onended, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrack_set_onended = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onended", val); - if (cbb_wf.is_log) { - console.log("[*] MediaStreamTrack_set_onended, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MediaStreamTrack_get_stats = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "stats"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrack_get_stats, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrack_get_contentHint = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "contentHint"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrack_get_contentHint, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrack_set_contentHint = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "contentHint", val); - if (cbb_wf.is_log) { - console.log("[*] MediaStreamTrack_set_contentHint, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MediaStreamTrack_applyConstraints = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStreamTrack_applyConstraints, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaStreamTrack_clone = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStreamTrack_clone, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaStreamTrack_getCapabilities = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStreamTrack_getCapabilities, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaStreamTrack_getConstraints = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStreamTrack_getConstraints, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaStreamTrack_getSettings = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStreamTrack_getSettings, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaStreamTrack_stop = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStreamTrack_stop, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaStreamTrack_get_oncapturehandlechange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncapturehandlechange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamTrack_get_oncapturehandlechange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaStreamTrack_set_oncapturehandlechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncapturehandlechange", val); - if (cbb_wf.is_log) { - console.log("[*] MediaStreamTrack_set_oncapturehandlechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MediaStreamTrack_getCaptureHandle = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStreamTrack_getCaptureHandle, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.MediaStreamEvent_get_stream = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaStreamEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "stream"); + + let result = cbb_wf.getValue(this, 'stream'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamEvent_get_stream, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamEvent_get_stream, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaStreamAudioSourceNode_get_mediaStream = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaStreamAudioSourceNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mediaStream"); + + let result = cbb_wf.getValue(this, 'mediaStream'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamAudioSourceNode_get_mediaStream, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamAudioSourceNode_get_mediaStream, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaStreamAudioDestinationNode_get_stream = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaStreamAudioDestinationNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "stream"); + + let result = cbb_wf.getValue(this, 'stream'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStreamAudioDestinationNode_get_stream, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamAudioDestinationNode_get_stream, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaStream_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "id"); + + let result = cbb_wf.getValue(this, 'id'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStream_get_id, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_get_id, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaStream_get_active = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "active"); + + let result = cbb_wf.getValue(this, 'active'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStream_get_active, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_get_active, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaStream_get_onaddtrack = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onaddtrack"); + + let result = cbb_wf.getValue(this, 'onaddtrack'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStream_get_onaddtrack, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_get_onaddtrack, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaStream_set_onaddtrack = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onaddtrack", val); - if (cbb_wf.is_log) { - console.log("[*] MediaStream_set_onaddtrack, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onaddtrack', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_set_onaddtrack, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaStream_get_onremovetrack = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onremovetrack"); + + let result = cbb_wf.getValue(this, 'onremovetrack'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStream_get_onremovetrack, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_get_onremovetrack, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaStream_set_onremovetrack = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onremovetrack", val); - if (cbb_wf.is_log) { - console.log("[*] MediaStream_set_onremovetrack, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onremovetrack', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_set_onremovetrack, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaStream_get_onactive = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onactive"); + + let result = cbb_wf.getValue(this, 'onactive'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStream_get_onactive, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_get_onactive, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaStream_set_onactive = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onactive", val); - if (cbb_wf.is_log) { - console.log("[*] MediaStream_set_onactive, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MediaStream_get_oninactive = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oninactive"); + cbb_wf.setValue(this, 'onactive', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaStream_get_oninactive, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_set_onactive, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaStream_get_oninactive = function () { + let r = cbb_wf.checkIllegal(this, "MediaStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'oninactive'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_get_oninactive, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaStream_set_oninactive = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oninactive", val); - if (cbb_wf.is_log) { - console.log("[*] MediaStream_set_oninactive, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'oninactive', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_set_oninactive, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaStream_addTrack = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStream_addTrack, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_addTrack, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaStream_clone = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStream_clone, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_clone, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaStream_getAudioTracks = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStream_getAudioTracks, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_getAudioTracks, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaStream_getTrackById = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStream_getTrackById, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_getTrackById, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaStream_getTracks = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStream_getTracks, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_getTracks, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaStream_getVideoTracks = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStream_getVideoTracks, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_getVideoTracks, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaStream_removeTrack = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaStream_removeTrack, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaSource_isTypeSupported = function () { -let r = cbb_wf.checkIllegal(this, "MediaSource"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaSource_isTypeSupported, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.MediaSource_get_sourceBuffers = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); + let r = cbb_wf.checkIllegal(this, "MediaStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sourceBuffers"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaSource_get_sourceBuffers, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStream_removeTrack, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.MediaSource_get_activeSourceBuffers = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "activeSourceBuffers"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaSource_get_activeSourceBuffers, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaSource_get_duration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "duration"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaSource_get_duration, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaSource_set_duration = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "duration", val); - if (cbb_wf.is_log) { - console.log("[*] MediaSource_set_duration, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MediaSource_get_onsourceopen = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onsourceopen"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaSource_get_onsourceopen, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaSource_set_onsourceopen = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onsourceopen", val); - if (cbb_wf.is_log) { - console.log("[*] MediaSource_set_onsourceopen, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MediaSource_get_onsourceended = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onsourceended"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaSource_get_onsourceended, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaSource_set_onsourceended = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onsourceended", val); - if (cbb_wf.is_log) { - console.log("[*] MediaSource_set_onsourceended, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MediaSource_get_onsourceclose = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onsourceclose"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaSource_get_onsourceclose, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaSource_set_onsourceclose = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onsourceclose", val); - if (cbb_wf.is_log) { - console.log("[*] MediaSource_set_onsourceclose, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MediaSource_get_readyState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "readyState"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaSource_get_readyState, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MediaSource_addSourceBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaSource_addSourceBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaSource_clearLiveSeekableRange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaSource_clearLiveSeekableRange, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaSource_endOfStream = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaSource_endOfStream, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaSource_removeSourceBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaSource_removeSourceBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaSource_setLiveSeekableRange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaSource_setLiveSeekableRange, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaRecorder_isTypeSupported = function () { -let r = cbb_wf.checkIllegal(this, "MediaRecorder"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaRecorder_isTypeSupported, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} this.MediaRecorder_get_stream = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaRecorder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "stream"); + + let result = cbb_wf.getValue(this, 'stream'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaRecorder_get_stream, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_get_stream, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaRecorder_get_mimeType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaRecorder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mimeType"); + + let result = cbb_wf.getValue(this, 'mimeType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaRecorder_get_mimeType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_get_mimeType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaRecorder_get_state = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaRecorder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "state"); + + let result = cbb_wf.getValue(this, 'state'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaRecorder_get_state, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_get_state, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaRecorder_get_onstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaRecorder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onstart"); + + let result = cbb_wf.getValue(this, 'onstart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaRecorder_get_onstart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_get_onstart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaRecorder_set_onstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaRecorder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onstart", val); - if (cbb_wf.is_log) { - console.log("[*] MediaRecorder_set_onstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaRecorder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onstart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_set_onstart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaRecorder_get_onstop = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaRecorder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onstop"); + + let result = cbb_wf.getValue(this, 'onstop'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaRecorder_get_onstop, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_get_onstop, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaRecorder_set_onstop = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaRecorder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onstop", val); - if (cbb_wf.is_log) { - console.log("[*] MediaRecorder_set_onstop, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaRecorder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onstop', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_set_onstop, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaRecorder_get_ondataavailable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaRecorder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ondataavailable"); + + let result = cbb_wf.getValue(this, 'ondataavailable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaRecorder_get_ondataavailable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_get_ondataavailable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaRecorder_set_ondataavailable = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaRecorder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondataavailable", val); - if (cbb_wf.is_log) { - console.log("[*] MediaRecorder_set_ondataavailable, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaRecorder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ondataavailable', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_set_ondataavailable, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaRecorder_get_onpause = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaRecorder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onpause"); + + let result = cbb_wf.getValue(this, 'onpause'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaRecorder_get_onpause, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_get_onpause, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaRecorder_set_onpause = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaRecorder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpause", val); - if (cbb_wf.is_log) { - console.log("[*] MediaRecorder_set_onpause, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaRecorder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onpause', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_set_onpause, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaRecorder_get_onresume = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaRecorder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onresume"); + + let result = cbb_wf.getValue(this, 'onresume'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaRecorder_get_onresume, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_get_onresume, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaRecorder_set_onresume = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaRecorder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onresume", val); - if (cbb_wf.is_log) { - console.log("[*] MediaRecorder_set_onresume, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaRecorder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onresume', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_set_onresume, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaRecorder_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaRecorder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + + let result = cbb_wf.getValue(this, 'onerror'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaRecorder_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaRecorder_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaRecorder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] MediaRecorder_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaRecorder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaRecorder_get_videoBitsPerSecond = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaRecorder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "videoBitsPerSecond"); + + let result = cbb_wf.getValue(this, 'videoBitsPerSecond'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaRecorder_get_videoBitsPerSecond, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_get_videoBitsPerSecond, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaRecorder_get_audioBitsPerSecond = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaRecorder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "audioBitsPerSecond"); + + let result = cbb_wf.getValue(this, 'audioBitsPerSecond'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaRecorder_get_audioBitsPerSecond, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_get_audioBitsPerSecond, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaRecorder_get_audioBitrateMode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaRecorder"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "audioBitrateMode"); + + let result = cbb_wf.getValue(this, 'audioBitrateMode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaRecorder_get_audioBitrateMode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_get_audioBitrateMode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaRecorder_pause = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaRecorder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaRecorder_pause, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaRecorder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_pause, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaRecorder_requestData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaRecorder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaRecorder_requestData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaRecorder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_requestData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaRecorder_resume = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaRecorder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaRecorder_resume, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaRecorder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_resume, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaRecorder_start = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaRecorder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaRecorder_start, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaRecorder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_start, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaRecorder_stop = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaRecorder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaRecorder_stop, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaRecorder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaRecorder_stop, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaQueryListEvent_get_media = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaQueryListEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "media"); + + let result = cbb_wf.getValue(this, 'media'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaQueryListEvent_get_media, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaQueryListEvent_get_media, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaQueryListEvent_get_matches = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaQueryListEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "matches"); + + let result = cbb_wf.getValue(this, 'matches'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaQueryListEvent_get_matches, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaQueryListEvent_get_matches, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaQueryList_get_media = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaQueryList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "media"); + + let result = cbb_wf.getValue(this, 'media'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaQueryList_get_media, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaQueryList_get_media, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaQueryList_get_matches = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaQueryList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "matches"); + + let result = cbb_wf.getValue(this, 'matches'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaQueryList_get_matches, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaQueryList_get_matches, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaQueryList_get_onchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaQueryList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onchange"); + + let result = cbb_wf.getValue(this, 'onchange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaQueryList_get_onchange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaQueryList_get_onchange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaQueryList_set_onchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaQueryList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onchange", val); - if (cbb_wf.is_log) { - console.log("[*] MediaQueryList_set_onchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaQueryList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaQueryList_set_onchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaQueryList_addListener = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaQueryList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaQueryList_addListener, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaQueryList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaQueryList_addListener, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaQueryList_removeListener = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaQueryList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaQueryList_removeListener, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaQueryList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaQueryList_removeListener, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaList_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaList_get_mediaText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mediaText"); + + let result = cbb_wf.getValue(this, 'mediaText'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaList_get_mediaText, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaList_get_mediaText, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaList_set_mediaText = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "mediaText", val); - if (cbb_wf.is_log) { - console.log("[*] MediaList_set_mediaText, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'mediaText', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaList_set_mediaText, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaList_appendMedium = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaList_appendMedium, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaList_appendMedium, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaList_deleteMedium = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaList_deleteMedium, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaList_deleteMedium, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaList_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaList_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaList_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaList_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaList_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaList_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaError_get_code = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaError"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "code"); + + let result = cbb_wf.getValue(this, 'code'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaError_get_code, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaError_get_code, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaError_get_message = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaError"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "message"); + + let result = cbb_wf.getValue(this, 'message'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaError_get_message, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaError_get_message, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaEncryptedEvent_get_initDataType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaEncryptedEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "initDataType"); + + let result = cbb_wf.getValue(this, 'initDataType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaEncryptedEvent_get_initDataType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaEncryptedEvent_get_initDataType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaEncryptedEvent_get_initData = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaEncryptedEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "initData"); + + let result = cbb_wf.getValue(this, 'initData'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaEncryptedEvent_get_initData, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaEncryptedEvent_get_initData, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaElementAudioSourceNode_get_mediaElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaElementAudioSourceNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mediaElement"); + + let result = cbb_wf.getValue(this, 'mediaElement'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaElementAudioSourceNode_get_mediaElement, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaElementAudioSourceNode_get_mediaElement, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaCapabilities_decodingInfo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaCapabilities"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaCapabilities_decodingInfo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaCapabilities"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaCapabilities_decodingInfo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaCapabilities_encodingInfo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaCapabilities"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaCapabilities_encodingInfo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MathMLElement_get_onbeforexrselect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onbeforexrselect"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onbeforexrselect, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onbeforexrselect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onbeforexrselect", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onbeforexrselect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onabort = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onabort"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onabort, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onabort = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onabort", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onabort, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onbeforeinput = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onbeforeinput"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onbeforeinput, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onbeforeinput = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onbeforeinput", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onbeforeinput, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onbeforematch = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onbeforematch"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onbeforematch, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onbeforematch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onbeforematch", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onbeforematch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onbeforetoggle = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onbeforetoggle"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onbeforetoggle, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onbeforetoggle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onbeforetoggle", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onbeforetoggle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onblur = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onblur"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onblur, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onblur = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onblur", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onblur, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_oncancel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncancel"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_oncancel, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_oncancel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncancel", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_oncancel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_oncanplay = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncanplay"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_oncanplay, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_oncanplay = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncanplay", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_oncanplay, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_oncanplaythrough = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncanplaythrough"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_oncanplaythrough, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_oncanplaythrough = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncanplaythrough", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_oncanplaythrough, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onchange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onchange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onchange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onchange", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onclick = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onclick"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onclick, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onclick = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onclick", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onclick, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onclose = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onclose"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onclose, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onclose = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onclose", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onclose, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_oncontentvisibilityautostatechange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncontentvisibilityautostatechange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_oncontentvisibilityautostatechange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_oncontentvisibilityautostatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncontentvisibilityautostatechange", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_oncontentvisibilityautostatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_oncontextlost = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncontextlost"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_oncontextlost, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_oncontextlost = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncontextlost", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_oncontextlost, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_oncontextmenu = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncontextmenu"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_oncontextmenu, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_oncontextmenu = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncontextmenu", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_oncontextmenu, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_oncontextrestored = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncontextrestored"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_oncontextrestored, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_oncontextrestored = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncontextrestored", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_oncontextrestored, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_oncuechange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncuechange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_oncuechange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_oncuechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncuechange", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_oncuechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ondblclick = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondblclick"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ondblclick, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ondblclick = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondblclick", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ondblclick, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ondrag = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondrag"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ondrag, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ondrag = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondrag", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ondrag, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ondragend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondragend"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ondragend, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ondragend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondragend", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ondragend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ondragenter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondragenter"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ondragenter, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ondragenter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondragenter", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ondragenter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ondragleave = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondragleave"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ondragleave, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ondragleave = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondragleave", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ondragleave, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ondragover = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondragover"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ondragover, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ondragover = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondragover", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ondragover, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ondragstart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondragstart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ondragstart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ondragstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondragstart", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ondragstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ondrop = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondrop"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ondrop, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ondrop = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondrop", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ondrop, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ondurationchange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondurationchange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ondurationchange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ondurationchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondurationchange", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ondurationchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onemptied = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onemptied"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onemptied, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onemptied = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onemptied", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onemptied, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onended = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onended"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onended, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onended = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onended", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onended, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onerror = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onerror"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onerror, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onfocus = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onfocus"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onfocus, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onfocus = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onfocus", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onfocus, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onformdata = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onformdata"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onformdata, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onformdata = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onformdata", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onformdata, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_oninput = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oninput"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_oninput, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_oninput = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oninput", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_oninput, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_oninvalid = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oninvalid"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_oninvalid, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_oninvalid = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oninvalid", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_oninvalid, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onkeydown = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onkeydown"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onkeydown, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onkeydown = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onkeydown", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onkeydown, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onkeypress = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onkeypress"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onkeypress, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onkeypress = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onkeypress", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onkeypress, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onkeyup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onkeyup"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onkeyup, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onkeyup = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onkeyup", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onkeyup, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onload = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onload"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onload, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onload = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onload", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onload, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onloadeddata = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onloadeddata"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onloadeddata, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onloadeddata = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onloadeddata", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onloadeddata, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onloadedmetadata = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onloadedmetadata"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onloadedmetadata, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onloadedmetadata = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onloadedmetadata", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onloadedmetadata, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onloadstart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onloadstart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onloadstart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onloadstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onloadstart", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onloadstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onmousedown = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onmousedown"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onmousedown, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onmousedown = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmousedown", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onmousedown, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onmouseenter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onmouseenter"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onmouseenter, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onmouseenter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmouseenter", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onmouseenter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onmouseleave = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onmouseleave"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onmouseleave, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onmouseleave = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmouseleave", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onmouseleave, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onmousemove = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onmousemove"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onmousemove, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onmousemove = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmousemove", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onmousemove, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onmouseout = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onmouseout"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onmouseout, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onmouseout = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmouseout", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onmouseout, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onmouseover = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onmouseover"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onmouseover, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onmouseover = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmouseover", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onmouseover, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onmouseup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onmouseup"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onmouseup, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onmouseup = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmouseup", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onmouseup, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onmousewheel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onmousewheel"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onmousewheel, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onmousewheel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmousewheel", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onmousewheel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onpause = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onpause"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onpause, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onpause = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpause", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onpause, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onplay = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onplay"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onplay, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onplay = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onplay", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onplay, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onplaying = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onplaying"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onplaying, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onplaying = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onplaying", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onplaying, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onprogress = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onprogress"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onprogress, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onprogress = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onprogress", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onprogress, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onratechange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onratechange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onratechange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onratechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onratechange", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onratechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onreset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onreset"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onreset, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onreset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onreset", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onreset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onresize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onresize"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onresize, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onresize = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onresize", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onresize, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onscroll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onscroll"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onscroll, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onscroll = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onscroll", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onscroll, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onsecuritypolicyviolation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onsecuritypolicyviolation"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onsecuritypolicyviolation, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onsecuritypolicyviolation = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onsecuritypolicyviolation", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onsecuritypolicyviolation, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onseeked = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onseeked"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onseeked, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onseeked = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onseeked", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onseeked, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onseeking = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onseeking"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onseeking, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onseeking = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onseeking", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onseeking, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onselect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onselect"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onselect, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onselect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onselect", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onselect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onslotchange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onslotchange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onslotchange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onslotchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onslotchange", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onslotchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onstalled = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onstalled"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onstalled, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onstalled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onstalled", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onstalled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onsubmit = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onsubmit"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onsubmit, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onsubmit = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onsubmit", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onsubmit, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onsuspend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onsuspend"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onsuspend, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onsuspend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onsuspend", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onsuspend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ontimeupdate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ontimeupdate"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ontimeupdate, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ontimeupdate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ontimeupdate", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ontimeupdate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ontoggle = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ontoggle"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ontoggle, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ontoggle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ontoggle", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ontoggle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onvolumechange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onvolumechange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onvolumechange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onvolumechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onvolumechange", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onvolumechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onwaiting = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onwaiting"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onwaiting, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onwaiting = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onwaiting", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onwaiting, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onwebkitanimationend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onwebkitanimationend"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onwebkitanimationend, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onwebkitanimationend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onwebkitanimationend", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onwebkitanimationend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onwebkitanimationiteration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onwebkitanimationiteration"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onwebkitanimationiteration, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onwebkitanimationiteration = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onwebkitanimationiteration", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onwebkitanimationiteration, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onwebkitanimationstart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onwebkitanimationstart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onwebkitanimationstart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onwebkitanimationstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onwebkitanimationstart", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onwebkitanimationstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onwebkittransitionend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onwebkittransitionend"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onwebkittransitionend, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onwebkittransitionend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onwebkittransitionend", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onwebkittransitionend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onwheel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onwheel"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onwheel, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onwheel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onwheel", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onwheel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onauxclick = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onauxclick"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onauxclick, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onauxclick = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onauxclick", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onauxclick, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ongotpointercapture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ongotpointercapture"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ongotpointercapture, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ongotpointercapture = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ongotpointercapture", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ongotpointercapture, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onlostpointercapture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onlostpointercapture"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onlostpointercapture, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onlostpointercapture = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onlostpointercapture", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onlostpointercapture, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onpointerdown = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onpointerdown"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onpointerdown, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onpointerdown = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpointerdown", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onpointerdown, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onpointermove = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onpointermove"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onpointermove, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onpointermove = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpointermove", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onpointermove, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onpointerrawupdate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onpointerrawupdate"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onpointerrawupdate, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onpointerrawupdate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpointerrawupdate", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onpointerrawupdate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onpointerup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onpointerup"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onpointerup, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onpointerup = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpointerup", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onpointerup, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onpointercancel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onpointercancel"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onpointercancel, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onpointercancel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpointercancel", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onpointercancel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onpointerover = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onpointerover"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onpointerover, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onpointerover = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpointerover", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onpointerover, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onpointerout = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onpointerout"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onpointerout, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onpointerout = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpointerout", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onpointerout, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onpointerenter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onpointerenter"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onpointerenter, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onpointerenter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpointerenter", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onpointerenter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onpointerleave = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onpointerleave"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onpointerleave, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onpointerleave = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpointerleave", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onpointerleave, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onselectstart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onselectstart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onselectstart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onselectstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onselectstart", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onselectstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onselectionchange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onselectionchange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onselectionchange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onselectionchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onselectionchange", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onselectionchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onanimationend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onanimationend"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onanimationend, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onanimationend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onanimationend", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onanimationend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onanimationiteration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onanimationiteration"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onanimationiteration, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onanimationiteration = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onanimationiteration", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onanimationiteration, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onanimationstart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onanimationstart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onanimationstart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onanimationstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onanimationstart", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onanimationstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ontransitionrun = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ontransitionrun"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ontransitionrun, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ontransitionrun = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ontransitionrun", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ontransitionrun, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ontransitionstart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ontransitionstart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ontransitionstart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ontransitionstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ontransitionstart", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ontransitionstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ontransitionend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ontransitionend"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ontransitionend, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ontransitionend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ontransitionend", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ontransitionend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_ontransitioncancel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ontransitioncancel"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_ontransitioncancel, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_ontransitioncancel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ontransitioncancel", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_ontransitioncancel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_oncopy = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncopy"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_oncopy, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_oncopy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncopy", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_oncopy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_oncut = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncut"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_oncut, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_oncut = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncut", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_oncut, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_onpaste = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); + let r = cbb_wf.checkIllegal(this, "MediaCapabilities"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onpaste"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onpaste, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaCapabilities_encodingInfo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.MathMLElement_set_onpaste = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpaste", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onpaste, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_dataset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "dataset"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_dataset, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_get_nonce = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "nonce"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_nonce, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_nonce = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "nonce", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_nonce, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_autofocus = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "autofocus"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_autofocus, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_autofocus = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "autofocus", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_autofocus, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_tabIndex = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "tabIndex"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_tabIndex, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_tabIndex = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "tabIndex", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_tabIndex, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_style = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "style"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_style, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_style = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "style", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_style, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MathMLElement_get_attributeStyleMap = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "attributeStyleMap"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_attributeStyleMap, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_blur = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MathMLElement_blur, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MathMLElement_focus = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MathMLElement_focus, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MathMLElement_get_onscrollend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onscrollend"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MathMLElement_get_onscrollend, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MathMLElement_set_onscrollend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MathMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onscrollend", val); - if (cbb_wf.is_log) { - console.log("[*] MathMLElement_set_onscrollend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } this.LayoutShiftAttribution_get_node = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "LayoutShiftAttribution"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "node"); + + let result = cbb_wf.getValue(this, 'node'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LayoutShiftAttribution_get_node, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LayoutShiftAttribution_get_node, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.LayoutShiftAttribution_get_previousRect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "LayoutShiftAttribution"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "previousRect"); + + let result = cbb_wf.getValue(this, 'previousRect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LayoutShiftAttribution_get_previousRect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LayoutShiftAttribution_get_previousRect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.LayoutShiftAttribution_get_currentRect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "LayoutShiftAttribution"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "currentRect"); + + let result = cbb_wf.getValue(this, 'currentRect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LayoutShiftAttribution_get_currentRect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LayoutShiftAttribution_get_currentRect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.LayoutShiftAttribution_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "LayoutShiftAttribution"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] LayoutShiftAttribution_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "LayoutShiftAttribution"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LayoutShiftAttribution_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.LayoutShift_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "LayoutShift"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "value"); + + let result = cbb_wf.getValue(this, 'value'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LayoutShift_get_value, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LayoutShift_get_value, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.LayoutShift_get_hadRecentInput = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "LayoutShift"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "hadRecentInput"); + + let result = cbb_wf.getValue(this, 'hadRecentInput'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LayoutShift_get_hadRecentInput, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LayoutShift_get_hadRecentInput, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.LayoutShift_get_lastInputTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "LayoutShift"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lastInputTime"); + + let result = cbb_wf.getValue(this, 'lastInputTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LayoutShift_get_lastInputTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LayoutShift_get_lastInputTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.LayoutShift_get_sources = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "LayoutShift"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sources"); + + let result = cbb_wf.getValue(this, 'sources'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LayoutShift_get_sources, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LayoutShift_get_sources, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.LayoutShift_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "LayoutShift"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] LayoutShift_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "LayoutShift"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LayoutShift_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.LargestContentfulPaint_get_renderTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "LargestContentfulPaint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "renderTime"); + + let result = cbb_wf.getValue(this, 'renderTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LargestContentfulPaint_get_renderTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LargestContentfulPaint_get_renderTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.LargestContentfulPaint_get_loadTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "LargestContentfulPaint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "loadTime"); + + let result = cbb_wf.getValue(this, 'loadTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LargestContentfulPaint_get_loadTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LargestContentfulPaint_get_loadTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.LargestContentfulPaint_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "LargestContentfulPaint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + + let result = cbb_wf.getValue(this, 'size'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LargestContentfulPaint_get_size, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LargestContentfulPaint_get_size, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.LargestContentfulPaint_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "LargestContentfulPaint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "id"); + + let result = cbb_wf.getValue(this, 'id'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LargestContentfulPaint_get_id, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LargestContentfulPaint_get_id, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.LargestContentfulPaint_get_url = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "LargestContentfulPaint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "url"); + + let result = cbb_wf.getValue(this, 'url'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LargestContentfulPaint_get_url, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LargestContentfulPaint_get_url, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.LargestContentfulPaint_get_element = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "LargestContentfulPaint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "element"); + + let result = cbb_wf.getValue(this, 'element'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LargestContentfulPaint_get_element, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LargestContentfulPaint_get_element, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.LargestContentfulPaint_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "LargestContentfulPaint"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] LargestContentfulPaint_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "LargestContentfulPaint"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LargestContentfulPaint_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.KeyframeEffect_get_target = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyframeEffect"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "target"); + + let result = cbb_wf.getValue(this, 'target'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyframeEffect_get_target, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyframeEffect_get_target, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyframeEffect_set_target = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "KeyframeEffect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "target", val); - if (cbb_wf.is_log) { - console.log("[*] KeyframeEffect_set_target, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "KeyframeEffect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'target', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyframeEffect_set_target, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.KeyframeEffect_get_pseudoElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyframeEffect"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pseudoElement"); + + let result = cbb_wf.getValue(this, 'pseudoElement'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyframeEffect_get_pseudoElement, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyframeEffect_get_pseudoElement, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyframeEffect_set_pseudoElement = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "KeyframeEffect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "pseudoElement", val); - if (cbb_wf.is_log) { - console.log("[*] KeyframeEffect_set_pseudoElement, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.KeyframeEffect_get_composite = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyframeEffect"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "composite"); + cbb_wf.setValue(this, 'pseudoElement', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyframeEffect_get_composite, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyframeEffect_set_pseudoElement, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.KeyframeEffect_get_composite = function () { + let r = cbb_wf.checkIllegal(this, "KeyframeEffect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'composite'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyframeEffect_get_composite, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyframeEffect_set_composite = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "KeyframeEffect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "composite", val); - if (cbb_wf.is_log) { - console.log("[*] KeyframeEffect_set_composite, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "KeyframeEffect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'composite', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyframeEffect_set_composite, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.KeyframeEffect_getKeyframes = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "KeyframeEffect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] KeyframeEffect_getKeyframes, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "KeyframeEffect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyframeEffect_getKeyframes, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.KeyframeEffect_setKeyframes = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "KeyframeEffect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] KeyframeEffect_setKeyframes, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "KeyframeEffect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyframeEffect_setKeyframes, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.KeyboardEvent_get_key = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "key"); + + let result = cbb_wf.getValue(this, 'key'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyboardEvent_get_key, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardEvent_get_key, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyboardEvent_get_code = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "code"); + + let result = cbb_wf.getValue(this, 'code'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyboardEvent_get_code, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardEvent_get_code, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyboardEvent_get_location = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "location"); + + let result = cbb_wf.getValue(this, 'location'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyboardEvent_get_location, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardEvent_get_location, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyboardEvent_get_ctrlKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ctrlKey"); + + let result = cbb_wf.getValue(this, 'ctrlKey'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyboardEvent_get_ctrlKey, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardEvent_get_ctrlKey, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyboardEvent_get_shiftKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shiftKey"); + + let result = cbb_wf.getValue(this, 'shiftKey'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyboardEvent_get_shiftKey, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardEvent_get_shiftKey, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyboardEvent_get_altKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "altKey"); + + let result = cbb_wf.getValue(this, 'altKey'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyboardEvent_get_altKey, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardEvent_get_altKey, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyboardEvent_get_metaKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "metaKey"); + + let result = cbb_wf.getValue(this, 'metaKey'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyboardEvent_get_metaKey, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardEvent_get_metaKey, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyboardEvent_get_repeat = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "repeat"); + + let result = cbb_wf.getValue(this, 'repeat'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyboardEvent_get_repeat, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardEvent_get_repeat, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyboardEvent_get_isComposing = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "isComposing"); + + let result = cbb_wf.getValue(this, 'isComposing'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyboardEvent_get_isComposing, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardEvent_get_isComposing, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyboardEvent_get_charCode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "charCode"); + + let result = cbb_wf.getValue(this, 'charCode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyboardEvent_get_charCode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardEvent_get_charCode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyboardEvent_get_keyCode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "keyCode"); + + let result = cbb_wf.getValue(this, 'keyCode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyboardEvent_get_keyCode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardEvent_get_keyCode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyboardEvent_getModifierState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] KeyboardEvent_getModifierState, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardEvent_getModifierState, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.KeyboardEvent_initKeyboardEvent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] KeyboardEvent_initKeyboardEvent, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "KeyboardEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardEvent_initKeyboardEvent, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IntersectionObserverEntry_get_time = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IntersectionObserverEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "time"); + + let result = cbb_wf.getValue(this, 'time'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IntersectionObserverEntry_get_time, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserverEntry_get_time, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IntersectionObserverEntry_get_rootBounds = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IntersectionObserverEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rootBounds"); + + let result = cbb_wf.getValue(this, 'rootBounds'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IntersectionObserverEntry_get_rootBounds, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserverEntry_get_rootBounds, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IntersectionObserverEntry_get_boundingClientRect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IntersectionObserverEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "boundingClientRect"); + + let result = cbb_wf.getValue(this, 'boundingClientRect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IntersectionObserverEntry_get_boundingClientRect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserverEntry_get_boundingClientRect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IntersectionObserverEntry_get_intersectionRect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IntersectionObserverEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "intersectionRect"); + + let result = cbb_wf.getValue(this, 'intersectionRect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IntersectionObserverEntry_get_intersectionRect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserverEntry_get_intersectionRect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IntersectionObserverEntry_get_isIntersecting = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IntersectionObserverEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "isIntersecting"); + + let result = cbb_wf.getValue(this, 'isIntersecting'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IntersectionObserverEntry_get_isIntersecting, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserverEntry_get_isIntersecting, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IntersectionObserverEntry_get_isVisible = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IntersectionObserverEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "isVisible"); + + let result = cbb_wf.getValue(this, 'isVisible'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IntersectionObserverEntry_get_isVisible, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserverEntry_get_isVisible, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IntersectionObserverEntry_get_intersectionRatio = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IntersectionObserverEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "intersectionRatio"); + + let result = cbb_wf.getValue(this, 'intersectionRatio'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IntersectionObserverEntry_get_intersectionRatio, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserverEntry_get_intersectionRatio, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IntersectionObserverEntry_get_target = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IntersectionObserverEntry"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "target"); + + let result = cbb_wf.getValue(this, 'target'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IntersectionObserverEntry_get_target, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserverEntry_get_target, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IntersectionObserver_get_root = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IntersectionObserver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "root"); + + let result = cbb_wf.getValue(this, 'root'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IntersectionObserver_get_root, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserver_get_root, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IntersectionObserver_get_rootMargin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IntersectionObserver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rootMargin"); + + let result = cbb_wf.getValue(this, 'rootMargin'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IntersectionObserver_get_rootMargin, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserver_get_rootMargin, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IntersectionObserver_get_thresholds = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IntersectionObserver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "thresholds"); + + let result = cbb_wf.getValue(this, 'thresholds'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IntersectionObserver_get_thresholds, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserver_get_thresholds, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IntersectionObserver_get_delay = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IntersectionObserver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "delay"); + + let result = cbb_wf.getValue(this, 'delay'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IntersectionObserver_get_delay, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserver_get_delay, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IntersectionObserver_get_trackVisibility = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IntersectionObserver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "trackVisibility"); + + let result = cbb_wf.getValue(this, 'trackVisibility'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IntersectionObserver_get_trackVisibility, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserver_get_trackVisibility, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IntersectionObserver_disconnect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IntersectionObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IntersectionObserver_disconnect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.IntersectionObserver_observe = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IntersectionObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IntersectionObserver_observe, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.IntersectionObserver_takeRecords = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IntersectionObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IntersectionObserver_takeRecords, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.IntersectionObserver_unobserve = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IntersectionObserver"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IntersectionObserver_unobserve, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.IntersectionObserver_get_scrollMargin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IntersectionObserver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "scrollMargin"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IntersectionObserver_get_scrollMargin, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserver_disconnect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.IntersectionObserver_observe = function () { + let r = cbb_wf.checkIllegal(this, "IntersectionObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserver_observe, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.IntersectionObserver_takeRecords = function () { + let r = cbb_wf.checkIllegal(this, "IntersectionObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserver_takeRecords, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.IntersectionObserver_unobserve = function () { + let r = cbb_wf.checkIllegal(this, "IntersectionObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IntersectionObserver_unobserve, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - this.InputEvent_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "InputEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "data"); + + let result = cbb_wf.getValue(this, 'data'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] InputEvent_get_data, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "InputEvent_get_data, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.InputEvent_get_isComposing = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "InputEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "isComposing"); + + let result = cbb_wf.getValue(this, 'isComposing'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] InputEvent_get_isComposing, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "InputEvent_get_isComposing, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.InputEvent_get_inputType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "InputEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "inputType"); + + let result = cbb_wf.getValue(this, 'inputType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] InputEvent_get_inputType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "InputEvent_get_inputType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.InputEvent_get_dataTransfer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "InputEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "dataTransfer"); + + let result = cbb_wf.getValue(this, 'dataTransfer'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] InputEvent_get_dataTransfer, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "InputEvent_get_dataTransfer, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.InputEvent_getTargetRanges = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "InputEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] InputEvent_getTargetRanges, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "InputEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "InputEvent_getTargetRanges, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.InputDeviceInfo_getCapabilities = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "InputDeviceInfo"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] InputDeviceInfo_getCapabilities, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "InputDeviceInfo"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "InputDeviceInfo_getCapabilities, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.InputDeviceCapabilities_get_firesTouchEvents = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "InputDeviceCapabilities"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "firesTouchEvents"); + + let result = cbb_wf.getValue(this, 'firesTouchEvents'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] InputDeviceCapabilities_get_firesTouchEvents, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "InputDeviceCapabilities_get_firesTouchEvents, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } -this.Ink_requestPresenter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Ink"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Ink_requestPresenter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ImageTrackList_get_length = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageTrackList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "length"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageTrackList_get_length, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ImageTrackList_get_selectedIndex = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageTrackList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "selectedIndex"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageTrackList_get_selectedIndex, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ImageTrackList_get_selectedTrack = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageTrackList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "selectedTrack"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageTrackList_get_selectedTrack, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ImageTrackList_get_ready = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageTrackList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ready"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageTrackList_get_ready, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ImageTrack_get_frameCount = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "frameCount"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageTrack_get_frameCount, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ImageTrack_get_animated = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "animated"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageTrack_get_animated, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ImageTrack_get_repetitionCount = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "repetitionCount"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageTrack_get_repetitionCount, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ImageTrack_get_selected = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "selected"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageTrack_get_selected, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ImageTrack_set_selected = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "selected", val); - if (cbb_wf.is_log) { - console.log("[*] ImageTrack_set_selected, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } this.ImageData_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ImageData"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ImageData_get_width, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ImageData_get_width, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageData_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageData_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ImageData_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ImageData"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageData_get_height, this =>", this + '', ", result =>", result + '', info); - } - return result; -} + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ImageData_get_height, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ImageData_get_height, 返回function'); + break + default: -this.ImageData_get_colorSpace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "colorSpace"); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageData_get_colorSpace, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageData_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.ImageData_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ImageData"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "data"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.data; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ImageData_get_data, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ImageData_get_data, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageData_get_data, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageData_get_data, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } +this.ImageData_get_colorSpace = function () { + let r = cbb_wf.checkIllegal(this, "ImageData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.colorSpace; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] ImageData_get_colorSpace, 返回object'); + break + case "function": + cbb_wf.console.log('[*] ImageData_get_colorSpace, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageData_get_colorSpace, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} this.ImageCapture_get_track = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ImageCapture"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "track"); + + let result = cbb_wf.getValue(this, 'track'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageCapture_get_track, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageCapture_get_track, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ImageCapture_getPhotoCapabilities = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageCapture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ImageCapture_getPhotoCapabilities, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ImageCapture"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageCapture_getPhotoCapabilities, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ImageCapture_getPhotoSettings = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageCapture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ImageCapture_getPhotoSettings, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ImageCapture"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageCapture_getPhotoSettings, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ImageCapture_grabFrame = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageCapture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ImageCapture_grabFrame, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ImageCapture"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageCapture_grabFrame, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ImageCapture_takePhoto = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageCapture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ImageCapture_takePhoto, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ImageCapture"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageCapture_takePhoto, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ImageBitmapRenderingContext_get_canvas = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ImageBitmapRenderingContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "canvas"); + + let result = cbb_wf.getValue(this, 'canvas'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageBitmapRenderingContext_get_canvas, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageBitmapRenderingContext_get_canvas, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ImageBitmapRenderingContext_transferFromImageBitmap = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageBitmapRenderingContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ImageBitmapRenderingContext_transferFromImageBitmap, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ImageBitmapRenderingContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageBitmapRenderingContext_transferFromImageBitmap, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ImageBitmap_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ImageBitmap"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + + let result = cbb_wf.getValue(this, 'width'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageBitmap_get_width, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageBitmap_get_width, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ImageBitmap_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ImageBitmap"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + + let result = cbb_wf.getValue(this, 'height'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageBitmap_get_height, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageBitmap_get_height, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ImageBitmap_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageBitmap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ImageBitmap_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ImageBitmap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageBitmap_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IdleDeadline_get_didTimeout = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IdleDeadline"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "didTimeout"); + + let result = cbb_wf.getValue(this, 'didTimeout'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IdleDeadline_get_didTimeout, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IdleDeadline_get_didTimeout, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IdleDeadline_timeRemaining = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IdleDeadline"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IdleDeadline_timeRemaining, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IdleDeadline"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IdleDeadline_timeRemaining, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IIRFilterNode_getFrequencyResponse = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IIRFilterNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IIRFilterNode_getFrequencyResponse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IIRFilterNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IIRFilterNode_getFrequencyResponse, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBVersionChangeEvent_get_oldVersion = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBVersionChangeEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oldVersion"); + + let result = cbb_wf.getValue(this, 'oldVersion'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBVersionChangeEvent_get_oldVersion, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBVersionChangeEvent_get_oldVersion, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBVersionChangeEvent_get_newVersion = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBVersionChangeEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "newVersion"); + + let result = cbb_wf.getValue(this, 'newVersion'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBVersionChangeEvent_get_newVersion, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBVersionChangeEvent_get_newVersion, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBVersionChangeEvent_get_dataLoss = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBVersionChangeEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "dataLoss"); + + let result = cbb_wf.getValue(this, 'dataLoss'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBVersionChangeEvent_get_dataLoss, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBVersionChangeEvent_get_dataLoss, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBVersionChangeEvent_get_dataLossMessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBVersionChangeEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "dataLossMessage"); + + let result = cbb_wf.getValue(this, 'dataLossMessage'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBVersionChangeEvent_get_dataLossMessage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBVersionChangeEvent_get_dataLossMessage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBTransaction_get_objectStoreNames = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBTransaction"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "objectStoreNames"); + + let result = cbb_wf.getValue(this, 'objectStoreNames'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBTransaction_get_objectStoreNames, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBTransaction_get_objectStoreNames, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBTransaction_get_mode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBTransaction"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mode"); + + let result = cbb_wf.getValue(this, 'mode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBTransaction_get_mode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBTransaction_get_mode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBTransaction_get_durability = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBTransaction"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "durability"); + + let result = cbb_wf.getValue(this, 'durability'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBTransaction_get_durability, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBTransaction_get_durability, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBTransaction_get_db = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBTransaction"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "db"); + + let result = cbb_wf.getValue(this, 'db'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBTransaction_get_db, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBTransaction_get_db, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBTransaction_get_error = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBTransaction"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "error"); + + let result = cbb_wf.getValue(this, 'error'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBTransaction_get_error, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBTransaction_get_error, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBTransaction_get_onabort = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBTransaction"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onabort"); + + let result = cbb_wf.getValue(this, 'onabort'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBTransaction_get_onabort, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBTransaction_get_onabort, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBTransaction_set_onabort = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBTransaction"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onabort", val); - if (cbb_wf.is_log) { - console.log("[*] IDBTransaction_set_onabort, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "IDBTransaction"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onabort', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBTransaction_set_onabort, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.IDBTransaction_get_oncomplete = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBTransaction"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oncomplete"); + + let result = cbb_wf.getValue(this, 'oncomplete'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBTransaction_get_oncomplete, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBTransaction_get_oncomplete, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBTransaction_set_oncomplete = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBTransaction"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncomplete", val); - if (cbb_wf.is_log) { - console.log("[*] IDBTransaction_set_oncomplete, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.IDBTransaction_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBTransaction"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + cbb_wf.setValue(this, 'oncomplete', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBTransaction_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBTransaction_set_oncomplete, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.IDBTransaction_get_onerror = function () { + let r = cbb_wf.checkIllegal(this, "IDBTransaction"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onerror'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBTransaction_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBTransaction_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBTransaction"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] IDBTransaction_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "IDBTransaction"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBTransaction_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.IDBTransaction_abort = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBTransaction"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBTransaction_abort, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBTransaction"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBTransaction_abort, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBTransaction_commit = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBTransaction"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBTransaction_commit, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBTransaction"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBTransaction_commit, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBTransaction_objectStore = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBTransaction"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBTransaction_objectStore, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBTransaction"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBTransaction_objectStore, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBRequest_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + + let result = cbb_wf.getValue(this, 'result'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBRequest_get_result, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBRequest_get_result, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBRequest_get_error = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "error"); + + let result = cbb_wf.getValue(this, 'error'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBRequest_get_error, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBRequest_get_error, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBRequest_get_source = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "source"); + + let result = cbb_wf.getValue(this, 'source'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBRequest_get_source, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBRequest_get_source, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBRequest_get_transaction = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "transaction"); + + let result = cbb_wf.getValue(this, 'transaction'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBRequest_get_transaction, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBRequest_get_transaction, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBRequest_get_readyState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "readyState"); + + let result = cbb_wf.getValue(this, 'readyState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBRequest_get_readyState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBRequest_get_readyState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBRequest_get_onsuccess = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onsuccess"); + + let result = cbb_wf.getValue(this, 'onsuccess'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBRequest_get_onsuccess, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBRequest_get_onsuccess, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBRequest_set_onsuccess = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onsuccess", val); - if (cbb_wf.is_log) { - console.log("[*] IDBRequest_set_onsuccess, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.IDBRequest_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + cbb_wf.setValue(this, 'onsuccess', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBRequest_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBRequest_set_onsuccess, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.IDBRequest_get_onerror = function () { + let r = cbb_wf.checkIllegal(this, "IDBRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onerror'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBRequest_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBRequest_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] IDBRequest_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "IDBRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBRequest_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.IDBOpenDBRequest_get_onblocked = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBOpenDBRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onblocked"); + + let result = cbb_wf.getValue(this, 'onblocked'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBOpenDBRequest_get_onblocked, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBOpenDBRequest_get_onblocked, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBOpenDBRequest_set_onblocked = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBOpenDBRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onblocked", val); - if (cbb_wf.is_log) { - console.log("[*] IDBOpenDBRequest_set_onblocked, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.IDBOpenDBRequest_get_onupgradeneeded = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBOpenDBRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onupgradeneeded"); + cbb_wf.setValue(this, 'onblocked', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBOpenDBRequest_get_onupgradeneeded, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBOpenDBRequest_set_onblocked, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.IDBOpenDBRequest_get_onupgradeneeded = function () { + let r = cbb_wf.checkIllegal(this, "IDBOpenDBRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onupgradeneeded'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBOpenDBRequest_get_onupgradeneeded, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBOpenDBRequest_set_onupgradeneeded = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBOpenDBRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onupgradeneeded", val); - if (cbb_wf.is_log) { - console.log("[*] IDBOpenDBRequest_set_onupgradeneeded, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "IDBOpenDBRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onupgradeneeded', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBOpenDBRequest_set_onupgradeneeded, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.IDBObjectStore_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBObjectStore_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBObjectStore_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "name", val); - if (cbb_wf.is_log) { - console.log("[*] IDBObjectStore_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'name', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_set_name, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.IDBObjectStore_get_keyPath = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "keyPath"); + + let result = cbb_wf.getValue(this, 'keyPath'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBObjectStore_get_keyPath, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_get_keyPath, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBObjectStore_get_indexNames = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "indexNames"); + + let result = cbb_wf.getValue(this, 'indexNames'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBObjectStore_get_indexNames, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_get_indexNames, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBObjectStore_get_transaction = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "transaction"); + + let result = cbb_wf.getValue(this, 'transaction'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBObjectStore_get_transaction, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_get_transaction, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBObjectStore_get_autoIncrement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "autoIncrement"); + + let result = cbb_wf.getValue(this, 'autoIncrement'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBObjectStore_get_autoIncrement, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_get_autoIncrement, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBObjectStore_add = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBObjectStore_add, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_add, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBObjectStore_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBObjectStore_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBObjectStore_count = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBObjectStore_count, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_count, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBObjectStore_createIndex = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBObjectStore_createIndex, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_createIndex, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBObjectStore_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBObjectStore_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBObjectStore_deleteIndex = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBObjectStore_deleteIndex, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_deleteIndex, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBObjectStore_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBObjectStore_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBObjectStore_getAll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBObjectStore_getAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_getAll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBObjectStore_getAllKeys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBObjectStore_getAllKeys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_getAllKeys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBObjectStore_getKey = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBObjectStore_getKey, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_getKey, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBObjectStore_index = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBObjectStore_index, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_index, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBObjectStore_openCursor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBObjectStore_openCursor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_openCursor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBObjectStore_openKeyCursor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBObjectStore_openKeyCursor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_openKeyCursor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBObjectStore_put = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBObjectStore_put, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBObjectStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.IDBKeyRange_bound = function () { -let r = cbb_wf.checkIllegal(this, "IDBKeyRange"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBObjectStore_put, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } - console.log("[*] IDBKeyRange_bound, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.IDBKeyRange_lowerBound = function () { -let r = cbb_wf.checkIllegal(this, "IDBKeyRange"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBKeyRange_lowerBound, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.IDBKeyRange_only = function () { -let r = cbb_wf.checkIllegal(this, "IDBKeyRange"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBKeyRange_only, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.IDBKeyRange_upperBound = function () { -let r = cbb_wf.checkIllegal(this, "IDBKeyRange"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBKeyRange_upperBound, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - + return result; } this.IDBKeyRange_get_lower = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBKeyRange"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lower"); + + let result = cbb_wf.getValue(this, 'lower'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBKeyRange_get_lower, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBKeyRange_get_lower, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBKeyRange_get_upper = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBKeyRange"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "upper"); + + let result = cbb_wf.getValue(this, 'upper'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBKeyRange_get_upper, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBKeyRange_get_upper, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBKeyRange_get_lowerOpen = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBKeyRange"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lowerOpen"); + + let result = cbb_wf.getValue(this, 'lowerOpen'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBKeyRange_get_lowerOpen, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBKeyRange_get_lowerOpen, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBKeyRange_get_upperOpen = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBKeyRange"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "upperOpen"); + + let result = cbb_wf.getValue(this, 'upperOpen'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBKeyRange_get_upperOpen, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBKeyRange_get_upperOpen, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBKeyRange_includes = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBKeyRange"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBKeyRange_includes, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBKeyRange"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBKeyRange_includes, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBIndex_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBIndex"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBIndex_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBIndex_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBIndex_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBIndex"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "name", val); - if (cbb_wf.is_log) { - console.log("[*] IDBIndex_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "IDBIndex"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'name', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBIndex_set_name, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.IDBIndex_get_objectStore = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBIndex"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "objectStore"); + + let result = cbb_wf.getValue(this, 'objectStore'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBIndex_get_objectStore, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBIndex_get_objectStore, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBIndex_get_keyPath = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBIndex"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "keyPath"); + + let result = cbb_wf.getValue(this, 'keyPath'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBIndex_get_keyPath, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBIndex_get_keyPath, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBIndex_get_multiEntry = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBIndex"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "multiEntry"); + + let result = cbb_wf.getValue(this, 'multiEntry'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBIndex_get_multiEntry, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBIndex_get_multiEntry, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBIndex_get_unique = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBIndex"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "unique"); + + let result = cbb_wf.getValue(this, 'unique'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBIndex_get_unique, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBIndex_get_unique, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBIndex_count = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBIndex"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBIndex_count, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBIndex"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBIndex_count, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBIndex_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBIndex"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBIndex_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBIndex"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBIndex_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBIndex_getAll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBIndex"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBIndex_getAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBIndex"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBIndex_getAll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBIndex_getAllKeys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBIndex"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBIndex_getAllKeys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBIndex"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBIndex_getAllKeys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBIndex_getKey = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBIndex"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBIndex_getKey, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBIndex"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBIndex_getKey, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBIndex_openCursor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBIndex"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBIndex_openCursor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBIndex"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBIndex_openCursor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBIndex_openKeyCursor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBIndex"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBIndex_openKeyCursor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBIndex"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBIndex_openKeyCursor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBFactory_cmp = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBFactory"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBFactory_cmp, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBFactory"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBFactory_cmp, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBFactory_databases = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBFactory"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBFactory_databases, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBFactory"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBFactory_databases, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBFactory_deleteDatabase = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBFactory"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBFactory_deleteDatabase, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBFactory"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBFactory_deleteDatabase, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBFactory_open = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBFactory"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBFactory_open, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBFactory"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBFactory_open, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBDatabase_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBDatabase"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBDatabase_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBDatabase_get_version = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBDatabase"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "version"); + + let result = cbb_wf.getValue(this, 'version'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBDatabase_get_version, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_get_version, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBDatabase_get_objectStoreNames = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBDatabase"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "objectStoreNames"); + + let result = cbb_wf.getValue(this, 'objectStoreNames'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBDatabase_get_objectStoreNames, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_get_objectStoreNames, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBDatabase_get_onabort = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBDatabase"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onabort"); + + let result = cbb_wf.getValue(this, 'onabort'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBDatabase_get_onabort, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_get_onabort, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBDatabase_set_onabort = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBDatabase"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onabort", val); - if (cbb_wf.is_log) { - console.log("[*] IDBDatabase_set_onabort, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "IDBDatabase"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onabort', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_set_onabort, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.IDBDatabase_get_onclose = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBDatabase"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onclose"); + + let result = cbb_wf.getValue(this, 'onclose'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBDatabase_get_onclose, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_get_onclose, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBDatabase_set_onclose = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBDatabase"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onclose", val); - if (cbb_wf.is_log) { - console.log("[*] IDBDatabase_set_onclose, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "IDBDatabase"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onclose', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_set_onclose, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.IDBDatabase_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBDatabase"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + + let result = cbb_wf.getValue(this, 'onerror'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBDatabase_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBDatabase_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBDatabase"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] IDBDatabase_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.IDBDatabase_get_onversionchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBDatabase"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onversionchange"); + cbb_wf.setValue(this, 'onerror', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBDatabase_get_onversionchange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.IDBDatabase_get_onversionchange = function () { + let r = cbb_wf.checkIllegal(this, "IDBDatabase"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onversionchange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_get_onversionchange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBDatabase_set_onversionchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBDatabase"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onversionchange", val); - if (cbb_wf.is_log) { - console.log("[*] IDBDatabase_set_onversionchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "IDBDatabase"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onversionchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_set_onversionchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.IDBDatabase_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBDatabase"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBDatabase_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBDatabase"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBDatabase_createObjectStore = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBDatabase"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBDatabase_createObjectStore, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBDatabase"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_createObjectStore, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBDatabase_deleteObjectStore = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBDatabase"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBDatabase_deleteObjectStore, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBDatabase"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_deleteObjectStore, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBDatabase_transaction = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBDatabase"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBDatabase_transaction, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBDatabase"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBDatabase_transaction, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBCursorWithValue_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBCursorWithValue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "value"); + + let result = cbb_wf.getValue(this, 'value'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBCursorWithValue_get_value, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBCursorWithValue_get_value, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBCursor_get_source = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBCursor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "source"); + + let result = cbb_wf.getValue(this, 'source'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBCursor_get_source, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBCursor_get_source, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBCursor_get_direction = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBCursor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "direction"); + + let result = cbb_wf.getValue(this, 'direction'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBCursor_get_direction, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBCursor_get_direction, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBCursor_get_key = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBCursor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "key"); + + let result = cbb_wf.getValue(this, 'key'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBCursor_get_key, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBCursor_get_key, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBCursor_get_primaryKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBCursor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "primaryKey"); + + let result = cbb_wf.getValue(this, 'primaryKey'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBCursor_get_primaryKey, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBCursor_get_primaryKey, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBCursor_get_request = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "IDBCursor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "request"); + + let result = cbb_wf.getValue(this, 'request'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IDBCursor_get_request, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBCursor_get_request, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.IDBCursor_advance = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBCursor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBCursor_advance, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBCursor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBCursor_advance, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBCursor_continue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBCursor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBCursor_continue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBCursor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBCursor_continue, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBCursor_continuePrimaryKey = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBCursor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBCursor_continuePrimaryKey, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBCursor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBCursor_continuePrimaryKey, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBCursor_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBCursor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBCursor_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBCursor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBCursor_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.IDBCursor_update = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IDBCursor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IDBCursor_update, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "IDBCursor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IDBCursor_update, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.History_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "History"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] History_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "History_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.History_get_scrollRestoration = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "History"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "scrollRestoration"); + + let result = cbb_wf.getValue(this, 'scrollRestoration'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] History_get_scrollRestoration, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "History_get_scrollRestoration, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.History_set_scrollRestoration = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "History"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "scrollRestoration", val); - if (cbb_wf.is_log) { - console.log("[*] History_set_scrollRestoration, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.History_get_state = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "History"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "state"); + cbb_wf.setValue(this, 'scrollRestoration', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] History_get_state, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "History_set_scrollRestoration, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.History_get_state = function () { + let r = cbb_wf.checkIllegal(this, "History"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'state'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "History_get_state, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.History_back = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "History"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] History_back, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "History"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "History_back, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.History_forward = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "History"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] History_forward, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "History"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "History_forward, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.History_go = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "History"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] History_go, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "History"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "History_go, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.History_pushState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "History"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] History_pushState, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "History"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "History_pushState, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.History_replaceState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "History"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] History_replaceState, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.HighlightRegistry_get_size = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HighlightRegistry"); + let r = cbb_wf.checkIllegal(this, "History"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HighlightRegistry_get_size, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "History_replaceState, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.HighlightRegistry_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HighlightRegistry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HighlightRegistry_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.HighlightRegistry_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HighlightRegistry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HighlightRegistry_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.HighlightRegistry_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HighlightRegistry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HighlightRegistry_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.HighlightRegistry_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HighlightRegistry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HighlightRegistry_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.HighlightRegistry_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HighlightRegistry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HighlightRegistry_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.HighlightRegistry_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HighlightRegistry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HighlightRegistry_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.HighlightRegistry_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HighlightRegistry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HighlightRegistry_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.HighlightRegistry_set = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HighlightRegistry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HighlightRegistry_set, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.HighlightRegistry_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HighlightRegistry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HighlightRegistry_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Highlight_get_priority = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Highlight"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "priority"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Highlight_get_priority, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Highlight_set_priority = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Highlight"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "priority", val); - if (cbb_wf.is_log) { - console.log("[*] Highlight_set_priority, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Highlight_get_type = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Highlight"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "type"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Highlight_get_type, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Highlight_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Highlight"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "type", val); - if (cbb_wf.is_log) { - console.log("[*] Highlight_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Highlight_get_size = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Highlight"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "size"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Highlight_get_size, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Highlight_add = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Highlight"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Highlight_add, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Highlight_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Highlight"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Highlight_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Highlight_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Highlight"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Highlight_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Highlight_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Highlight"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Highlight_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Highlight_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Highlight"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Highlight_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Highlight_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Highlight"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Highlight_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Highlight_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Highlight"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Highlight_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Highlight_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Highlight"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Highlight_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.Headers_append = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Headers"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Headers_append, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Headers_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Headers"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Headers_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Headers_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Headers"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Headers_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Headers_getSetCookie = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Headers"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Headers_getSetCookie, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Headers_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Headers"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Headers_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Headers_set = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Headers"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Headers_set, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Headers_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Headers"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Headers_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Headers_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Headers"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Headers_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Headers_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Headers"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Headers_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Headers_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Headers"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Headers_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.HashChangeEvent_get_oldURL = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HashChangeEvent"); + let r = cbb_wf.checkIllegal(this, "Headers"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oldURL"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HashChangeEvent_get_oldURL, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Headers_append, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.HashChangeEvent_get_newURL = function () { - // 非法调用 +this.Headers_delete = function () { + let r = cbb_wf.checkIllegal(this, "Headers"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Headers_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Headers_get = function () { + let r = cbb_wf.checkIllegal(this, "Headers"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Headers_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Headers_has = function () { + let r = cbb_wf.checkIllegal(this, "Headers"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Headers_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Headers_set = function () { + let r = cbb_wf.checkIllegal(this, "Headers"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Headers_set, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Headers_entries = function () { + let r = cbb_wf.checkIllegal(this, "Headers"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Headers_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Headers_forEach = function () { + let r = cbb_wf.checkIllegal(this, "Headers"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Headers_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Headers_keys = function () { + let r = cbb_wf.checkIllegal(this, "Headers"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Headers_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Headers_values = function () { + let r = cbb_wf.checkIllegal(this, "Headers"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Headers_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.HashChangeEvent_get_oldURL = function () { let r = cbb_wf.checkIllegal(this, "HashChangeEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "newURL"); + + let result = cbb_wf.getValue(this, 'oldURL'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HashChangeEvent_get_newURL, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HashChangeEvent_get_oldURL, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.HashChangeEvent_get_newURL = function () { + let r = cbb_wf.checkIllegal(this, "HashChangeEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'newURL'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HashChangeEvent_get_newURL, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.HTMLVideoElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLVideoElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLVideoElement_get_width, 返回object'); break - case "function": - console.log("[*] HTMLVideoElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLVideoElement_get_width, 返回function'); break default: - // string number - console.log("[*] HTMLVideoElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLVideoElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.width = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLVideoElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLVideoElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.height; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLVideoElement_get_height 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLVideoElement_set_width, set object'); break - case "function": - console.log("[*] HTMLVideoElement_get_height 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLVideoElement_set_width, set function'); break default: - // string number - console.log("[*] HTMLVideoElement_get_height 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.width = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_set_width, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLVideoElement_get_height = function () { + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_get_height, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_get_height, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLVideoElement_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.height = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLVideoElement_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLVideoElement_get_videoWidth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_set_height, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_set_height, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.height = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_set_height, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLVideoElement_get_videoWidth = function () { + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.videoWidth; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLVideoElement_get_videoWidth 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLVideoElement_get_videoWidth, 返回object'); break - case "function": - console.log("[*] HTMLVideoElement_get_videoWidth 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLVideoElement_get_videoWidth, 返回function'); break default: - // string number - console.log("[*] HTMLVideoElement_get_videoWidth 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_get_videoWidth, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_get_videoWidth, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLVideoElement_get_videoHeight = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.videoHeight; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLVideoElement_get_videoHeight 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLVideoElement_get_videoHeight, 返回object'); break - case "function": - console.log("[*] HTMLVideoElement_get_videoHeight 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLVideoElement_get_videoHeight, 返回function'); break default: - // string number - console.log("[*] HTMLVideoElement_get_videoHeight 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_get_videoHeight, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_get_videoHeight, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLVideoElement_get_poster = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.poster; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLVideoElement_get_poster 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLVideoElement_get_poster, 返回object'); break - case "function": - console.log("[*] HTMLVideoElement_get_poster 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLVideoElement_get_poster, 返回function'); break default: - // string number - console.log("[*] HTMLVideoElement_get_poster 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_get_poster, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_get_poster, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLVideoElement_set_poster = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.poster = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLVideoElement_set_poster, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLVideoElement_get_webkitDecodedFrameCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_set_poster, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_set_poster, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.poster = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_set_poster, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLVideoElement_get_webkitDecodedFrameCount = function () { + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.webkitDecodedFrameCount; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLVideoElement_get_webkitDecodedFrameCount 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLVideoElement_get_webkitDecodedFrameCount, 返回object'); break - case "function": - console.log("[*] HTMLVideoElement_get_webkitDecodedFrameCount 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLVideoElement_get_webkitDecodedFrameCount, 返回function'); break default: - // string number - console.log("[*] HTMLVideoElement_get_webkitDecodedFrameCount 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_get_webkitDecodedFrameCount, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_get_webkitDecodedFrameCount, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLVideoElement_get_webkitDroppedFrameCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.webkitDroppedFrameCount; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLVideoElement_get_webkitDroppedFrameCount 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLVideoElement_get_webkitDroppedFrameCount, 返回object'); break - case "function": - console.log("[*] HTMLVideoElement_get_webkitDroppedFrameCount 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLVideoElement_get_webkitDroppedFrameCount, 返回function'); break default: - // string number - console.log("[*] HTMLVideoElement_get_webkitDroppedFrameCount 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_get_webkitDroppedFrameCount, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_get_webkitDroppedFrameCount, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLVideoElement_get_playsInline = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.playsInline; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLVideoElement_get_playsInline 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLVideoElement_get_playsInline, 返回object'); break - case "function": - console.log("[*] HTMLVideoElement_get_playsInline 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLVideoElement_get_playsInline, 返回function'); break default: - // string number - console.log("[*] HTMLVideoElement_get_playsInline 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_get_playsInline, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_get_playsInline, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLVideoElement_set_playsInline = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.playsInline = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLVideoElement_set_playsInline, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLVideoElement_get_onenterpictureinpicture = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onenterpictureinpicture; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLVideoElement_get_onenterpictureinpicture 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLVideoElement_set_playsInline, set object'); break - case "function": - console.log("[*] HTMLVideoElement_get_onenterpictureinpicture 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLVideoElement_set_playsInline, set function'); break default: - // string number - console.log("[*] HTMLVideoElement_get_onenterpictureinpicture 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.playsInline = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_set_playsInline, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLVideoElement_get_webkitSupportsFullscreen = function () { + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.webkitSupportsFullscreen; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_get_webkitSupportsFullscreen, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_get_webkitSupportsFullscreen, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_get_onenterpictureinpicture, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_get_webkitSupportsFullscreen, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} + +this.HTMLVideoElement_get_webkitDisplayingFullscreen = function () { + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.webkitDisplayingFullscreen; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_get_webkitDisplayingFullscreen, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_get_webkitDisplayingFullscreen, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_get_webkitDisplayingFullscreen, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} + +this.HTMLVideoElement_get_onenterpictureinpicture = function () { + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onenterpictureinpicture; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_get_onenterpictureinpicture, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_get_onenterpictureinpicture, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_get_onenterpictureinpicture, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLVideoElement_set_onenterpictureinpicture = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onenterpictureinpicture = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLVideoElement_set_onenterpictureinpicture, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLVideoElement_get_onleavepictureinpicture = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onleavepictureinpicture; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLVideoElement_get_onleavepictureinpicture 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLVideoElement_set_onenterpictureinpicture, set object'); break - case "function": - console.log("[*] HTMLVideoElement_get_onleavepictureinpicture 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLVideoElement_set_onenterpictureinpicture, set function'); break default: - // string number - console.log("[*] HTMLVideoElement_get_onleavepictureinpicture 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onenterpictureinpicture = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_set_onenterpictureinpicture, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLVideoElement_get_onleavepictureinpicture = function () { + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onleavepictureinpicture; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_get_onleavepictureinpicture, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_get_onleavepictureinpicture, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_get_onleavepictureinpicture, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_get_onleavepictureinpicture, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLVideoElement_set_onleavepictureinpicture = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onleavepictureinpicture = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLVideoElement_set_onleavepictureinpicture, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLVideoElement_get_disablePictureInPicture = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.disablePictureInPicture; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLVideoElement_get_disablePictureInPicture 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLVideoElement_set_onleavepictureinpicture, set object'); break - case "function": - console.log("[*] HTMLVideoElement_get_disablePictureInPicture 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLVideoElement_set_onleavepictureinpicture, set function'); break default: - // string number - console.log("[*] HTMLVideoElement_get_disablePictureInPicture 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onleavepictureinpicture = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_set_onleavepictureinpicture, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLVideoElement_get_disablePictureInPicture = function () { + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.disablePictureInPicture; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_get_disablePictureInPicture, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_get_disablePictureInPicture, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_get_disablePictureInPicture, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_get_disablePictureInPicture, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLVideoElement_set_disablePictureInPicture = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.disablePictureInPicture = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLVideoElement_set_disablePictureInPicture, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_set_disablePictureInPicture, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_set_disablePictureInPicture, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.disablePictureInPicture = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_set_disablePictureInPicture, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLVideoElement_cancelVideoFrameCallback = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.cancelVideoFrameCallback.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLVideoElement_cancelVideoFrameCallback 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLVideoElement_cancelVideoFrameCallback 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLVideoElement_cancelVideoFrameCallback 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_cancelVideoFrameCallback, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - -this.HTMLVideoElement_requestPictureInPicture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.requestPictureInPicture.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLVideoElement_requestPictureInPicture 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLVideoElement_requestPictureInPicture 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLVideoElement_requestPictureInPicture 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_requestPictureInPicture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cancelVideoFrameCallback.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_cancelVideoFrameCallback, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_cancelVideoFrameCallback, 返回function'); + break + default: + } - + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_cancelVideoFrameCallback, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLVideoElement_requestVideoFrameCallback = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.requestVideoFrameCallback.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLVideoElement_requestVideoFrameCallback 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLVideoElement_requestVideoFrameCallback 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLVideoElement_requestVideoFrameCallback 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_requestVideoFrameCallback, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLVideoElement_get_webkitSupportsFullscreen = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.webkitSupportsFullscreen; - let type = typeof result; - switch (type) { + let result = dom_element.requestVideoFrameCallback.apply(dom_element, arguments); + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLVideoElement_get_webkitSupportsFullscreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLVideoElement_requestVideoFrameCallback, 返回object'); break - case "function": - console.log("[*] HTMLVideoElement_get_webkitSupportsFullscreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLVideoElement_requestVideoFrameCallback, 返回function'); break default: - // string number - console.log("[*] HTMLVideoElement_get_webkitSupportsFullscreen 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_get_webkitSupportsFullscreen, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_requestVideoFrameCallback, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.HTMLVideoElement_get_webkitDisplayingFullscreen = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.webkitDisplayingFullscreen; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLVideoElement_get_webkitDisplayingFullscreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] HTMLVideoElement_get_webkitDisplayingFullscreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLVideoElement_get_webkitDisplayingFullscreen 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_get_webkitDisplayingFullscreen, this =>", this + '', ", result =>", result + '', info); - } - return result; -} this.HTMLVideoElement_getVideoPlaybackQuality = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getVideoPlaybackQuality.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLVideoElement_getVideoPlaybackQuality 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLVideoElement_getVideoPlaybackQuality 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLVideoElement_getVideoPlaybackQuality 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_getVideoPlaybackQuality, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getVideoPlaybackQuality.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_getVideoPlaybackQuality, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_getVideoPlaybackQuality, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_getVideoPlaybackQuality, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLVideoElement_requestPictureInPicture = function () { + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.requestPictureInPicture.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_requestPictureInPicture, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_requestPictureInPicture, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_requestPictureInPicture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLVideoElement_webkitEnterFullScreen = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.webkitEnterFullScreen.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLVideoElement_webkitEnterFullScreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLVideoElement_webkitEnterFullScreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLVideoElement_webkitEnterFullScreen 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_webkitEnterFullScreen, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.webkitEnterFullScreen.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_webkitEnterFullScreen, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_webkitEnterFullScreen, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_webkitEnterFullScreen, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLVideoElement_webkitEnterFullscreen = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.webkitEnterFullscreen.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLVideoElement_webkitEnterFullscreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLVideoElement_webkitEnterFullscreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLVideoElement_webkitEnterFullscreen 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_webkitEnterFullscreen, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.webkitEnterFullscreen.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_webkitEnterFullscreen, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_webkitEnterFullscreen, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_webkitEnterFullscreen, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLVideoElement_webkitExitFullScreen = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.webkitExitFullScreen.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLVideoElement_webkitExitFullScreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLVideoElement_webkitExitFullScreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLVideoElement_webkitExitFullScreen 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_webkitExitFullScreen, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.webkitExitFullScreen.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_webkitExitFullScreen, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_webkitExitFullScreen, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_webkitExitFullScreen, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLVideoElement_webkitExitFullscreen = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.webkitExitFullscreen.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLVideoElement_webkitExitFullscreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLVideoElement_webkitExitFullscreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLVideoElement_webkitExitFullscreen 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLVideoElement_webkitExitFullscreen, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLVideoElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.webkitExitFullscreen.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLVideoElement_webkitExitFullscreen, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLVideoElement_webkitExitFullscreen, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLVideoElement_webkitExitFullscreen, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLUListElement_get_compact = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLUListElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.compact; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLUListElement_get_compact 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLUListElement_get_compact, 返回object'); break - case "function": - console.log("[*] HTMLUListElement_get_compact 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLUListElement_get_compact, 返回function'); break default: - // string number - console.log("[*] HTMLUListElement_get_compact 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLUListElement_get_compact, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLUListElement_get_compact, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLUListElement_set_compact = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLUListElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.compact = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLUListElement_set_compact, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLUListElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLUListElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLUListElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLUListElement_set_compact, set object'); break - case "function": - console.log("[*] HTMLUListElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLUListElement_set_compact, set function'); break default: - // string number - console.log("[*] HTMLUListElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.compact = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLUListElement_set_compact, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLUListElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLUListElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLUListElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLUListElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLUListElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLUListElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLUListElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLUListElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.type = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLUListElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLUListElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLUListElement_set_type, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLUListElement_set_type, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLUListElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLTrackElement_get_kind = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.kind; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTrackElement_get_kind 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTrackElement_get_kind, 返回object'); break - case "function": - console.log("[*] HTMLTrackElement_get_kind 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTrackElement_get_kind, 返回function'); break default: - // string number - console.log("[*] HTMLTrackElement_get_kind 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTrackElement_get_kind, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTrackElement_get_kind, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTrackElement_set_kind = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.kind = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTrackElement_set_kind, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTrackElement_get_src = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.src; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTrackElement_get_src 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTrackElement_set_kind, set object'); break - case "function": - console.log("[*] HTMLTrackElement_get_src 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTrackElement_set_kind, set function'); break default: - // string number - console.log("[*] HTMLTrackElement_get_src 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.kind = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTrackElement_set_kind, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTrackElement_get_src = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.src; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTrackElement_get_src, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTrackElement_get_src, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTrackElement_get_src, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTrackElement_get_src, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTrackElement_set_src = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.src = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTrackElement_set_src, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTrackElement_get_srclang = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.srclang; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTrackElement_get_srclang 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTrackElement_set_src, set object'); break - case "function": - console.log("[*] HTMLTrackElement_get_srclang 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTrackElement_set_src, set function'); break default: - // string number - console.log("[*] HTMLTrackElement_get_srclang 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.src = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTrackElement_set_src, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTrackElement_get_srclang = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.srclang; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTrackElement_get_srclang, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTrackElement_get_srclang, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTrackElement_get_srclang, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTrackElement_get_srclang, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTrackElement_set_srclang = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.srclang = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTrackElement_set_srclang, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTrackElement_get_label = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.label; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTrackElement_get_label 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTrackElement_set_srclang, set object'); break - case "function": - console.log("[*] HTMLTrackElement_get_label 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTrackElement_set_srclang, set function'); break default: - // string number - console.log("[*] HTMLTrackElement_get_label 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.srclang = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTrackElement_set_srclang, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTrackElement_get_label = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.label; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTrackElement_get_label, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTrackElement_get_label, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTrackElement_get_label, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTrackElement_get_label, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTrackElement_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.label = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTrackElement_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTrackElement_get_default = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.default; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTrackElement_get_default 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTrackElement_set_label, set object'); break - case "function": - console.log("[*] HTMLTrackElement_get_default 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTrackElement_set_label, set function'); break default: - // string number - console.log("[*] HTMLTrackElement_get_default 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.label = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTrackElement_set_label, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTrackElement_get_default = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.default; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTrackElement_get_default, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTrackElement_get_default, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTrackElement_get_default, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTrackElement_get_default, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTrackElement_set_default = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.default = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTrackElement_set_default, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTrackElement_get_readyState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLTrackElement_set_default, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTrackElement_set_default, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.default = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTrackElement_set_default, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTrackElement_get_readyState = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.readyState; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTrackElement_get_readyState 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTrackElement_get_readyState, 返回object'); break - case "function": - console.log("[*] HTMLTrackElement_get_readyState 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTrackElement_get_readyState, 返回function'); break default: - // string number - console.log("[*] HTMLTrackElement_get_readyState 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTrackElement_get_readyState, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTrackElement_get_readyState, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTrackElement_get_track = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTrackElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.track; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTrackElement_get_track 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTrackElement_get_track, 返回object'); break - case "function": - console.log("[*] HTMLTrackElement_get_track 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTrackElement_get_track, 返回function'); break default: - // string number - console.log("[*] HTMLTrackElement_get_track 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTrackElement_get_track, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTrackElement_get_track, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTitleElement_get_text = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTitleElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.text; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTitleElement_get_text 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTitleElement_get_text, 返回object'); break - case "function": - console.log("[*] HTMLTitleElement_get_text 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTitleElement_get_text, 返回function'); break default: - // string number - console.log("[*] HTMLTitleElement_get_text 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTitleElement_get_text, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTitleElement_get_text, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTitleElement_set_text = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTitleElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.text = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTitleElement_set_text, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLTitleElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLTitleElement_set_text, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTitleElement_set_text, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.text = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTitleElement_set_text, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLTimeElement_get_dateTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTimeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.dateTime; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTimeElement_get_dateTime 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTimeElement_get_dateTime, 返回object'); break - case "function": - console.log("[*] HTMLTimeElement_get_dateTime 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTimeElement_get_dateTime, 返回function'); break default: - // string number - console.log("[*] HTMLTimeElement_get_dateTime 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTimeElement_get_dateTime, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTimeElement_get_dateTime, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTimeElement_set_dateTime = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTimeElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.dateTime = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTimeElement_set_dateTime, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLTimeElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLTimeElement_set_dateTime, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTimeElement_set_dateTime, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.dateTime = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTimeElement_set_dateTime, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLTextAreaElement_get_autocomplete = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.autocomplete; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_autocomplete 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_get_autocomplete, 返回object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_autocomplete 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_get_autocomplete, 返回function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_autocomplete 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_autocomplete, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_autocomplete, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_autocomplete = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.autocomplete = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_autocomplete, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_cols = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.cols; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_cols 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_autocomplete, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_cols 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_autocomplete, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_cols 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.autocomplete = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_autocomplete, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_cols = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cols; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_cols, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_cols, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_cols, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_cols, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_cols = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.cols = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_cols, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_dirName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.dirName; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_dirName 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_cols, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_dirName 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_cols, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_dirName 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.cols = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_cols, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_dirName = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.dirName; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_dirName, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_dirName, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_dirName, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_dirName, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_dirName = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.dirName = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_dirName, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_disabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.disabled; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_disabled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_dirName, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_disabled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_dirName, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_disabled 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.dirName = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_dirName, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_disabled = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.disabled; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_disabled, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_disabled, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_disabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_disabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_disabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.disabled = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_disabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_form = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.form; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_form 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_disabled, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_form 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_disabled, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_form 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.disabled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_disabled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_form = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.form; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_form, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_form, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_form, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_form, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTextAreaElement_get_maxLength = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.maxLength; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_maxLength 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_get_maxLength, 返回object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_maxLength 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_get_maxLength, 返回function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_maxLength 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_maxLength, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_maxLength, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_maxLength = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.maxLength = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_maxLength, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_minLength = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.minLength; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_minLength 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_maxLength, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_minLength 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_maxLength, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_minLength 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.maxLength = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_maxLength, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_minLength = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.minLength; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_minLength, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_minLength, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_minLength, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_minLength, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_minLength = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.minLength = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_minLength, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_minLength, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_minLength, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.minLength = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_minLength, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_name = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.name; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_name, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_name, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_placeholder = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.placeholder; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_placeholder 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_name, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_placeholder 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_name, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_placeholder 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_placeholder = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.placeholder; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_placeholder, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_placeholder, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_placeholder, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_placeholder, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_placeholder = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.placeholder = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_placeholder, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_readOnly = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.readOnly; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_readOnly 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_placeholder, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_readOnly 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_placeholder, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_readOnly 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.placeholder = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_placeholder, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_readOnly = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.readOnly; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_readOnly, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_readOnly, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_readOnly, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_readOnly, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_readOnly = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.readOnly = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_readOnly, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_required = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.required; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_required 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_readOnly, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_required 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_readOnly, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_required 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.readOnly = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_readOnly, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_required = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.required; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_required, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_required, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_required, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_required, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_required = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.required = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_required, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_rows = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.rows; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_rows 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_required, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_rows 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_required, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_rows 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.required = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_required, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_rows = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rows; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_rows, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_rows, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_rows, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_rows, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_rows = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.rows = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_rows, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_wrap = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.wrap; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_wrap 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_rows, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_wrap 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_rows, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_wrap 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.rows = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_rows, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_wrap = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.wrap; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_wrap, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_wrap, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_wrap, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_wrap, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_wrap = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.wrap = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_wrap, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_wrap, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_wrap, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.wrap = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_wrap, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTextAreaElement_get_defaultValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.defaultValue; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_defaultValue 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_get_defaultValue, 返回object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_defaultValue 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_get_defaultValue, 返回function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_defaultValue 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_defaultValue, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_defaultValue, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_defaultValue = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.defaultValue = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_defaultValue, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_defaultValue, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_defaultValue, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.defaultValue = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_defaultValue, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_value = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.value; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_value, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_value, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_textLength = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_set_value, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_set_value, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_textLength = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.textLength; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_textLength 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_get_textLength, 返回object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_textLength 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_get_textLength, 返回function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_textLength 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_textLength, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_textLength, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTextAreaElement_get_willValidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.willValidate; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_willValidate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_get_willValidate, 返回object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_willValidate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_get_willValidate, 返回function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_willValidate 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_willValidate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_willValidate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTextAreaElement_get_validity = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.validity; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_validity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_get_validity, 返回object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_validity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_get_validity, 返回function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_validity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_validity, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_validity, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTextAreaElement_get_validationMessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.validationMessage; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_validationMessage 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_get_validationMessage, 返回object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_validationMessage 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_get_validationMessage, 返回function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_validationMessage 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_validationMessage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_validationMessage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTextAreaElement_get_labels = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.labels; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_labels 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_get_labels, 返回object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_labels 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_get_labels, 返回function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_labels 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_labels, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_labels, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTextAreaElement_get_selectionStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.selectionStart; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_selectionStart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_get_selectionStart, 返回object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_selectionStart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_get_selectionStart, 返回function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_selectionStart 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_selectionStart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_selectionStart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_selectionStart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.selectionStart = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_selectionStart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_selectionEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.selectionEnd; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_selectionEnd 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_selectionStart, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_selectionEnd 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_selectionStart, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_selectionEnd 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.selectionStart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_selectionStart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_selectionEnd = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.selectionEnd; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_selectionEnd, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_selectionEnd, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_selectionEnd, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_selectionEnd, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_selectionEnd = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.selectionEnd = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_selectionEnd, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTextAreaElement_get_selectionDirection = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.selectionDirection; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTextAreaElement_get_selectionDirection 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTextAreaElement_set_selectionEnd, set object'); break - case "function": - console.log("[*] HTMLTextAreaElement_get_selectionDirection 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTextAreaElement_set_selectionEnd, set function'); break default: - // string number - console.log("[*] HTMLTextAreaElement_get_selectionDirection 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.selectionEnd = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_selectionEnd, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTextAreaElement_get_selectionDirection = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.selectionDirection; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_selectionDirection, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_get_selectionDirection, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_get_selectionDirection, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_get_selectionDirection, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTextAreaElement_set_selectionDirection = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.selectionDirection = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTextAreaElement_set_selectionDirection, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_set_selectionDirection, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_set_selectionDirection, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.selectionDirection = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_set_selectionDirection, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLTextAreaElement_checkValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.checkValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTextAreaElement_checkValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTextAreaElement_checkValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTextAreaElement_checkValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_checkValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.checkValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_checkValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_checkValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_checkValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTextAreaElement_reportValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.reportValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTextAreaElement_reportValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTextAreaElement_reportValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTextAreaElement_reportValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_reportValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.reportValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_reportValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_reportValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_reportValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTextAreaElement_select = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.select.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTextAreaElement_select 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTextAreaElement_select 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTextAreaElement_select 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_select, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.select.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_select, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_select, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_select, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTextAreaElement_setCustomValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setCustomValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTextAreaElement_setCustomValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTextAreaElement_setCustomValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTextAreaElement_setCustomValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_setCustomValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setCustomValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_setCustomValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_setCustomValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_setCustomValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTextAreaElement_setRangeText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setRangeText.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTextAreaElement_setRangeText 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTextAreaElement_setRangeText 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTextAreaElement_setRangeText 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_setRangeText, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setRangeText.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_setRangeText, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_setRangeText, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_setRangeText, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTextAreaElement_setSelectionRange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setSelectionRange.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTextAreaElement_setSelectionRange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTextAreaElement_setSelectionRange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTextAreaElement_setSelectionRange 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTextAreaElement_setSelectionRange, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTextAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setSelectionRange.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTextAreaElement_setSelectionRange, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTextAreaElement_setSelectionRange, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTextAreaElement_setSelectionRange, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTemplateElement_get_content = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTemplateElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.content; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTemplateElement_get_content 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTemplateElement_get_content, 返回object'); break - case "function": - console.log("[*] HTMLTemplateElement_get_content 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTemplateElement_get_content, 返回function'); break default: - // string number - console.log("[*] HTMLTemplateElement_get_content 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTemplateElement_get_content, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTemplateElement_get_content, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.HTMLTemplateElement_get_shadowRootMode = function () { - // 非法调用 + +this.HTMLTemplateElement_get_shadowRoot = function () { let r = cbb_wf.checkIllegal(this, "HTMLTemplateElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.shadowRootMode; - let type = typeof result; - switch (type) { + let result = dom_element.shadowRoot; + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTemplateElement_get_shadowRootMode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTemplateElement_get_shadowRoot, 返回object'); break - case "function": - console.log("[*] HTMLTemplateElement_get_shadowRootMode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTemplateElement_get_shadowRoot, 返回function'); break default: - // string number - console.log("[*] HTMLTemplateElement_get_shadowRootMode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTemplateElement_get_shadowRootMode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTemplateElement_get_shadowRoot, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.HTMLTemplateElement_set_shadowRootMode = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTemplateElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.shadowRootMode = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTemplateElement_set_shadowRootMode, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTemplateElement_get_shadowRootDelegatesFocus = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTemplateElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.shadowRootDelegatesFocus; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTemplateElement_get_shadowRootDelegatesFocus 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] HTMLTemplateElement_get_shadowRootDelegatesFocus 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTemplateElement_get_shadowRootDelegatesFocus 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTemplateElement_get_shadowRootDelegatesFocus, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLTemplateElement_set_shadowRootDelegatesFocus = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTemplateElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.shadowRootDelegatesFocus = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTemplateElement_set_shadowRootDelegatesFocus, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTemplateElement_get_shadowRootClonable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTemplateElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.shadowRootClonable; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTemplateElement_get_shadowRootClonable 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTemplateElement_get_shadowRootClonable 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTemplateElement_get_shadowRootClonable 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTemplateElement_get_shadowRootClonable, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLTemplateElement_set_shadowRootClonable = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTemplateElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.shadowRootClonable = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTemplateElement_set_shadowRootClonable, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLTableSectionElement_get_rows = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.rows; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableSectionElement_get_rows 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableSectionElement_get_rows, 返回object'); break - case "function": - console.log("[*] HTMLTableSectionElement_get_rows 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableSectionElement_get_rows, 返回function'); break default: - // string number - console.log("[*] HTMLTableSectionElement_get_rows 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableSectionElement_get_rows, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableSectionElement_get_rows, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTableSectionElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableSectionElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableSectionElement_get_align, 返回object'); break - case "function": - console.log("[*] HTMLTableSectionElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableSectionElement_get_align, 返回function'); break default: - // string number - console.log("[*] HTMLTableSectionElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableSectionElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableSectionElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableSectionElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableSectionElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableSectionElement_get_ch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ch; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableSectionElement_get_ch 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableSectionElement_set_align, set object'); break - case "function": - console.log("[*] HTMLTableSectionElement_get_ch 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableSectionElement_set_align, set function'); break default: - // string number - console.log("[*] HTMLTableSectionElement_get_ch 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableSectionElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableSectionElement_get_ch = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ch; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableSectionElement_get_ch, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableSectionElement_get_ch, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableSectionElement_get_ch, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableSectionElement_get_ch, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableSectionElement_set_ch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ch = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableSectionElement_set_ch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableSectionElement_get_chOff = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.chOff; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableSectionElement_get_chOff 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableSectionElement_set_ch, set object'); break - case "function": - console.log("[*] HTMLTableSectionElement_get_chOff 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableSectionElement_set_ch, set function'); break default: - // string number - console.log("[*] HTMLTableSectionElement_get_chOff 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ch = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableSectionElement_set_ch, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableSectionElement_get_chOff = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.chOff; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableSectionElement_get_chOff, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableSectionElement_get_chOff, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableSectionElement_get_chOff, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableSectionElement_get_chOff, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableSectionElement_set_chOff = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.chOff = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableSectionElement_set_chOff, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableSectionElement_get_vAlign = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.vAlign; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableSectionElement_get_vAlign 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableSectionElement_set_chOff, set object'); break - case "function": - console.log("[*] HTMLTableSectionElement_get_vAlign 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableSectionElement_set_chOff, set function'); break default: - // string number - console.log("[*] HTMLTableSectionElement_get_vAlign 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.chOff = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableSectionElement_set_chOff, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableSectionElement_get_vAlign = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.vAlign; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableSectionElement_get_vAlign, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableSectionElement_get_vAlign, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableSectionElement_get_vAlign, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableSectionElement_get_vAlign, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableSectionElement_set_vAlign = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.vAlign = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableSectionElement_set_vAlign, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLTableSectionElement_set_vAlign, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableSectionElement_set_vAlign, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.vAlign = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableSectionElement_set_vAlign, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLTableSectionElement_deleteRow = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.deleteRow.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTableSectionElement_deleteRow 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTableSectionElement_deleteRow 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTableSectionElement_deleteRow 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableSectionElement_deleteRow, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.deleteRow.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableSectionElement_deleteRow, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableSectionElement_deleteRow, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableSectionElement_deleteRow, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTableSectionElement_insertRow = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.insertRow.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTableSectionElement_insertRow 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTableSectionElement_insertRow 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTableSectionElement_insertRow 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableSectionElement_insertRow, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTableSectionElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.insertRow.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableSectionElement_insertRow, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableSectionElement_insertRow, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableSectionElement_insertRow, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTableRowElement_get_rowIndex = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.rowIndex; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableRowElement_get_rowIndex 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableRowElement_get_rowIndex, 返回object'); break - case "function": - console.log("[*] HTMLTableRowElement_get_rowIndex 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableRowElement_get_rowIndex, 返回function'); break default: - // string number - console.log("[*] HTMLTableRowElement_get_rowIndex 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableRowElement_get_rowIndex, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_get_rowIndex, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTableRowElement_get_sectionRowIndex = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.sectionRowIndex; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableRowElement_get_sectionRowIndex 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableRowElement_get_sectionRowIndex, 返回object'); break - case "function": - console.log("[*] HTMLTableRowElement_get_sectionRowIndex 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableRowElement_get_sectionRowIndex, 返回function'); break default: - // string number - console.log("[*] HTMLTableRowElement_get_sectionRowIndex 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableRowElement_get_sectionRowIndex, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_get_sectionRowIndex, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTableRowElement_get_cells = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.cells; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableRowElement_get_cells 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableRowElement_get_cells, 返回object'); break - case "function": - console.log("[*] HTMLTableRowElement_get_cells 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableRowElement_get_cells, 返回function'); break default: - // string number - console.log("[*] HTMLTableRowElement_get_cells 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableRowElement_get_cells, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_get_cells, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTableRowElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableRowElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableRowElement_get_align, 返回object'); break - case "function": - console.log("[*] HTMLTableRowElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableRowElement_get_align, 返回function'); break default: - // string number - console.log("[*] HTMLTableRowElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableRowElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableRowElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableRowElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableRowElement_get_ch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ch; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableRowElement_get_ch 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableRowElement_set_align, set object'); break - case "function": - console.log("[*] HTMLTableRowElement_get_ch 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableRowElement_set_align, set function'); break default: - // string number - console.log("[*] HTMLTableRowElement_get_ch 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableRowElement_get_ch = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ch; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableRowElement_get_ch, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableRowElement_get_ch, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableRowElement_get_ch, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_get_ch, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableRowElement_set_ch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ch = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableRowElement_set_ch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableRowElement_get_chOff = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.chOff; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableRowElement_get_chOff 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableRowElement_set_ch, set object'); break - case "function": - console.log("[*] HTMLTableRowElement_get_chOff 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableRowElement_set_ch, set function'); break default: - // string number - console.log("[*] HTMLTableRowElement_get_chOff 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ch = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_set_ch, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableRowElement_get_chOff = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.chOff; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableRowElement_get_chOff, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableRowElement_get_chOff, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableRowElement_get_chOff, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_get_chOff, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableRowElement_set_chOff = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.chOff = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableRowElement_set_chOff, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableRowElement_get_vAlign = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.vAlign; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableRowElement_get_vAlign 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableRowElement_set_chOff, set object'); break - case "function": - console.log("[*] HTMLTableRowElement_get_vAlign 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableRowElement_set_chOff, set function'); break default: - // string number - console.log("[*] HTMLTableRowElement_get_vAlign 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.chOff = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_set_chOff, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableRowElement_get_vAlign = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.vAlign; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableRowElement_get_vAlign, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableRowElement_get_vAlign, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableRowElement_get_vAlign, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_get_vAlign, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableRowElement_set_vAlign = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.vAlign = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableRowElement_set_vAlign, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableRowElement_get_bgColor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.bgColor; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableRowElement_get_bgColor 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableRowElement_set_vAlign, set object'); break - case "function": - console.log("[*] HTMLTableRowElement_get_bgColor 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableRowElement_set_vAlign, set function'); break default: - // string number - console.log("[*] HTMLTableRowElement_get_bgColor 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.vAlign = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_set_vAlign, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableRowElement_get_bgColor = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.bgColor; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableRowElement_get_bgColor, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableRowElement_get_bgColor, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableRowElement_get_bgColor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_get_bgColor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableRowElement_set_bgColor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.bgColor = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableRowElement_set_bgColor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLTableRowElement_set_bgColor, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableRowElement_set_bgColor, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.bgColor = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_set_bgColor, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLTableRowElement_deleteCell = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.deleteCell.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTableRowElement_deleteCell 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTableRowElement_deleteCell 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTableRowElement_deleteCell 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableRowElement_deleteCell, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.deleteCell.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableRowElement_deleteCell, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableRowElement_deleteCell, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_deleteCell, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTableRowElement_insertCell = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.insertCell.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTableRowElement_insertCell 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTableRowElement_insertCell 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTableRowElement_insertCell 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableRowElement_insertCell, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTableRowElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.insertCell.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableRowElement_insertCell, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableRowElement_insertCell, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableRowElement_insertCell, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTableElement_get_caption = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.caption; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableElement_get_caption 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableElement_get_caption, 返回object'); break - case "function": - console.log("[*] HTMLTableElement_get_caption 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableElement_get_caption, 返回function'); break default: - // string number - console.log("[*] HTMLTableElement_get_caption 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_get_caption, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_get_caption, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableElement_set_caption = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.caption = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableElement_set_caption, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableElement_get_tHead = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.tHead; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableElement_get_tHead 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableElement_set_caption, set object'); break - case "function": - console.log("[*] HTMLTableElement_get_tHead 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableElement_set_caption, set function'); break default: - // string number - console.log("[*] HTMLTableElement_get_tHead 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.caption = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_set_caption, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableElement_get_tHead = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.tHead; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_get_tHead, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_get_tHead, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_get_tHead, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_get_tHead, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableElement_set_tHead = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.tHead = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableElement_set_tHead, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableElement_get_tFoot = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.tFoot; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableElement_get_tFoot 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableElement_set_tHead, set object'); break - case "function": - console.log("[*] HTMLTableElement_get_tFoot 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableElement_set_tHead, set function'); break default: - // string number - console.log("[*] HTMLTableElement_get_tFoot 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.tHead = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_set_tHead, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableElement_get_tFoot = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.tFoot; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_get_tFoot, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_get_tFoot, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_get_tFoot, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_get_tFoot, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableElement_set_tFoot = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.tFoot = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableElement_set_tFoot, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableElement_get_tBodies = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_set_tFoot, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_set_tFoot, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.tFoot = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_set_tFoot, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableElement_get_tBodies = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.tBodies; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableElement_get_tBodies 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableElement_get_tBodies, 返回object'); break - case "function": - console.log("[*] HTMLTableElement_get_tBodies 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableElement_get_tBodies, 返回function'); break default: - // string number - console.log("[*] HTMLTableElement_get_tBodies 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_get_tBodies, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_get_tBodies, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTableElement_get_rows = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.rows; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableElement_get_rows 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableElement_get_rows, 返回object'); break - case "function": - console.log("[*] HTMLTableElement_get_rows 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableElement_get_rows, 返回function'); break default: - // string number - console.log("[*] HTMLTableElement_get_rows 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_get_rows, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_get_rows, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTableElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableElement_get_align, 返回object'); break - case "function": - console.log("[*] HTMLTableElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableElement_get_align, 返回function'); break default: - // string number - console.log("[*] HTMLTableElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableElement_get_border = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.border; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableElement_get_border 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableElement_set_align, set object'); break - case "function": - console.log("[*] HTMLTableElement_get_border 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableElement_set_align, set function'); break default: - // string number - console.log("[*] HTMLTableElement_get_border 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableElement_get_border = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.border; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_get_border, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_get_border, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_get_border, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_get_border, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableElement_set_border = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.border = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableElement_set_border, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableElement_get_frame = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.frame; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableElement_get_frame 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableElement_set_border, set object'); break - case "function": - console.log("[*] HTMLTableElement_get_frame 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableElement_set_border, set function'); break default: - // string number - console.log("[*] HTMLTableElement_get_frame 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.border = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_set_border, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableElement_get_frame = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.frame; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_get_frame, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_get_frame, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_get_frame, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_get_frame, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableElement_set_frame = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.frame = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableElement_set_frame, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableElement_get_rules = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.rules; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableElement_get_rules 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableElement_set_frame, set object'); break - case "function": - console.log("[*] HTMLTableElement_get_rules 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableElement_set_frame, set function'); break default: - // string number - console.log("[*] HTMLTableElement_get_rules 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.frame = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_set_frame, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableElement_get_rules = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rules; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_get_rules, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_get_rules, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_get_rules, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_get_rules, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableElement_set_rules = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.rules = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableElement_set_rules, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableElement_get_summary = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.summary; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableElement_get_summary 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableElement_set_rules, set object'); break - case "function": - console.log("[*] HTMLTableElement_get_summary 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableElement_set_rules, set function'); break default: - // string number - console.log("[*] HTMLTableElement_get_summary 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.rules = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_set_rules, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableElement_get_summary = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.summary; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_get_summary, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_get_summary, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_get_summary, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_get_summary, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableElement_set_summary = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.summary = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableElement_set_summary, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableElement_set_summary, set object'); break - case "function": - console.log("[*] HTMLTableElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableElement_set_summary, set function'); break default: - // string number - console.log("[*] HTMLTableElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.summary = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_set_summary, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableElement_get_width = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_get_width, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_get_width, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.width = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableElement_get_bgColor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.bgColor; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableElement_get_bgColor 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableElement_set_width, set object'); break - case "function": - console.log("[*] HTMLTableElement_get_bgColor 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableElement_set_width, set function'); break default: - // string number - console.log("[*] HTMLTableElement_get_bgColor 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.width = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_set_width, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableElement_get_bgColor = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.bgColor; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_get_bgColor, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_get_bgColor, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_get_bgColor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_get_bgColor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableElement_set_bgColor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.bgColor = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableElement_set_bgColor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableElement_get_cellPadding = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.cellPadding; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableElement_get_cellPadding 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableElement_set_bgColor, set object'); break - case "function": - console.log("[*] HTMLTableElement_get_cellPadding 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableElement_set_bgColor, set function'); break default: - // string number - console.log("[*] HTMLTableElement_get_cellPadding 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.bgColor = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_set_bgColor, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableElement_get_cellPadding = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cellPadding; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_get_cellPadding, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_get_cellPadding, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_get_cellPadding, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_get_cellPadding, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableElement_set_cellPadding = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.cellPadding = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableElement_set_cellPadding, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableElement_get_cellSpacing = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.cellSpacing; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableElement_get_cellSpacing 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableElement_set_cellPadding, set object'); break - case "function": - console.log("[*] HTMLTableElement_get_cellSpacing 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableElement_set_cellPadding, set function'); break default: - // string number - console.log("[*] HTMLTableElement_get_cellSpacing 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.cellPadding = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_set_cellPadding, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableElement_get_cellSpacing = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cellSpacing; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_get_cellSpacing, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_get_cellSpacing, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_get_cellSpacing, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_get_cellSpacing, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableElement_set_cellSpacing = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.cellSpacing = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableElement_set_cellSpacing, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_set_cellSpacing, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_set_cellSpacing, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.cellSpacing = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_set_cellSpacing, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLTableElement_createCaption = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createCaption.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTableElement_createCaption 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTableElement_createCaption 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTableElement_createCaption 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_createCaption, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createCaption.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_createCaption, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_createCaption, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_createCaption, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTableElement_createTBody = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createTBody.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTableElement_createTBody 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTableElement_createTBody 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTableElement_createTBody 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_createTBody, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createTBody.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_createTBody, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_createTBody, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_createTBody, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTableElement_createTFoot = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createTFoot.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTableElement_createTFoot 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTableElement_createTFoot 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTableElement_createTFoot 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_createTFoot, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createTFoot.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_createTFoot, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_createTFoot, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_createTFoot, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTableElement_createTHead = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createTHead.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTableElement_createTHead 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTableElement_createTHead 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTableElement_createTHead 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_createTHead, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createTHead.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_createTHead, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_createTHead, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_createTHead, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTableElement_deleteCaption = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.deleteCaption.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTableElement_deleteCaption 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTableElement_deleteCaption 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTableElement_deleteCaption 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_deleteCaption, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.deleteCaption.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_deleteCaption, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_deleteCaption, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_deleteCaption, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTableElement_deleteRow = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.deleteRow.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTableElement_deleteRow 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTableElement_deleteRow 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTableElement_deleteRow 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_deleteRow, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.deleteRow.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_deleteRow, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_deleteRow, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_deleteRow, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTableElement_deleteTFoot = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.deleteTFoot.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTableElement_deleteTFoot 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTableElement_deleteTFoot 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTableElement_deleteTFoot 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_deleteTFoot, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.deleteTFoot.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_deleteTFoot, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_deleteTFoot, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_deleteTFoot, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTableElement_deleteTHead = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.deleteTHead.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTableElement_deleteTHead 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTableElement_deleteTHead 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTableElement_deleteTHead 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_deleteTHead, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.deleteTHead.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_deleteTHead, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_deleteTHead, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_deleteTHead, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTableElement_insertRow = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.insertRow.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLTableElement_insertRow 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLTableElement_insertRow 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLTableElement_insertRow 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableElement_insertRow, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLTableElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.insertRow.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableElement_insertRow, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableElement_insertRow, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableElement_insertRow, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLTableColElement_get_span = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.span; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableColElement_get_span 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableColElement_get_span, 返回object'); break - case "function": - console.log("[*] HTMLTableColElement_get_span 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableColElement_get_span, 返回function'); break default: - // string number - console.log("[*] HTMLTableColElement_get_span 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableColElement_get_span, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableColElement_get_span, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableColElement_set_span = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.span = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableColElement_set_span, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableColElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableColElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableColElement_set_span, set object'); break - case "function": - console.log("[*] HTMLTableColElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableColElement_set_span, set function'); break default: - // string number - console.log("[*] HTMLTableColElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.span = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableColElement_set_span, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableColElement_get_align = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.align; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableColElement_get_align, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableColElement_get_align, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableColElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableColElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableColElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableColElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableColElement_get_ch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ch; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableColElement_get_ch 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableColElement_set_align, set object'); break - case "function": - console.log("[*] HTMLTableColElement_get_ch 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableColElement_set_align, set function'); break default: - // string number - console.log("[*] HTMLTableColElement_get_ch 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableColElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableColElement_get_ch = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ch; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableColElement_get_ch, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableColElement_get_ch, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableColElement_get_ch, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableColElement_get_ch, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableColElement_set_ch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ch = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableColElement_set_ch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableColElement_get_chOff = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.chOff; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableColElement_get_chOff 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableColElement_set_ch, set object'); break - case "function": - console.log("[*] HTMLTableColElement_get_chOff 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableColElement_set_ch, set function'); break default: - // string number - console.log("[*] HTMLTableColElement_get_chOff 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ch = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableColElement_set_ch, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableColElement_get_chOff = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.chOff; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableColElement_get_chOff, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableColElement_get_chOff, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableColElement_get_chOff, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableColElement_get_chOff, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableColElement_set_chOff = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.chOff = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableColElement_set_chOff, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableColElement_get_vAlign = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.vAlign; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableColElement_get_vAlign 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableColElement_set_chOff, set object'); break - case "function": - console.log("[*] HTMLTableColElement_get_vAlign 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableColElement_set_chOff, set function'); break default: - // string number - console.log("[*] HTMLTableColElement_get_vAlign 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.chOff = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableColElement_set_chOff, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableColElement_get_vAlign = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.vAlign; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableColElement_get_vAlign, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableColElement_get_vAlign, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableColElement_get_vAlign, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableColElement_get_vAlign, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableColElement_set_vAlign = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.vAlign = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableColElement_set_vAlign, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableColElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableColElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableColElement_set_vAlign, set object'); break - case "function": - console.log("[*] HTMLTableColElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableColElement_set_vAlign, set function'); break default: - // string number - console.log("[*] HTMLTableColElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.vAlign = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableColElement_set_vAlign, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableColElement_get_width = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableColElement_get_width, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableColElement_get_width, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableColElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableColElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableColElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.width = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableColElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLTableColElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLTableColElement_set_width, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableColElement_set_width, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.width = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableColElement_set_width, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLTableCellElement_get_colSpan = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.colSpan; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_colSpan 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_get_colSpan, 返回object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_colSpan 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_get_colSpan, 返回function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_colSpan 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_colSpan, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_colSpan, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCellElement_set_colSpan = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.colSpan = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCellElement_set_colSpan, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableCellElement_get_rowSpan = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.rowSpan; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_rowSpan 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_set_colSpan, set object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_rowSpan 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_set_colSpan, set function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_rowSpan 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.colSpan = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_set_colSpan, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableCellElement_get_rowSpan = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rowSpan; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableCellElement_get_rowSpan, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableCellElement_get_rowSpan, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_rowSpan, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_rowSpan, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCellElement_set_rowSpan = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.rowSpan = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCellElement_set_rowSpan, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableCellElement_get_headers = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.headers; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_headers 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_set_rowSpan, set object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_headers 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_set_rowSpan, set function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_headers 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.rowSpan = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_set_rowSpan, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableCellElement_get_headers = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.headers; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableCellElement_get_headers, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableCellElement_get_headers, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_headers, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_headers, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCellElement_set_headers = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.headers = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCellElement_set_headers, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableCellElement_get_cellIndex = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.cellIndex; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_cellIndex 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_set_headers, set object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_cellIndex 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_set_headers, set function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_cellIndex 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.headers = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_set_headers, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableCellElement_get_cellIndex = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cellIndex; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableCellElement_get_cellIndex, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableCellElement_get_cellIndex, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_cellIndex, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_cellIndex, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLTableCellElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_get_align, 返回object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_get_align, 返回function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCellElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCellElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableCellElement_get_axis = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.axis; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_axis 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_set_align, set object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_axis 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_set_align, set function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_axis 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableCellElement_get_axis = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.axis; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableCellElement_get_axis, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableCellElement_get_axis, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_axis, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_axis, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCellElement_set_axis = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.axis = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCellElement_set_axis, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableCellElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.height; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_height 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_set_axis, set object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_height 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_set_axis, set function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_height 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.axis = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_set_axis, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableCellElement_get_height = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableCellElement_get_height, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableCellElement_get_height, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCellElement_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.height = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCellElement_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableCellElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_set_height, set object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_set_height, set function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.height = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_set_height, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableCellElement_get_width = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableCellElement_get_width, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableCellElement_get_width, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCellElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.width = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCellElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableCellElement_get_ch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ch; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_ch 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_set_width, set object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_ch 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_set_width, set function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_ch 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.width = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_set_width, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableCellElement_get_ch = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ch; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableCellElement_get_ch, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableCellElement_get_ch, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_ch, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_ch, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCellElement_set_ch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ch = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCellElement_set_ch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableCellElement_get_chOff = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.chOff; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_chOff 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_set_ch, set object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_chOff 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_set_ch, set function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_chOff 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ch = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_set_ch, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableCellElement_get_chOff = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.chOff; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableCellElement_get_chOff, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableCellElement_get_chOff, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_chOff, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_chOff, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCellElement_set_chOff = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.chOff = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCellElement_set_chOff, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableCellElement_get_noWrap = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.noWrap; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_noWrap 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_set_chOff, set object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_noWrap 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_set_chOff, set function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_noWrap 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.chOff = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_set_chOff, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableCellElement_get_noWrap = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.noWrap; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableCellElement_get_noWrap, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableCellElement_get_noWrap, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_noWrap, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_noWrap, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCellElement_set_noWrap = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.noWrap = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCellElement_set_noWrap, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableCellElement_get_vAlign = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.vAlign; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_vAlign 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_set_noWrap, set object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_vAlign 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_set_noWrap, set function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_vAlign 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.noWrap = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_set_noWrap, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableCellElement_get_vAlign = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.vAlign; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableCellElement_get_vAlign, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableCellElement_get_vAlign, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_vAlign, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_vAlign, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCellElement_set_vAlign = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.vAlign = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCellElement_set_vAlign, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableCellElement_get_bgColor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.bgColor; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_bgColor 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_set_vAlign, set object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_bgColor 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_set_vAlign, set function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_bgColor 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.vAlign = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_set_vAlign, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableCellElement_get_bgColor = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.bgColor; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableCellElement_get_bgColor, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableCellElement_get_bgColor, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_bgColor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_bgColor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCellElement_set_bgColor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.bgColor = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCellElement_set_bgColor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableCellElement_get_abbr = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.abbr; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_abbr 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_set_bgColor, set object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_abbr 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_set_bgColor, set function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_abbr 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.bgColor = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_set_bgColor, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableCellElement_get_abbr = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.abbr; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableCellElement_get_abbr, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableCellElement_get_abbr, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_abbr, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_abbr, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCellElement_set_abbr = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.abbr = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCellElement_set_abbr, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLTableCellElement_get_scope = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.scope; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCellElement_get_scope 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCellElement_set_abbr, set object'); break - case "function": - console.log("[*] HTMLTableCellElement_get_scope 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCellElement_set_abbr, set function'); break default: - // string number - console.log("[*] HTMLTableCellElement_get_scope 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.abbr = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_set_abbr, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLTableCellElement_get_scope = function () { + let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.scope; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLTableCellElement_get_scope, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLTableCellElement_get_scope, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCellElement_get_scope, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_get_scope, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCellElement_set_scope = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.scope = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCellElement_set_scope, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLTableCellElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLTableCellElement_set_scope, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableCellElement_set_scope, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.scope = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCellElement_set_scope, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLTableCaptionElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLTableCaptionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLTableCaptionElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLTableCaptionElement_get_align, 返回object'); break - case "function": - console.log("[*] HTMLTableCaptionElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLTableCaptionElement_get_align, 返回function'); break default: - // string number - console.log("[*] HTMLTableCaptionElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLTableCaptionElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCaptionElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLTableCaptionElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLTableCaptionElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLTableCaptionElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLTableCaptionElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLTableCaptionElement_set_align, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLTableCaptionElement_set_align, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLTableCaptionElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLStyleElement_get_disabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLStyleElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.disabled; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLStyleElement_get_disabled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLStyleElement_get_disabled, 返回object'); break - case "function": - console.log("[*] HTMLStyleElement_get_disabled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLStyleElement_get_disabled, 返回function'); break default: - // string number - console.log("[*] HTMLStyleElement_get_disabled 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLStyleElement_get_disabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLStyleElement_get_disabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLStyleElement_set_disabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLStyleElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.disabled = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLStyleElement_set_disabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLStyleElement_get_media = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLStyleElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.media; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLStyleElement_get_media 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLStyleElement_set_disabled, set object'); break - case "function": - console.log("[*] HTMLStyleElement_get_media 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLStyleElement_set_disabled, set function'); break default: - // string number - console.log("[*] HTMLStyleElement_get_media 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.disabled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLStyleElement_set_disabled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLStyleElement_get_media = function () { + let r = cbb_wf.checkIllegal(this, "HTMLStyleElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.media; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLStyleElement_get_media, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLStyleElement_get_media, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLStyleElement_get_media, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLStyleElement_get_media, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLStyleElement_set_media = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLStyleElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.media = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLStyleElement_set_media, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLStyleElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLStyleElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLStyleElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLStyleElement_set_media, set object'); break - case "function": - console.log("[*] HTMLStyleElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLStyleElement_set_media, set function'); break default: - // string number - console.log("[*] HTMLStyleElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.media = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLStyleElement_set_media, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLStyleElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLStyleElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLStyleElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLStyleElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLStyleElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLStyleElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLStyleElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLStyleElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.type = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLStyleElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLStyleElement_get_sheet = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLStyleElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLStyleElement_set_type, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLStyleElement_set_type, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLStyleElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLStyleElement_get_sheet = function () { + let r = cbb_wf.checkIllegal(this, "HTMLStyleElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.sheet; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLStyleElement_get_sheet 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLStyleElement_get_sheet, 返回object'); break - case "function": - console.log("[*] HTMLStyleElement_get_sheet 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLStyleElement_get_sheet, 返回function'); break default: - // string number - console.log("[*] HTMLStyleElement_get_sheet 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLStyleElement_get_sheet, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLStyleElement_get_sheet, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.HTMLStyleElement_get_blocking = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLStyleElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.blocking; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLStyleElement_get_blocking 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] HTMLStyleElement_get_blocking 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLStyleElement_get_blocking 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLStyleElement_get_blocking, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLStyleElement_set_blocking = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLStyleElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.blocking = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLStyleElement_set_blocking, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLSourceElement_get_src = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.src; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSourceElement_get_src 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSourceElement_get_src, 返回object'); break - case "function": - console.log("[*] HTMLSourceElement_get_src 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSourceElement_get_src, 返回function'); break default: - // string number - console.log("[*] HTMLSourceElement_get_src 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSourceElement_get_src, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSourceElement_get_src, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSourceElement_set_src = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.src = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSourceElement_set_src, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSourceElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSourceElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSourceElement_set_src, set object'); break - case "function": - console.log("[*] HTMLSourceElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSourceElement_set_src, set function'); break default: - // string number - console.log("[*] HTMLSourceElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.src = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSourceElement_set_src, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSourceElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSourceElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLSourceElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSourceElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSourceElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSourceElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.type = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSourceElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSourceElement_get_srcset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.srcset; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSourceElement_get_srcset 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSourceElement_set_type, set object'); break - case "function": - console.log("[*] HTMLSourceElement_get_srcset 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSourceElement_set_type, set function'); break default: - // string number - console.log("[*] HTMLSourceElement_get_srcset 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSourceElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSourceElement_get_srcset = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.srcset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSourceElement_get_srcset, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLSourceElement_get_srcset, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSourceElement_get_srcset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSourceElement_get_srcset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSourceElement_set_srcset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.srcset = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSourceElement_set_srcset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSourceElement_get_sizes = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.sizes; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSourceElement_get_sizes 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSourceElement_set_srcset, set object'); break - case "function": - console.log("[*] HTMLSourceElement_get_sizes 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSourceElement_set_srcset, set function'); break default: - // string number - console.log("[*] HTMLSourceElement_get_sizes 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.srcset = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSourceElement_set_srcset, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSourceElement_get_sizes = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.sizes; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSourceElement_get_sizes, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLSourceElement_get_sizes, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSourceElement_get_sizes, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSourceElement_get_sizes, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSourceElement_set_sizes = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.sizes = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSourceElement_set_sizes, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSourceElement_get_media = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.media; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSourceElement_get_media 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSourceElement_set_sizes, set object'); break - case "function": - console.log("[*] HTMLSourceElement_get_media 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSourceElement_set_sizes, set function'); break default: - // string number - console.log("[*] HTMLSourceElement_get_media 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.sizes = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSourceElement_set_sizes, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSourceElement_get_media = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.media; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSourceElement_get_media, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLSourceElement_get_media, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSourceElement_get_media, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSourceElement_get_media, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSourceElement_set_media = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.media = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSourceElement_set_media, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSourceElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSourceElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSourceElement_set_media, set object'); break - case "function": - console.log("[*] HTMLSourceElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSourceElement_set_media, set function'); break default: - // string number - console.log("[*] HTMLSourceElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.media = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSourceElement_set_media, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSourceElement_get_width = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSourceElement_get_width, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLSourceElement_get_width, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSourceElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSourceElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSourceElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.width = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSourceElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSourceElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.height; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSourceElement_get_height 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSourceElement_set_width, set object'); break - case "function": - console.log("[*] HTMLSourceElement_get_height 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSourceElement_set_width, set function'); break default: - // string number - console.log("[*] HTMLSourceElement_get_height 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.width = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSourceElement_set_width, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSourceElement_get_height = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSourceElement_get_height, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLSourceElement_get_height, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSourceElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSourceElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSourceElement_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.height = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSourceElement_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLSourceElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLSourceElement_set_height, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLSourceElement_set_height, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.height = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSourceElement_set_height, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLSlotElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSlotElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSlotElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSlotElement_get_name, 返回object'); break - case "function": - console.log("[*] HTMLSlotElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSlotElement_get_name, 返回function'); break default: - // string number - console.log("[*] HTMLSlotElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSlotElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSlotElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSlotElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSlotElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSlotElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLSlotElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLSlotElement_set_name, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLSlotElement_set_name, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSlotElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLSlotElement_assign = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSlotElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.assign.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLSlotElement_assign 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLSlotElement_assign 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLSlotElement_assign 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSlotElement_assign, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLSlotElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.assign.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSlotElement_assign, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLSlotElement_assign, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSlotElement_assign, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLSlotElement_assignedElements = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSlotElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.assignedElements.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLSlotElement_assignedElements 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLSlotElement_assignedElements 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLSlotElement_assignedElements 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSlotElement_assignedElements, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLSlotElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.assignedElements.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSlotElement_assignedElements, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLSlotElement_assignedElements, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSlotElement_assignedElements, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLSlotElement_assignedNodes = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSlotElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.assignedNodes.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLSlotElement_assignedNodes 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLSlotElement_assignedNodes 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLSlotElement_assignedNodes 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSlotElement_assignedNodes, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLSlotElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.assignedNodes.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSlotElement_assignedNodes, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLSlotElement_assignedNodes, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSlotElement_assignedNodes, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLSelectElement_get_autocomplete = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.autocomplete; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_autocomplete 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_get_autocomplete, 返回object'); break - case "function": - console.log("[*] HTMLSelectElement_get_autocomplete 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_get_autocomplete, 返回function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_autocomplete 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_autocomplete, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_autocomplete, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSelectElement_set_autocomplete = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.autocomplete = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSelectElement_set_autocomplete, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSelectElement_get_disabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.disabled; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_disabled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_set_autocomplete, set object'); break - case "function": - console.log("[*] HTMLSelectElement_get_disabled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_set_autocomplete, set function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_disabled 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.autocomplete = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_set_autocomplete, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSelectElement_get_disabled = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.disabled; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_get_disabled, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_get_disabled, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_disabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_disabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSelectElement_set_disabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.disabled = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSelectElement_set_disabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSelectElement_get_form = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.form; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_form 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_set_disabled, set object'); break - case "function": - console.log("[*] HTMLSelectElement_get_form 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_set_disabled, set function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_form 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.disabled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_set_disabled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSelectElement_get_form = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.form; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_get_form, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_get_form, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_form, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_form, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLSelectElement_get_multiple = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.multiple; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_multiple 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_get_multiple, 返回object'); break - case "function": - console.log("[*] HTMLSelectElement_get_multiple 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_get_multiple, 返回function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_multiple 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_multiple, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_multiple, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSelectElement_set_multiple = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.multiple = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSelectElement_set_multiple, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSelectElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_set_multiple, set object'); break - case "function": - console.log("[*] HTMLSelectElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_set_multiple, set function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.multiple = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_set_multiple, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSelectElement_get_name = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.name; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_get_name, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_get_name, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSelectElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSelectElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSelectElement_get_required = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.required; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_required 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_set_name, set object'); break - case "function": - console.log("[*] HTMLSelectElement_get_required 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_set_name, set function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_required 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSelectElement_get_required = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.required; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_get_required, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_get_required, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_required, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_required, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSelectElement_set_required = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.required = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSelectElement_set_required, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSelectElement_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.size; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_size 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_set_required, set object'); break - case "function": - console.log("[*] HTMLSelectElement_get_size 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_set_required, set function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_size 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.required = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_set_required, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSelectElement_get_size = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.size; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_get_size, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_get_size, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_size, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_size, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSelectElement_set_size = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.size = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSelectElement_set_size, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSelectElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_set_size, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_set_size, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.size = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_set_size, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSelectElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_get_type, 返回object'); break - case "function": - console.log("[*] HTMLSelectElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_get_type, 返回function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLSelectElement_get_options = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.options; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_options 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_get_options, 返回object'); break - case "function": - console.log("[*] HTMLSelectElement_get_options 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_get_options, 返回function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_options 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_options, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_options, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLSelectElement_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.length; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_length 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_get_length, 返回object'); break - case "function": - console.log("[*] HTMLSelectElement_get_length 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_get_length, 返回function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_length 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_length, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSelectElement_set_length = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.length = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSelectElement_set_length, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSelectElement_get_selectedOptions = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.selectedOptions; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_selectedOptions 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_set_length, set object'); break - case "function": - console.log("[*] HTMLSelectElement_get_selectedOptions 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_set_length, set function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_selectedOptions 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.length = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_set_length, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSelectElement_get_selectedOptions = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.selectedOptions; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_get_selectedOptions, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_get_selectedOptions, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_selectedOptions, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_selectedOptions, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLSelectElement_get_selectedIndex = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.selectedIndex; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_selectedIndex 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_get_selectedIndex, 返回object'); break - case "function": - console.log("[*] HTMLSelectElement_get_selectedIndex 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_get_selectedIndex, 返回function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_selectedIndex 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_selectedIndex, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_selectedIndex, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSelectElement_set_selectedIndex = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.selectedIndex = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSelectElement_set_selectedIndex, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSelectElement_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_set_selectedIndex, set object'); break - case "function": - console.log("[*] HTMLSelectElement_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_set_selectedIndex, set function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.selectedIndex = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_set_selectedIndex, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSelectElement_get_value = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.value; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_get_value, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_get_value, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLSelectElement_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLSelectElement_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLSelectElement_get_willValidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_set_value, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_set_value, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLSelectElement_get_willValidate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.willValidate; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_willValidate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_get_willValidate, 返回object'); break - case "function": - console.log("[*] HTMLSelectElement_get_willValidate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_get_willValidate, 返回function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_willValidate 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_willValidate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_willValidate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLSelectElement_get_validity = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.validity; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_validity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_get_validity, 返回object'); break - case "function": - console.log("[*] HTMLSelectElement_get_validity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_get_validity, 返回function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_validity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_validity, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_validity, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLSelectElement_get_validationMessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.validationMessage; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_validationMessage 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_get_validationMessage, 返回object'); break - case "function": - console.log("[*] HTMLSelectElement_get_validationMessage 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_get_validationMessage, 返回function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_validationMessage 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_validationMessage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_validationMessage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLSelectElement_get_labels = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.labels; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLSelectElement_get_labels 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLSelectElement_get_labels, 返回object'); break - case "function": - console.log("[*] HTMLSelectElement_get_labels 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLSelectElement_get_labels, 返回function'); break default: - // string number - console.log("[*] HTMLSelectElement_get_labels 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_get_labels, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_get_labels, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.HTMLSelectElement_add = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.add.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLSelectElement_add 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLSelectElement_add 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLSelectElement_add 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_add, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLSelectElement_checkValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.checkValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLSelectElement_checkValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLSelectElement_checkValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLSelectElement_checkValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_checkValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLSelectElement_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.item.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLSelectElement_item 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLSelectElement_item 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLSelectElement_item 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLSelectElement_namedItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.namedItem.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLSelectElement_namedItem 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLSelectElement_namedItem 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLSelectElement_namedItem 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_namedItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLSelectElement_remove = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.remove.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLSelectElement_remove 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLSelectElement_remove 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLSelectElement_remove 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_remove, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLSelectElement_reportValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.reportValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLSelectElement_reportValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLSelectElement_reportValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLSelectElement_reportValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_reportValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLSelectElement_setCustomValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setCustomValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLSelectElement_setCustomValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLSelectElement_setCustomValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLSelectElement_setCustomValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_setCustomValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLSelectElement_showPicker = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.showPicker.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLSelectElement_showPicker 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLSelectElement_showPicker 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLSelectElement_showPicker 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLSelectElement_showPicker, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLScriptElement_supports = function () { -let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_supports, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; +this.HTMLSelectElement_add = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.add.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_add, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_add, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_add, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; } + +this.HTMLSelectElement_checkValidity = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.checkValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_checkValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_checkValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_checkValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLSelectElement_item = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.item.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_item, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_item, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLSelectElement_namedItem = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.namedItem.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_namedItem, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_namedItem, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_namedItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLSelectElement_remove = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.remove.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_remove, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_remove, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_remove, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLSelectElement_reportValidity = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.reportValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_reportValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_reportValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_reportValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLSelectElement_setCustomValidity = function () { + let r = cbb_wf.checkIllegal(this, "HTMLSelectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setCustomValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLSelectElement_setCustomValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLSelectElement_setCustomValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLSelectElement_setCustomValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLScriptElement_get_src = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.src; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_src 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_get_src, 返回object'); break - case "function": - console.log("[*] HTMLScriptElement_get_src 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_get_src, 返回function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_src 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_src, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_get_src, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLScriptElement_set_src = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.src = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_src, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLScriptElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_set_src, set object'); break - case "function": - console.log("[*] HTMLScriptElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_set_src, set function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.src = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_set_src, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLScriptElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLScriptElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLScriptElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLScriptElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.type = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLScriptElement_get_noModule = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.noModule; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_noModule 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_set_type, set object'); break - case "function": - console.log("[*] HTMLScriptElement_get_noModule 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_set_type, set function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_noModule 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLScriptElement_get_noModule = function () { + let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.noModule; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLScriptElement_get_noModule, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLScriptElement_get_noModule, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_noModule, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_get_noModule, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLScriptElement_set_noModule = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.noModule = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_noModule, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLScriptElement_get_charset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.charset; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_charset 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_set_noModule, set object'); break - case "function": - console.log("[*] HTMLScriptElement_get_charset 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_set_noModule, set function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_charset 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.noModule = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_set_noModule, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLScriptElement_get_charset = function () { + let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.charset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLScriptElement_get_charset, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLScriptElement_get_charset, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_charset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_get_charset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLScriptElement_set_charset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.charset = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_charset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLScriptElement_get_async = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.async; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_async 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_set_charset, set object'); break - case "function": - console.log("[*] HTMLScriptElement_get_async 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_set_charset, set function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_async 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.charset = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_set_charset, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLScriptElement_get_async = function () { + let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.async; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLScriptElement_get_async, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLScriptElement_get_async, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_async, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_get_async, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLScriptElement_set_async = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.async = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_async, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLScriptElement_get_defer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.defer; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_defer 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_set_async, set object'); break - case "function": - console.log("[*] HTMLScriptElement_get_defer 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_set_async, set function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_defer 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.async = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_set_async, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLScriptElement_get_defer = function () { + let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.defer; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLScriptElement_get_defer, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLScriptElement_get_defer, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_defer, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_get_defer, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLScriptElement_set_defer = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.defer = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_defer, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLScriptElement_get_crossOrigin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.crossOrigin; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_crossOrigin 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_set_defer, set object'); break - case "function": - console.log("[*] HTMLScriptElement_get_crossOrigin 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_set_defer, set function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_crossOrigin 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.defer = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_set_defer, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLScriptElement_get_crossOrigin = function () { + let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.crossOrigin; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLScriptElement_get_crossOrigin, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLScriptElement_get_crossOrigin, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_crossOrigin, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_get_crossOrigin, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLScriptElement_set_crossOrigin = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.crossOrigin = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_crossOrigin, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLScriptElement_get_text = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.text; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_text 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_set_crossOrigin, set object'); break - case "function": - console.log("[*] HTMLScriptElement_get_text 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_set_crossOrigin, set function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_text 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.crossOrigin = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_set_crossOrigin, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLScriptElement_get_text = function () { + let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.text; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLScriptElement_get_text, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLScriptElement_get_text, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_text, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_get_text, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLScriptElement_set_text = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.text = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_text, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLScriptElement_get_referrerPolicy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.referrerPolicy; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_referrerPolicy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_set_text, set object'); break - case "function": - console.log("[*] HTMLScriptElement_get_referrerPolicy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_set_text, set function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_referrerPolicy 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.text = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_set_text, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLScriptElement_get_referrerPolicy = function () { + let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.referrerPolicy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLScriptElement_get_referrerPolicy, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLScriptElement_get_referrerPolicy, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_referrerPolicy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_get_referrerPolicy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLScriptElement_set_referrerPolicy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.referrerPolicy = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_referrerPolicy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLScriptElement_get_fetchPriority = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.fetchPriority; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_fetchPriority 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_set_referrerPolicy, set object'); break - case "function": - console.log("[*] HTMLScriptElement_get_fetchPriority 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_set_referrerPolicy, set function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_fetchPriority 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.referrerPolicy = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_fetchPriority, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_set_referrerPolicy, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLScriptElement_set_fetchPriority = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.fetchPriority = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_fetchPriority, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLScriptElement_get_event = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.event; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_event 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_get_event, 返回object'); break - case "function": - console.log("[*] HTMLScriptElement_get_event 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_get_event, 返回function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_event 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_event, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_get_event, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLScriptElement_set_event = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.event = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_event, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLScriptElement_get_htmlFor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.htmlFor; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_htmlFor 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_set_event, set object'); break - case "function": - console.log("[*] HTMLScriptElement_get_htmlFor 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_set_event, set function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_htmlFor 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.event = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_set_event, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLScriptElement_get_htmlFor = function () { + let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.htmlFor; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLScriptElement_get_htmlFor, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLScriptElement_get_htmlFor, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_htmlFor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_get_htmlFor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLScriptElement_set_htmlFor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.htmlFor = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_htmlFor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLScriptElement_get_integrity = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.integrity; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_integrity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_set_htmlFor, set object'); break - case "function": - console.log("[*] HTMLScriptElement_get_integrity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_set_htmlFor, set function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_integrity 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.htmlFor = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_set_htmlFor, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLScriptElement_get_integrity = function () { + let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.integrity; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLScriptElement_get_integrity, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLScriptElement_get_integrity, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_integrity, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_get_integrity, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLScriptElement_set_integrity = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.integrity = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_integrity, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLScriptElement_get_blocking = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.blocking; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_blocking 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_set_integrity, set object'); break - case "function": - console.log("[*] HTMLScriptElement_get_blocking 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_set_integrity, set function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_blocking 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.integrity = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_blocking, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_set_integrity, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLScriptElement_set_blocking = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.blocking = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_blocking, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLScriptElement_get_attributionSrc = function () { - // 非法调用 +this.HTMLScriptElement_get_fetchPriority = function () { let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.attributionSrc; - let type = typeof result; - switch (type) { + let result = dom_element.fetchPriority; + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLScriptElement_get_attributionSrc 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLScriptElement_get_fetchPriority, 返回object'); break - case "function": - console.log("[*] HTMLScriptElement_get_attributionSrc 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLScriptElement_get_fetchPriority, 返回function'); break default: - // string number - console.log("[*] HTMLScriptElement_get_attributionSrc 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLScriptElement_get_attributionSrc, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_get_fetchPriority, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.HTMLScriptElement_set_attributionSrc = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.attributionSrc = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLScriptElement_set_attributionSrc, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } +this.HTMLScriptElement_set_fetchPriority = function (val) { + let r = cbb_wf.checkIllegal(this, "HTMLScriptElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLScriptElement_set_fetchPriority, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLScriptElement_set_fetchPriority, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.fetchPriority = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLScriptElement_set_fetchPriority, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLQuoteElement_get_cite = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLQuoteElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.cite; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLQuoteElement_get_cite 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLQuoteElement_get_cite, 返回object'); break - case "function": - console.log("[*] HTMLQuoteElement_get_cite 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLQuoteElement_get_cite, 返回function'); break default: - // string number - console.log("[*] HTMLQuoteElement_get_cite 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLQuoteElement_get_cite, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLQuoteElement_get_cite, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLQuoteElement_set_cite = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLQuoteElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.cite = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLQuoteElement_set_cite, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLQuoteElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLQuoteElement_set_cite, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLQuoteElement_set_cite, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.cite = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLQuoteElement_set_cite, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLProgressElement_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLProgressElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLProgressElement_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLProgressElement_get_value, 返回object'); break - case "function": - console.log("[*] HTMLProgressElement_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLProgressElement_get_value, 返回function'); break default: - // string number - console.log("[*] HTMLProgressElement_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLProgressElement_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLProgressElement_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLProgressElement_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLProgressElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLProgressElement_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLProgressElement_get_max = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLProgressElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.max; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLProgressElement_get_max 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLProgressElement_set_value, set object'); break - case "function": - console.log("[*] HTMLProgressElement_get_max 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLProgressElement_set_value, set function'); break default: - // string number - console.log("[*] HTMLProgressElement_get_max 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLProgressElement_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLProgressElement_get_max = function () { + let r = cbb_wf.checkIllegal(this, "HTMLProgressElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.max; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLProgressElement_get_max, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLProgressElement_get_max, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLProgressElement_get_max, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLProgressElement_get_max, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLProgressElement_set_max = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLProgressElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.max = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLProgressElement_set_max, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLProgressElement_get_position = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLProgressElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLProgressElement_set_max, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLProgressElement_set_max, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.max = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLProgressElement_set_max, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLProgressElement_get_position = function () { + let r = cbb_wf.checkIllegal(this, "HTMLProgressElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.position; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLProgressElement_get_position 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLProgressElement_get_position, 返回object'); break - case "function": - console.log("[*] HTMLProgressElement_get_position 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLProgressElement_get_position, 返回function'); break default: - // string number - console.log("[*] HTMLProgressElement_get_position 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLProgressElement_get_position, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLProgressElement_get_position, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLProgressElement_get_labels = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLProgressElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.labels; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLProgressElement_get_labels 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLProgressElement_get_labels, 返回object'); break - case "function": - console.log("[*] HTMLProgressElement_get_labels 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLProgressElement_get_labels, 返回function'); break default: - // string number - console.log("[*] HTMLProgressElement_get_labels 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLProgressElement_get_labels, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLProgressElement_get_labels, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLPreElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLPreElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLPreElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLPreElement_get_width, 返回object'); break - case "function": - console.log("[*] HTMLPreElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLPreElement_get_width, 返回function'); break default: - // string number - console.log("[*] HTMLPreElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLPreElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLPreElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLPreElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLPreElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.width = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLPreElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLPreElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLPreElement_set_width, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLPreElement_set_width, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.width = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLPreElement_set_width, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLParamElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLParamElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLParamElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLParamElement_get_name, 返回object'); break - case "function": - console.log("[*] HTMLParamElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLParamElement_get_name, 返回function'); break default: - // string number - console.log("[*] HTMLParamElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLParamElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLParamElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLParamElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLParamElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLParamElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLParamElement_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLParamElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLParamElement_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLParamElement_set_name, set object'); break - case "function": - console.log("[*] HTMLParamElement_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLParamElement_set_name, set function'); break default: - // string number - console.log("[*] HTMLParamElement_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLParamElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLParamElement_get_value = function () { + let r = cbb_wf.checkIllegal(this, "HTMLParamElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.value; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLParamElement_get_value, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLParamElement_get_value, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLParamElement_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLParamElement_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLParamElement_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLParamElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLParamElement_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLParamElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLParamElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLParamElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLParamElement_set_value, set object'); break - case "function": - console.log("[*] HTMLParamElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLParamElement_set_value, set function'); break default: - // string number - console.log("[*] HTMLParamElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLParamElement_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLParamElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLParamElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLParamElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLParamElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLParamElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLParamElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLParamElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLParamElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.type = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLParamElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLParamElement_get_valueType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLParamElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.valueType; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLParamElement_get_valueType 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLParamElement_set_type, set object'); break - case "function": - console.log("[*] HTMLParamElement_get_valueType 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLParamElement_set_type, set function'); break default: - // string number - console.log("[*] HTMLParamElement_get_valueType 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLParamElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLParamElement_get_valueType = function () { + let r = cbb_wf.checkIllegal(this, "HTMLParamElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.valueType; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLParamElement_get_valueType, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLParamElement_get_valueType, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLParamElement_get_valueType, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLParamElement_get_valueType, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLParamElement_set_valueType = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLParamElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.valueType = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLParamElement_set_valueType, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLParamElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLParamElement_set_valueType, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLParamElement_set_valueType, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.valueType = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLParamElement_set_valueType, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLParagraphElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLParagraphElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLParagraphElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLParagraphElement_get_align, 返回object'); break - case "function": - console.log("[*] HTMLParagraphElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLParagraphElement_get_align, 返回function'); break default: - // string number - console.log("[*] HTMLParagraphElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLParagraphElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLParagraphElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLParagraphElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLParagraphElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLParagraphElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLParagraphElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLParagraphElement_set_align, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLParagraphElement_set_align, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLParagraphElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLOutputElement_get_htmlFor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.htmlFor; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOutputElement_get_htmlFor 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOutputElement_get_htmlFor, 返回object'); break - case "function": - console.log("[*] HTMLOutputElement_get_htmlFor 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOutputElement_get_htmlFor, 返回function'); break default: - // string number - console.log("[*] HTMLOutputElement_get_htmlFor 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOutputElement_get_htmlFor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_get_htmlFor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOutputElement_set_htmlFor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.htmlFor = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOutputElement_set_htmlFor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOutputElement_get_form = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.form; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOutputElement_get_form 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOutputElement_set_htmlFor, set object'); break - case "function": - console.log("[*] HTMLOutputElement_get_form 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOutputElement_set_htmlFor, set function'); break default: - // string number - console.log("[*] HTMLOutputElement_get_form 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.htmlFor = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_set_htmlFor, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOutputElement_get_form = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.form; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOutputElement_get_form, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLOutputElement_get_form, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOutputElement_get_form, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_get_form, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLOutputElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOutputElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOutputElement_get_name, 返回object'); break - case "function": - console.log("[*] HTMLOutputElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOutputElement_get_name, 返回function'); break default: - // string number - console.log("[*] HTMLOutputElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOutputElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOutputElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOutputElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOutputElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOutputElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOutputElement_set_name, set object'); break - case "function": - console.log("[*] HTMLOutputElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOutputElement_set_name, set function'); break default: - // string number - console.log("[*] HTMLOutputElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOutputElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOutputElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLOutputElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOutputElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLOutputElement_get_defaultValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.defaultValue; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOutputElement_get_defaultValue 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOutputElement_get_defaultValue, 返回object'); break - case "function": - console.log("[*] HTMLOutputElement_get_defaultValue 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOutputElement_get_defaultValue, 返回function'); break default: - // string number - console.log("[*] HTMLOutputElement_get_defaultValue 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOutputElement_get_defaultValue, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_get_defaultValue, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOutputElement_set_defaultValue = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.defaultValue = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOutputElement_set_defaultValue, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOutputElement_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOutputElement_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOutputElement_set_defaultValue, set object'); break - case "function": - console.log("[*] HTMLOutputElement_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOutputElement_set_defaultValue, set function'); break default: - // string number - console.log("[*] HTMLOutputElement_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.defaultValue = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_set_defaultValue, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOutputElement_get_value = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.value; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOutputElement_get_value, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLOutputElement_get_value, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOutputElement_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOutputElement_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOutputElement_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOutputElement_get_willValidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLOutputElement_set_value, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLOutputElement_set_value, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOutputElement_get_willValidate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.willValidate; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOutputElement_get_willValidate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOutputElement_get_willValidate, 返回object'); break - case "function": - console.log("[*] HTMLOutputElement_get_willValidate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOutputElement_get_willValidate, 返回function'); break default: - // string number - console.log("[*] HTMLOutputElement_get_willValidate 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOutputElement_get_willValidate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_get_willValidate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLOutputElement_get_validity = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.validity; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOutputElement_get_validity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOutputElement_get_validity, 返回object'); break - case "function": - console.log("[*] HTMLOutputElement_get_validity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOutputElement_get_validity, 返回function'); break default: - // string number - console.log("[*] HTMLOutputElement_get_validity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOutputElement_get_validity, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_get_validity, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLOutputElement_get_validationMessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.validationMessage; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOutputElement_get_validationMessage 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOutputElement_get_validationMessage, 返回object'); break - case "function": - console.log("[*] HTMLOutputElement_get_validationMessage 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOutputElement_get_validationMessage, 返回function'); break default: - // string number - console.log("[*] HTMLOutputElement_get_validationMessage 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOutputElement_get_validationMessage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_get_validationMessage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLOutputElement_get_labels = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.labels; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOutputElement_get_labels 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOutputElement_get_labels, 返回object'); break - case "function": - console.log("[*] HTMLOutputElement_get_labels 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOutputElement_get_labels, 返回function'); break default: - // string number - console.log("[*] HTMLOutputElement_get_labels 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOutputElement_get_labels, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_get_labels, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLOutputElement_checkValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.checkValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLOutputElement_checkValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLOutputElement_checkValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLOutputElement_checkValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOutputElement_checkValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.checkValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOutputElement_checkValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLOutputElement_checkValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_checkValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLOutputElement_reportValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.reportValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLOutputElement_reportValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLOutputElement_reportValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLOutputElement_reportValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOutputElement_reportValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.reportValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOutputElement_reportValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLOutputElement_reportValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_reportValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLOutputElement_setCustomValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setCustomValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLOutputElement_setCustomValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLOutputElement_setCustomValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLOutputElement_setCustomValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOutputElement_setCustomValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLOutputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setCustomValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOutputElement_setCustomValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLOutputElement_setCustomValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOutputElement_setCustomValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLOptionsCollection_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOptionsCollection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.length; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOptionsCollection_get_length 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOptionsCollection_get_length, 返回object'); break - case "function": - console.log("[*] HTMLOptionsCollection_get_length 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOptionsCollection_get_length, 返回function'); break default: - // string number - console.log("[*] HTMLOptionsCollection_get_length 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOptionsCollection_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionsCollection_get_length, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOptionsCollection_set_length = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOptionsCollection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.length = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOptionsCollection_set_length, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOptionsCollection_get_selectedIndex = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOptionsCollection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.selectedIndex; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOptionsCollection_get_selectedIndex 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOptionsCollection_set_length, set object'); break - case "function": - console.log("[*] HTMLOptionsCollection_get_selectedIndex 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOptionsCollection_set_length, set function'); break default: - // string number - console.log("[*] HTMLOptionsCollection_get_selectedIndex 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.length = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionsCollection_set_length, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOptionsCollection_get_selectedIndex = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOptionsCollection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.selectedIndex; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOptionsCollection_get_selectedIndex, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLOptionsCollection_get_selectedIndex, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOptionsCollection_get_selectedIndex, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionsCollection_get_selectedIndex, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOptionsCollection_set_selectedIndex = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOptionsCollection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.selectedIndex = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOptionsCollection_set_selectedIndex, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLOptionsCollection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLOptionsCollection_set_selectedIndex, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLOptionsCollection_set_selectedIndex, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.selectedIndex = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionsCollection_set_selectedIndex, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLOptionsCollection_add = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOptionsCollection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.add.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLOptionsCollection_add 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLOptionsCollection_add 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLOptionsCollection_add 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOptionsCollection_add, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLOptionsCollection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.add.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOptionsCollection_add, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLOptionsCollection_add, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionsCollection_add, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLOptionsCollection_remove = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOptionsCollection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.remove.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLOptionsCollection_remove 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLOptionsCollection_remove 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLOptionsCollection_remove 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOptionsCollection_remove, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLOptionsCollection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.remove.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOptionsCollection_remove, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLOptionsCollection_remove, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionsCollection_remove, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLOptionElement_get_disabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.disabled; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOptionElement_get_disabled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOptionElement_get_disabled, 返回object'); break - case "function": - console.log("[*] HTMLOptionElement_get_disabled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOptionElement_get_disabled, 返回function'); break default: - // string number - console.log("[*] HTMLOptionElement_get_disabled 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOptionElement_get_disabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionElement_get_disabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOptionElement_set_disabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.disabled = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOptionElement_set_disabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOptionElement_get_form = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.form; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOptionElement_get_form 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOptionElement_set_disabled, set object'); break - case "function": - console.log("[*] HTMLOptionElement_get_form 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOptionElement_set_disabled, set function'); break default: - // string number - console.log("[*] HTMLOptionElement_get_form 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.disabled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionElement_set_disabled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOptionElement_get_form = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.form; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOptionElement_get_form, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLOptionElement_get_form, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOptionElement_get_form, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionElement_get_form, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLOptionElement_get_label = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.label; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOptionElement_get_label 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOptionElement_get_label, 返回object'); break - case "function": - console.log("[*] HTMLOptionElement_get_label 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOptionElement_get_label, 返回function'); break default: - // string number - console.log("[*] HTMLOptionElement_get_label 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOptionElement_get_label, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionElement_get_label, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOptionElement_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.label = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOptionElement_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOptionElement_get_defaultSelected = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.defaultSelected; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOptionElement_get_defaultSelected 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOptionElement_set_label, set object'); break - case "function": - console.log("[*] HTMLOptionElement_get_defaultSelected 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOptionElement_set_label, set function'); break default: - // string number - console.log("[*] HTMLOptionElement_get_defaultSelected 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.label = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionElement_set_label, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOptionElement_get_defaultSelected = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.defaultSelected; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOptionElement_get_defaultSelected, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLOptionElement_get_defaultSelected, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOptionElement_get_defaultSelected, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionElement_get_defaultSelected, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOptionElement_set_defaultSelected = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.defaultSelected = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOptionElement_set_defaultSelected, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOptionElement_get_selected = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.selected; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOptionElement_get_selected 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOptionElement_set_defaultSelected, set object'); break - case "function": - console.log("[*] HTMLOptionElement_get_selected 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOptionElement_set_defaultSelected, set function'); break default: - // string number - console.log("[*] HTMLOptionElement_get_selected 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.defaultSelected = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionElement_set_defaultSelected, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOptionElement_get_selected = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.selected; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOptionElement_get_selected, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLOptionElement_get_selected, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOptionElement_get_selected, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionElement_get_selected, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOptionElement_set_selected = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.selected = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOptionElement_set_selected, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOptionElement_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOptionElement_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOptionElement_set_selected, set object'); break - case "function": - console.log("[*] HTMLOptionElement_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOptionElement_set_selected, set function'); break default: - // string number - console.log("[*] HTMLOptionElement_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.selected = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionElement_set_selected, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOptionElement_get_value = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.value; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOptionElement_get_value, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLOptionElement_get_value, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOptionElement_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionElement_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOptionElement_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOptionElement_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOptionElement_get_text = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.text; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOptionElement_get_text 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOptionElement_set_value, set object'); break - case "function": - console.log("[*] HTMLOptionElement_get_text 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOptionElement_set_value, set function'); break default: - // string number - console.log("[*] HTMLOptionElement_get_text 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionElement_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOptionElement_get_text = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.text; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOptionElement_get_text, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLOptionElement_get_text, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOptionElement_get_text, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionElement_get_text, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOptionElement_set_text = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.text = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOptionElement_set_text, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOptionElement_get_index = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.index; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOptionElement_get_index 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOptionElement_set_text, set object'); break - case "function": - console.log("[*] HTMLOptionElement_get_index 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOptionElement_set_text, set function'); break default: - // string number - console.log("[*] HTMLOptionElement_get_index 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.text = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionElement_set_text, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOptionElement_get_index = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOptionElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.index; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOptionElement_get_index, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLOptionElement_get_index, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOptionElement_get_index, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptionElement_get_index, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLOptGroupElement_get_disabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOptGroupElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.disabled; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOptGroupElement_get_disabled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOptGroupElement_get_disabled, 返回object'); break - case "function": - console.log("[*] HTMLOptGroupElement_get_disabled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOptGroupElement_get_disabled, 返回function'); break default: - // string number - console.log("[*] HTMLOptGroupElement_get_disabled 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOptGroupElement_get_disabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptGroupElement_get_disabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOptGroupElement_set_disabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOptGroupElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.disabled = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOptGroupElement_set_disabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOptGroupElement_get_label = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOptGroupElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.label; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOptGroupElement_get_label 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOptGroupElement_set_disabled, set object'); break - case "function": - console.log("[*] HTMLOptGroupElement_get_label 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOptGroupElement_set_disabled, set function'); break default: - // string number - console.log("[*] HTMLOptGroupElement_get_label 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.disabled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptGroupElement_set_disabled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOptGroupElement_get_label = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOptGroupElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.label; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOptGroupElement_get_label, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLOptGroupElement_get_label, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOptGroupElement_get_label, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptGroupElement_get_label, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOptGroupElement_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOptGroupElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.label = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOptGroupElement_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLOptGroupElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLOptGroupElement_set_label, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLOptGroupElement_set_label, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.label = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOptGroupElement_set_label, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLObjectElement_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.data; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_data 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_get_data, 返回object'); break - case "function": - console.log("[*] HTMLObjectElement_get_data 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_get_data, 返回function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_data 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_data, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_data, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_data = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.data = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_data, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_set_data, set object'); break - case "function": - console.log("[*] HTMLObjectElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_set_data, set function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.data = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_data, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.type = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_set_type, set object'); break - case "function": - console.log("[*] HTMLObjectElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_set_type, set function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_name = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.name; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_get_name, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_get_name, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_useMap = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.useMap; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_useMap 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_set_name, set object'); break - case "function": - console.log("[*] HTMLObjectElement_get_useMap 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_set_name, set function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_useMap 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_useMap = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.useMap; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_get_useMap, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_get_useMap, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_useMap, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_useMap, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_useMap = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.useMap = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_useMap, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_form = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.form; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_form 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_set_useMap, set object'); break - case "function": - console.log("[*] HTMLObjectElement_get_form 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_set_useMap, set function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_form 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.useMap = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_useMap, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_form = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.form; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_get_form, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_get_form, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_form, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_form, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLObjectElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_get_width, 返回object'); break - case "function": - console.log("[*] HTMLObjectElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_get_width, 返回function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.width = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.height; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_height 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_set_width, set object'); break - case "function": - console.log("[*] HTMLObjectElement_get_height 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_set_width, set function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_height 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.width = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_width, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_height = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_get_height, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_get_height, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.height = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_contentDocument = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_set_height, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_set_height, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.height = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_height, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_contentDocument = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.contentDocument; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_contentDocument 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_get_contentDocument, 返回object'); break - case "function": - console.log("[*] HTMLObjectElement_get_contentDocument 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_get_contentDocument, 返回function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_contentDocument 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_contentDocument, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_contentDocument, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLObjectElement_get_contentWindow = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.contentWindow; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_contentWindow 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_get_contentWindow, 返回object'); break - case "function": - console.log("[*] HTMLObjectElement_get_contentWindow 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_get_contentWindow, 返回function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_contentWindow 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_contentWindow, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_contentWindow, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLObjectElement_get_willValidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.willValidate; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_willValidate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_get_willValidate, 返回object'); break - case "function": - console.log("[*] HTMLObjectElement_get_willValidate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_get_willValidate, 返回function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_willValidate 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_willValidate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_willValidate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLObjectElement_get_validity = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.validity; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_validity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_get_validity, 返回object'); break - case "function": - console.log("[*] HTMLObjectElement_get_validity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_get_validity, 返回function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_validity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_validity, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_validity, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLObjectElement_get_validationMessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.validationMessage; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_validationMessage 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_get_validationMessage, 返回object'); break - case "function": - console.log("[*] HTMLObjectElement_get_validationMessage 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_get_validationMessage, 返回function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_validationMessage 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_validationMessage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_validationMessage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLObjectElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_get_align, 返回object'); break - case "function": - console.log("[*] HTMLObjectElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_get_align, 返回function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_archive = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.archive; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_archive 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_set_align, set object'); break - case "function": - console.log("[*] HTMLObjectElement_get_archive 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_set_align, set function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_archive 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_archive = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.archive; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_get_archive, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_get_archive, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_archive, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_archive, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_archive = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.archive = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_archive, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_code = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.code; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_code 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_set_archive, set object'); break - case "function": - console.log("[*] HTMLObjectElement_get_code 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_set_archive, set function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_code 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.archive = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_archive, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_code = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.code; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_get_code, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_get_code, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_code, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_code, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_code = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.code = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_code, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_declare = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.declare; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_declare 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_set_code, set object'); break - case "function": - console.log("[*] HTMLObjectElement_get_declare 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_set_code, set function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_declare 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.code = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_code, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_declare = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.declare; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_get_declare, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_get_declare, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_declare, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_declare, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_declare = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.declare = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_declare, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_hspace = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hspace; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_hspace 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_set_declare, set object'); break - case "function": - console.log("[*] HTMLObjectElement_get_hspace 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_set_declare, set function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_hspace 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.declare = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_declare, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_hspace = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hspace; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_get_hspace, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_get_hspace, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_hspace, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_hspace, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_hspace = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.hspace = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_hspace, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_standby = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.standby; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_standby 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_set_hspace, set object'); break - case "function": - console.log("[*] HTMLObjectElement_get_standby 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_set_hspace, set function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_standby 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.hspace = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_hspace, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_standby = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.standby; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_get_standby, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_get_standby, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_standby, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_standby, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_standby = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.standby = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_standby, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_vspace = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.vspace; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_vspace 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_set_standby, set object'); break - case "function": - console.log("[*] HTMLObjectElement_get_vspace 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_set_standby, set function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_vspace 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.standby = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_standby, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_vspace = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.vspace; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_get_vspace, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_get_vspace, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_vspace, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_vspace, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_vspace = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.vspace = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_vspace, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_codeBase = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.codeBase; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_codeBase 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_set_vspace, set object'); break - case "function": - console.log("[*] HTMLObjectElement_get_codeBase 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_set_vspace, set function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_codeBase 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.vspace = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_vspace, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_codeBase = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.codeBase; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_get_codeBase, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_get_codeBase, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_codeBase, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_codeBase, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_codeBase = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.codeBase = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_codeBase, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_codeType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.codeType; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_codeType 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_set_codeBase, set object'); break - case "function": - console.log("[*] HTMLObjectElement_get_codeType 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_set_codeBase, set function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_codeType 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.codeBase = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_codeBase, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_codeType = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.codeType; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_get_codeType, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_get_codeType, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_codeType, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_codeType, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_codeType = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.codeType = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_codeType, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLObjectElement_get_border = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.border; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLObjectElement_get_border 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLObjectElement_set_codeType, set object'); break - case "function": - console.log("[*] HTMLObjectElement_get_border 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLObjectElement_set_codeType, set function'); break default: - // string number - console.log("[*] HTMLObjectElement_get_border 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.codeType = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_codeType, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLObjectElement_get_border = function () { + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.border; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_get_border, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_get_border, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_get_border, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_get_border, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLObjectElement_set_border = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.border = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLObjectElement_set_border, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_set_border, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_set_border, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.border = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_set_border, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLObjectElement_checkValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.checkValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLObjectElement_checkValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLObjectElement_checkValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLObjectElement_checkValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_checkValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.checkValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_checkValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_checkValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_checkValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLObjectElement_getSVGDocument = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getSVGDocument.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLObjectElement_getSVGDocument 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLObjectElement_getSVGDocument 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLObjectElement_getSVGDocument 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_getSVGDocument, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getSVGDocument.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_getSVGDocument, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_getSVGDocument, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_getSVGDocument, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLObjectElement_reportValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.reportValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLObjectElement_reportValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLObjectElement_reportValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLObjectElement_reportValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_reportValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.reportValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_reportValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_reportValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_reportValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLObjectElement_setCustomValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setCustomValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLObjectElement_setCustomValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLObjectElement_setCustomValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLObjectElement_setCustomValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLObjectElement_setCustomValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLObjectElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setCustomValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLObjectElement_setCustomValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLObjectElement_setCustomValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLObjectElement_setCustomValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLOListElement_get_reversed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOListElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.reversed; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOListElement_get_reversed 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOListElement_get_reversed, 返回object'); break - case "function": - console.log("[*] HTMLOListElement_get_reversed 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOListElement_get_reversed, 返回function'); break default: - // string number - console.log("[*] HTMLOListElement_get_reversed 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOListElement_get_reversed, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOListElement_get_reversed, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOListElement_set_reversed = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOListElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.reversed = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOListElement_set_reversed, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOListElement_get_start = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOListElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.start; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOListElement_get_start 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOListElement_set_reversed, set object'); break - case "function": - console.log("[*] HTMLOListElement_get_start 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOListElement_set_reversed, set function'); break default: - // string number - console.log("[*] HTMLOListElement_get_start 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.reversed = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOListElement_set_reversed, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOListElement_get_start = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOListElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.start; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOListElement_get_start, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLOListElement_get_start, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOListElement_get_start, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOListElement_get_start, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOListElement_set_start = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOListElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.start = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOListElement_set_start, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOListElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOListElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOListElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOListElement_set_start, set object'); break - case "function": - console.log("[*] HTMLOListElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOListElement_set_start, set function'); break default: - // string number - console.log("[*] HTMLOListElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.start = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOListElement_set_start, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOListElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOListElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOListElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLOListElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOListElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOListElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOListElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOListElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.type = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOListElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLOListElement_get_compact = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLOListElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.compact; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLOListElement_get_compact 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLOListElement_set_type, set object'); break - case "function": - console.log("[*] HTMLOListElement_get_compact 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLOListElement_set_type, set function'); break default: - // string number - console.log("[*] HTMLOListElement_get_compact 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOListElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLOListElement_get_compact = function () { + let r = cbb_wf.checkIllegal(this, "HTMLOListElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.compact; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLOListElement_get_compact, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLOListElement_get_compact, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLOListElement_get_compact, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOListElement_get_compact, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLOListElement_set_compact = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLOListElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.compact = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLOListElement_set_compact, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLOListElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLOListElement_set_compact, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLOListElement_set_compact, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.compact = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLOListElement_set_compact, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLModElement_get_cite = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLModElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.cite; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLModElement_get_cite 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLModElement_get_cite, 返回object'); break - case "function": - console.log("[*] HTMLModElement_get_cite 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLModElement_get_cite, 返回function'); break default: - // string number - console.log("[*] HTMLModElement_get_cite 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLModElement_get_cite, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLModElement_get_cite, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLModElement_set_cite = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLModElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.cite = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLModElement_set_cite, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLModElement_get_dateTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLModElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.dateTime; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLModElement_get_dateTime 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLModElement_set_cite, set object'); break - case "function": - console.log("[*] HTMLModElement_get_dateTime 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLModElement_set_cite, set function'); break default: - // string number - console.log("[*] HTMLModElement_get_dateTime 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.cite = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLModElement_set_cite, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLModElement_get_dateTime = function () { + let r = cbb_wf.checkIllegal(this, "HTMLModElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.dateTime; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLModElement_get_dateTime, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLModElement_get_dateTime, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLModElement_get_dateTime, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLModElement_get_dateTime, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLModElement_set_dateTime = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLModElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.dateTime = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLModElement_set_dateTime, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLModElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLModElement_set_dateTime, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLModElement_set_dateTime, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.dateTime = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLModElement_set_dateTime, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLMeterElement_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMeterElement_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMeterElement_get_value, 返回object'); break - case "function": - console.log("[*] HTMLMeterElement_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMeterElement_get_value, 返回function'); break default: - // string number - console.log("[*] HTMLMeterElement_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMeterElement_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMeterElement_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMeterElement_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMeterElement_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMeterElement_get_min = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.min; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMeterElement_get_min 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMeterElement_set_value, set object'); break - case "function": - console.log("[*] HTMLMeterElement_get_min 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMeterElement_set_value, set function'); break default: - // string number - console.log("[*] HTMLMeterElement_get_min 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMeterElement_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMeterElement_get_min = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.min; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMeterElement_get_min, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMeterElement_get_min, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMeterElement_get_min, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMeterElement_get_min, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMeterElement_set_min = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.min = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMeterElement_set_min, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMeterElement_get_max = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.max; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMeterElement_get_max 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMeterElement_set_min, set object'); break - case "function": - console.log("[*] HTMLMeterElement_get_max 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMeterElement_set_min, set function'); break default: - // string number - console.log("[*] HTMLMeterElement_get_max 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.min = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMeterElement_set_min, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMeterElement_get_max = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.max; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMeterElement_get_max, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMeterElement_get_max, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMeterElement_get_max, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMeterElement_get_max, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMeterElement_set_max = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.max = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMeterElement_set_max, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMeterElement_get_low = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.low; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMeterElement_get_low 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMeterElement_set_max, set object'); break - case "function": - console.log("[*] HTMLMeterElement_get_low 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMeterElement_set_max, set function'); break default: - // string number - console.log("[*] HTMLMeterElement_get_low 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.max = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMeterElement_set_max, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMeterElement_get_low = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.low; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMeterElement_get_low, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMeterElement_get_low, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMeterElement_get_low, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMeterElement_get_low, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMeterElement_set_low = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.low = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMeterElement_set_low, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMeterElement_get_high = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.high; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMeterElement_get_high 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMeterElement_set_low, set object'); break - case "function": - console.log("[*] HTMLMeterElement_get_high 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMeterElement_set_low, set function'); break default: - // string number - console.log("[*] HTMLMeterElement_get_high 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.low = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMeterElement_set_low, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMeterElement_get_high = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.high; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMeterElement_get_high, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMeterElement_get_high, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMeterElement_get_high, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMeterElement_get_high, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMeterElement_set_high = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.high = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMeterElement_set_high, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMeterElement_get_optimum = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.optimum; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMeterElement_get_optimum 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMeterElement_set_high, set object'); break - case "function": - console.log("[*] HTMLMeterElement_get_optimum 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMeterElement_set_high, set function'); break default: - // string number - console.log("[*] HTMLMeterElement_get_optimum 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.high = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMeterElement_set_high, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMeterElement_get_optimum = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.optimum; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMeterElement_get_optimum, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMeterElement_get_optimum, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMeterElement_get_optimum, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMeterElement_get_optimum, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMeterElement_set_optimum = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.optimum = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMeterElement_set_optimum, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMeterElement_get_labels = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.labels; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMeterElement_get_labels 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMeterElement_set_optimum, set object'); break - case "function": - console.log("[*] HTMLMeterElement_get_labels 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMeterElement_set_optimum, set function'); break default: - // string number - console.log("[*] HTMLMeterElement_get_labels 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.optimum = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMeterElement_set_optimum, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMeterElement_get_labels = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMeterElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.labels; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMeterElement_get_labels, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMeterElement_get_labels, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMeterElement_get_labels, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMeterElement_get_labels, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMetaElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMetaElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMetaElement_get_name, 返回object'); break - case "function": - console.log("[*] HTMLMetaElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMetaElement_get_name, 返回function'); break default: - // string number - console.log("[*] HTMLMetaElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMetaElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMetaElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMetaElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMetaElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMetaElement_get_httpEquiv = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.httpEquiv; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMetaElement_get_httpEquiv 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMetaElement_set_name, set object'); break - case "function": - console.log("[*] HTMLMetaElement_get_httpEquiv 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMetaElement_set_name, set function'); break default: - // string number - console.log("[*] HTMLMetaElement_get_httpEquiv 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMetaElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMetaElement_get_httpEquiv = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.httpEquiv; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMetaElement_get_httpEquiv, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMetaElement_get_httpEquiv, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMetaElement_get_httpEquiv, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMetaElement_get_httpEquiv, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMetaElement_set_httpEquiv = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.httpEquiv = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMetaElement_set_httpEquiv, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMetaElement_get_content = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.content; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMetaElement_get_content 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMetaElement_set_httpEquiv, set object'); break - case "function": - console.log("[*] HTMLMetaElement_get_content 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMetaElement_set_httpEquiv, set function'); break default: - // string number - console.log("[*] HTMLMetaElement_get_content 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.httpEquiv = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMetaElement_set_httpEquiv, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMetaElement_get_content = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.content; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMetaElement_get_content, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMetaElement_get_content, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMetaElement_get_content, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMetaElement_get_content, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMetaElement_set_content = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.content = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMetaElement_set_content, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMetaElement_get_media = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.media; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMetaElement_get_media 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMetaElement_set_content, set object'); break - case "function": - console.log("[*] HTMLMetaElement_get_media 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMetaElement_set_content, set function'); break default: - // string number - console.log("[*] HTMLMetaElement_get_media 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.content = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMetaElement_get_media, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMetaElement_set_content, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLMetaElement_set_media = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.media = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMetaElement_set_media, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLMetaElement_get_scheme = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.scheme; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMetaElement_get_scheme 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMetaElement_get_scheme, 返回object'); break - case "function": - console.log("[*] HTMLMetaElement_get_scheme 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMetaElement_get_scheme, 返回function'); break default: - // string number - console.log("[*] HTMLMetaElement_get_scheme 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMetaElement_get_scheme, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMetaElement_get_scheme, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMetaElement_set_scheme = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.scheme = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMetaElement_set_scheme, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLMetaElement_set_scheme, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMetaElement_set_scheme, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.scheme = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMetaElement_set_scheme, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMetaElement_get_media = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.media; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMetaElement_get_media, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMetaElement_get_media, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMetaElement_get_media, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.HTMLMetaElement_set_media = function (val) { + let r = cbb_wf.checkIllegal(this, "HTMLMetaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLMetaElement_set_media, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMetaElement_set_media, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.media = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMetaElement_set_media, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLMenuElement_get_compact = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMenuElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.compact; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMenuElement_get_compact 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMenuElement_get_compact, 返回object'); break - case "function": - console.log("[*] HTMLMenuElement_get_compact 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMenuElement_get_compact, 返回function'); break default: - // string number - console.log("[*] HTMLMenuElement_get_compact 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMenuElement_get_compact, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMenuElement_get_compact, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMenuElement_set_compact = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMenuElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.compact = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMenuElement_set_compact, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLMenuElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLMenuElement_set_compact, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMenuElement_set_compact, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.compact = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMenuElement_set_compact, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLMediaElement_get_error = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.error; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_error 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_error, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_error 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_error, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_error 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_error, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_error, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_src = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.src; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_src 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_src, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_src 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_src, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_src 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_src, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_src, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_src = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.src = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_src, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_currentSrc = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.currentSrc; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_currentSrc 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_set_src, set object'); break - case "function": - console.log("[*] HTMLMediaElement_get_currentSrc 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_set_src, set function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_currentSrc 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.src = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_src, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_currentSrc = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.currentSrc; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_get_currentSrc, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_get_currentSrc, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_currentSrc, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_currentSrc, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_crossOrigin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.crossOrigin; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_crossOrigin 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_crossOrigin, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_crossOrigin 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_crossOrigin, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_crossOrigin 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_crossOrigin, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_crossOrigin, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_crossOrigin = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.crossOrigin = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_crossOrigin, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_networkState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.networkState; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_networkState 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_set_crossOrigin, set object'); break - case "function": - console.log("[*] HTMLMediaElement_get_networkState 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_set_crossOrigin, set function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_networkState 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.crossOrigin = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_crossOrigin, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_networkState = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.networkState; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_get_networkState, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_get_networkState, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_networkState, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_networkState, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_preload = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.preload; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_preload 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_preload, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_preload 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_preload, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_preload 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_preload, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_preload, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_preload = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.preload = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_preload, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_buffered = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_set_preload, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_set_preload, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.preload = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_preload, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_buffered = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.buffered; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_buffered 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_buffered, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_buffered 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_buffered, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_buffered 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_buffered, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_buffered, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_readyState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.readyState; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_readyState 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_readyState, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_readyState 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_readyState, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_readyState 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_readyState, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_readyState, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_seeking = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.seeking; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_seeking 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_seeking, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_seeking 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_seeking, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_seeking 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_seeking, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_seeking, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_currentTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.currentTime; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_currentTime 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_currentTime, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_currentTime 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_currentTime, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_currentTime 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_currentTime, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_currentTime, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_currentTime = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.currentTime = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_currentTime, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_duration = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_set_currentTime, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_set_currentTime, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.currentTime = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_currentTime, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_duration = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.duration; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_duration 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_duration, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_duration 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_duration, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_duration 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_duration, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_duration, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_paused = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.paused; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_paused 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_paused, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_paused 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_paused, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_paused 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_paused, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_paused, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_defaultPlaybackRate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.defaultPlaybackRate; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_defaultPlaybackRate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_defaultPlaybackRate, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_defaultPlaybackRate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_defaultPlaybackRate, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_defaultPlaybackRate 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_defaultPlaybackRate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_defaultPlaybackRate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_defaultPlaybackRate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.defaultPlaybackRate = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_defaultPlaybackRate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_playbackRate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.playbackRate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_playbackRate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_set_defaultPlaybackRate, set object'); break - case "function": - console.log("[*] HTMLMediaElement_get_playbackRate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_set_defaultPlaybackRate, set function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_playbackRate 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.defaultPlaybackRate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_defaultPlaybackRate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_playbackRate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.playbackRate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_get_playbackRate, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_get_playbackRate, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_playbackRate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_playbackRate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_playbackRate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.playbackRate = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_playbackRate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_played = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_set_playbackRate, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_set_playbackRate, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.playbackRate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_playbackRate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_played = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.played; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_played 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_played, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_played 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_played, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_played 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_played, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_played, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_seekable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.seekable; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_seekable 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_seekable, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_seekable 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_seekable, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_seekable 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_seekable, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_seekable, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_ended = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.ended; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_ended 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_ended, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_ended 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_ended, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_ended 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_ended, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_ended, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_autoplay = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.autoplay; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_autoplay 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_autoplay, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_autoplay 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_autoplay, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_autoplay 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_autoplay, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_autoplay, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_autoplay = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.autoplay = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_autoplay, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_loop = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.loop; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_loop 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_set_autoplay, set object'); break - case "function": - console.log("[*] HTMLMediaElement_get_loop 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_set_autoplay, set function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_loop 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.autoplay = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_autoplay, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_loop = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.loop; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_get_loop, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_get_loop, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_loop, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_loop, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_loop = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.loop = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_loop, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_preservesPitch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.preservesPitch; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_preservesPitch 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_set_loop, set object'); break - case "function": - console.log("[*] HTMLMediaElement_get_preservesPitch 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_set_loop, set function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_preservesPitch 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.loop = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_preservesPitch, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_loop, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLMediaElement_set_preservesPitch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.preservesPitch = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_preservesPitch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLMediaElement_get_controls = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.controls; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_controls 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_controls, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_controls 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_controls, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_controls 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_controls, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_controls, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_controls = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.controls = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_controls, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_controlsList = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.controlsList; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_controlsList 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_set_controls, set object'); break - case "function": - console.log("[*] HTMLMediaElement_get_controlsList 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_set_controls, set function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_controlsList 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.controls = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_controls, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_controlsList = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.controlsList; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_get_controlsList, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_get_controlsList, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_controlsList, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_controlsList, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_controlsList = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.controlsList = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_controlsList, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_volume = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.volume; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_volume 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_set_controlsList, set object'); break - case "function": - console.log("[*] HTMLMediaElement_get_volume 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_set_controlsList, set function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_volume 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.controlsList = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_controlsList, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_volume = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.volume; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_get_volume, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_get_volume, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_volume, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_volume, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_volume = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.volume = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_volume, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_muted = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.muted; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_muted 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_set_volume, set object'); break - case "function": - console.log("[*] HTMLMediaElement_get_muted 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_set_volume, set function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_muted 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.volume = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_volume, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_muted = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.muted; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_get_muted, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_get_muted, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_muted, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_muted, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_muted = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.muted = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_muted, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_defaultMuted = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.defaultMuted; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_defaultMuted 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_set_muted, set object'); break - case "function": - console.log("[*] HTMLMediaElement_get_defaultMuted 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_set_muted, set function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_defaultMuted 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.muted = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_muted, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_defaultMuted = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.defaultMuted; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_get_defaultMuted, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_get_defaultMuted, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_defaultMuted, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_defaultMuted, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_defaultMuted = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.defaultMuted = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_defaultMuted, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_textTracks = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_set_defaultMuted, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_set_defaultMuted, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.defaultMuted = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_defaultMuted, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_textTracks = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.textTracks; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_textTracks 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_textTracks, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_textTracks 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_textTracks, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_textTracks 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_textTracks, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_textTracks, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_webkitAudioDecodedByteCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.webkitAudioDecodedByteCount; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_webkitAudioDecodedByteCount 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_webkitAudioDecodedByteCount, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_webkitAudioDecodedByteCount 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_webkitAudioDecodedByteCount, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_webkitAudioDecodedByteCount 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_webkitAudioDecodedByteCount, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_webkitAudioDecodedByteCount, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_webkitVideoDecodedByteCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.webkitVideoDecodedByteCount; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_webkitVideoDecodedByteCount 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_webkitVideoDecodedByteCount, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_webkitVideoDecodedByteCount 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_webkitVideoDecodedByteCount, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_webkitVideoDecodedByteCount 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_webkitVideoDecodedByteCount, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_webkitVideoDecodedByteCount, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_onencrypted = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.onencrypted; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_onencrypted 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_onencrypted, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_onencrypted 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_onencrypted, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_onencrypted 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_onencrypted, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_onencrypted, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_onencrypted = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onencrypted = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_onencrypted, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_onwaitingforkey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwaitingforkey; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_onwaitingforkey 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_set_onencrypted, set object'); break - case "function": - console.log("[*] HTMLMediaElement_get_onwaitingforkey 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_set_onencrypted, set function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_onwaitingforkey 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onencrypted = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_onencrypted, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_onwaitingforkey = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwaitingforkey; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_get_onwaitingforkey, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_get_onwaitingforkey, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_onwaitingforkey, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_onwaitingforkey, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_onwaitingforkey = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwaitingforkey = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_onwaitingforkey, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_get_srcObject = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.srcObject; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_srcObject 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_set_onwaitingforkey, set object'); break - case "function": - console.log("[*] HTMLMediaElement_get_srcObject 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_set_onwaitingforkey, set function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_srcObject 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwaitingforkey = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_onwaitingforkey, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_srcObject = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.srcObject; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_get_srcObject, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_get_srcObject, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_srcObject, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_srcObject, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_srcObject = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.srcObject = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_srcObject, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_addTextTrack = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.addTextTrack.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLMediaElement_addTextTrack 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLMediaElement_addTextTrack 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLMediaElement_addTextTrack 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_addTextTrack, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLMediaElement_canPlayType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.canPlayType.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLMediaElement_canPlayType 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLMediaElement_canPlayType 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLMediaElement_canPlayType 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_canPlayType, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLMediaElement_captureStream = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.captureStream.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLMediaElement_captureStream 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLMediaElement_captureStream 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLMediaElement_captureStream 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_captureStream, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLMediaElement_load = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.load.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLMediaElement_load 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLMediaElement_load 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLMediaElement_load 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_load, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLMediaElement_pause = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.pause.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLMediaElement_pause 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLMediaElement_pause 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLMediaElement_pause 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_pause, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLMediaElement_play = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.play.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLMediaElement_play 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLMediaElement_play 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLMediaElement_play 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_play, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLMediaElement_get_sinkId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_set_srcObject, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_set_srcObject, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.srcObject = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_srcObject, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_addTextTrack = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.addTextTrack.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_addTextTrack, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_addTextTrack, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_addTextTrack, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLMediaElement_canPlayType = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.canPlayType.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_canPlayType, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_canPlayType, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_canPlayType, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLMediaElement_captureStream = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.captureStream.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_captureStream, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_captureStream, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_captureStream, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLMediaElement_load = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.load.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_load, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_load, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_load, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLMediaElement_pause = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.pause.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_pause, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_pause, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_pause, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLMediaElement_play = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.play.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_play, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_play, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_play, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLMediaElement_get_preservesPitch = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.preservesPitch; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_get_preservesPitch, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_get_preservesPitch, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_preservesPitch, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.HTMLMediaElement_set_preservesPitch = function (val) { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_set_preservesPitch, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_set_preservesPitch, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.preservesPitch = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_preservesPitch, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_get_sinkId = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.sinkId; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_sinkId 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_sinkId, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_sinkId 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_sinkId, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_sinkId 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_sinkId, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_sinkId, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_remote = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.remote; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_remote 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_remote, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_remote 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_remote, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_remote 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_remote, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_remote, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLMediaElement_get_disableRemotePlayback = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.disableRemotePlayback; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_disableRemotePlayback 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_get_disableRemotePlayback, 返回object'); break - case "function": - console.log("[*] HTMLMediaElement_get_disableRemotePlayback 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_get_disableRemotePlayback, 返回function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_disableRemotePlayback 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_disableRemotePlayback, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_disableRemotePlayback, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMediaElement_set_disableRemotePlayback = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.disableRemotePlayback = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMediaElement_set_disableRemotePlayback, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMediaElement_setSinkId = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setSinkId.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLMediaElement_setSinkId 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLMediaElement_setSinkId 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLMediaElement_setSinkId 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_setSinkId, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLMediaElement_get_mediaKeys = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.mediaKeys; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMediaElement_get_mediaKeys 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMediaElement_set_disableRemotePlayback, set object'); break - case "function": - console.log("[*] HTMLMediaElement_get_mediaKeys 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMediaElement_set_disableRemotePlayback, set function'); break default: - // string number - console.log("[*] HTMLMediaElement_get_mediaKeys 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.disableRemotePlayback = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_set_disableRemotePlayback, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMediaElement_setSinkId = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setSinkId.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_setSinkId, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_setSinkId, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_get_mediaKeys, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_setSinkId, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.HTMLMediaElement_setMediaKeys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setMediaKeys.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLMediaElement_setMediaKeys 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLMediaElement_setMediaKeys 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLMediaElement_setMediaKeys 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMediaElement_setMediaKeys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + +this.HTMLMediaElement_get_mediaKeys = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.mediaKeys; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_get_mediaKeys, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_get_mediaKeys, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_get_mediaKeys, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} + +this.HTMLMediaElement_setMediaKeys = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMediaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setMediaKeys.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMediaElement_setMediaKeys, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMediaElement_setMediaKeys, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMediaElement_setMediaKeys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLMarqueeElement_get_behavior = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.behavior; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMarqueeElement_get_behavior 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMarqueeElement_get_behavior, 返回object'); break - case "function": - console.log("[*] HTMLMarqueeElement_get_behavior 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMarqueeElement_get_behavior, 返回function'); break default: - // string number - console.log("[*] HTMLMarqueeElement_get_behavior 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMarqueeElement_get_behavior, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_get_behavior, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMarqueeElement_set_behavior = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.behavior = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMarqueeElement_set_behavior, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMarqueeElement_get_bgColor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.bgColor; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMarqueeElement_get_bgColor 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMarqueeElement_set_behavior, set object'); break - case "function": - console.log("[*] HTMLMarqueeElement_get_bgColor 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMarqueeElement_set_behavior, set function'); break default: - // string number - console.log("[*] HTMLMarqueeElement_get_bgColor 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.behavior = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_set_behavior, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMarqueeElement_get_bgColor = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.bgColor; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_bgColor, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_bgColor, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMarqueeElement_get_bgColor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_get_bgColor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMarqueeElement_set_bgColor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.bgColor = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMarqueeElement_set_bgColor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMarqueeElement_get_direction = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.direction; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMarqueeElement_get_direction 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMarqueeElement_set_bgColor, set object'); break - case "function": - console.log("[*] HTMLMarqueeElement_get_direction 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMarqueeElement_set_bgColor, set function'); break default: - // string number - console.log("[*] HTMLMarqueeElement_get_direction 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.bgColor = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_set_bgColor, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMarqueeElement_get_direction = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.direction; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_direction, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_direction, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMarqueeElement_get_direction, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_get_direction, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMarqueeElement_set_direction = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.direction = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMarqueeElement_set_direction, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMarqueeElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.height; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMarqueeElement_get_height 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMarqueeElement_set_direction, set object'); break - case "function": - console.log("[*] HTMLMarqueeElement_get_height 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMarqueeElement_set_direction, set function'); break default: - // string number - console.log("[*] HTMLMarqueeElement_get_height 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.direction = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_set_direction, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMarqueeElement_get_height = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_height, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_height, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMarqueeElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMarqueeElement_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.height = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMarqueeElement_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMarqueeElement_get_hspace = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hspace; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMarqueeElement_get_hspace 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMarqueeElement_set_height, set object'); break - case "function": - console.log("[*] HTMLMarqueeElement_get_hspace 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMarqueeElement_set_height, set function'); break default: - // string number - console.log("[*] HTMLMarqueeElement_get_hspace 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.height = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_set_height, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMarqueeElement_get_hspace = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hspace; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_hspace, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_hspace, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMarqueeElement_get_hspace, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_get_hspace, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMarqueeElement_set_hspace = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.hspace = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMarqueeElement_set_hspace, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMarqueeElement_get_loop = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.loop; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMarqueeElement_get_loop 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMarqueeElement_set_hspace, set object'); break - case "function": - console.log("[*] HTMLMarqueeElement_get_loop 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMarqueeElement_set_hspace, set function'); break default: - // string number - console.log("[*] HTMLMarqueeElement_get_loop 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.hspace = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_set_hspace, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMarqueeElement_get_loop = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.loop; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_loop, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_loop, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMarqueeElement_get_loop, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_get_loop, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMarqueeElement_set_loop = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.loop = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMarqueeElement_set_loop, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMarqueeElement_get_scrollAmount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.scrollAmount; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMarqueeElement_get_scrollAmount 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMarqueeElement_set_loop, set object'); break - case "function": - console.log("[*] HTMLMarqueeElement_get_scrollAmount 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMarqueeElement_set_loop, set function'); break default: - // string number - console.log("[*] HTMLMarqueeElement_get_scrollAmount 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.loop = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_set_loop, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMarqueeElement_get_scrollAmount = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.scrollAmount; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_scrollAmount, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_scrollAmount, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMarqueeElement_get_scrollAmount, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_get_scrollAmount, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMarqueeElement_set_scrollAmount = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.scrollAmount = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMarqueeElement_set_scrollAmount, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMarqueeElement_get_scrollDelay = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.scrollDelay; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMarqueeElement_get_scrollDelay 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMarqueeElement_set_scrollAmount, set object'); break - case "function": - console.log("[*] HTMLMarqueeElement_get_scrollDelay 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMarqueeElement_set_scrollAmount, set function'); break default: - // string number - console.log("[*] HTMLMarqueeElement_get_scrollDelay 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.scrollAmount = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_set_scrollAmount, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMarqueeElement_get_scrollDelay = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.scrollDelay; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_scrollDelay, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_scrollDelay, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMarqueeElement_get_scrollDelay, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_get_scrollDelay, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMarqueeElement_set_scrollDelay = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.scrollDelay = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMarqueeElement_set_scrollDelay, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMarqueeElement_get_trueSpeed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.trueSpeed; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMarqueeElement_get_trueSpeed 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMarqueeElement_set_scrollDelay, set object'); break - case "function": - console.log("[*] HTMLMarqueeElement_get_trueSpeed 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMarqueeElement_set_scrollDelay, set function'); break default: - // string number - console.log("[*] HTMLMarqueeElement_get_trueSpeed 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.scrollDelay = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_set_scrollDelay, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMarqueeElement_get_trueSpeed = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.trueSpeed; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_trueSpeed, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_trueSpeed, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMarqueeElement_get_trueSpeed, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_get_trueSpeed, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMarqueeElement_set_trueSpeed = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.trueSpeed = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMarqueeElement_set_trueSpeed, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMarqueeElement_get_vspace = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.vspace; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMarqueeElement_get_vspace 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMarqueeElement_set_trueSpeed, set object'); break - case "function": - console.log("[*] HTMLMarqueeElement_get_vspace 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMarqueeElement_set_trueSpeed, set function'); break default: - // string number - console.log("[*] HTMLMarqueeElement_get_vspace 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.trueSpeed = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_set_trueSpeed, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMarqueeElement_get_vspace = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.vspace; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_vspace, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_vspace, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMarqueeElement_get_vspace, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_get_vspace, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMarqueeElement_set_vspace = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.vspace = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMarqueeElement_set_vspace, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMarqueeElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMarqueeElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMarqueeElement_set_vspace, set object'); break - case "function": - console.log("[*] HTMLMarqueeElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMarqueeElement_set_vspace, set function'); break default: - // string number - console.log("[*] HTMLMarqueeElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.vspace = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_set_vspace, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMarqueeElement_get_width = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_width, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMarqueeElement_get_width, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMarqueeElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMarqueeElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.width = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMarqueeElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLMarqueeElement_set_width, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMarqueeElement_set_width, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.width = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_set_width, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLMarqueeElement_start = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.start.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLMarqueeElement_start 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLMarqueeElement_start 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLMarqueeElement_start 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMarqueeElement_start, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.start.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMarqueeElement_start, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMarqueeElement_start, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_start, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLMarqueeElement_stop = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.stop.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLMarqueeElement_stop 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLMarqueeElement_stop 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLMarqueeElement_stop 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMarqueeElement_stop, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLMarqueeElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.stop.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMarqueeElement_stop, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLMarqueeElement_stop, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMarqueeElement_stop, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLMapElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMapElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMapElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMapElement_get_name, 返回object'); break - case "function": - console.log("[*] HTMLMapElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMapElement_get_name, 返回function'); break default: - // string number - console.log("[*] HTMLMapElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMapElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMapElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLMapElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLMapElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLMapElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLMapElement_get_areas = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLMapElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.areas; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLMapElement_get_areas 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLMapElement_set_name, set object'); break - case "function": - console.log("[*] HTMLMapElement_get_areas 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLMapElement_set_name, set function'); break default: - // string number - console.log("[*] HTMLMapElement_get_areas 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMapElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLMapElement_get_areas = function () { + let r = cbb_wf.checkIllegal(this, "HTMLMapElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.areas; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLMapElement_get_areas, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLMapElement_get_areas, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLMapElement_get_areas, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLMapElement_get_areas, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLLinkElement_get_disabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.disabled; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_disabled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_get_disabled, 返回object'); break - case "function": - console.log("[*] HTMLLinkElement_get_disabled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_get_disabled, 返回function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_disabled 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_disabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_disabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_disabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.disabled = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_disabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.href; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_href 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_disabled, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_href 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_disabled, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_href 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.disabled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_disabled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_href = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_href, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_href, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_href = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.href = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_href, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_crossOrigin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.crossOrigin; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_crossOrigin 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_href, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_crossOrigin 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_href, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_crossOrigin 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.href = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_href, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_crossOrigin = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.crossOrigin; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_crossOrigin, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_crossOrigin, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_crossOrigin, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_crossOrigin, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_crossOrigin = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.crossOrigin = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_crossOrigin, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_rel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.rel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_rel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_crossOrigin, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_rel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_crossOrigin, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_rel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.crossOrigin = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_crossOrigin, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_rel = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_rel, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_rel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_rel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_rel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_rel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.rel = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_rel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_relList = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.relList; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_relList 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_rel, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_relList 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_rel, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_relList 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.rel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_rel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_relList = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.relList; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_relList, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_relList, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_relList, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_relList, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_relList = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.relList = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_relList, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_media = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.media; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_media 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_relList, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_media 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_relList, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_media 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.relList = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_relList, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_media = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.media; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_media, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_media, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_media, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_media, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_media = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.media = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_media, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_hreflang = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hreflang; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_hreflang 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_media, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_hreflang 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_media, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_hreflang 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.media = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_media, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_hreflang = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hreflang; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_hreflang, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_hreflang, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_hreflang, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_hreflang, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_hreflang = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.hreflang = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_hreflang, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_hreflang, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_hreflang, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.hreflang = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_hreflang, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.type = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_as = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.as; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_as 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_type, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_as 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_type, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_as 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_as = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.as; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_as, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_as, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_as, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_as, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_as = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.as = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_as, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_referrerPolicy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.referrerPolicy; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_referrerPolicy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_as, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_referrerPolicy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_as, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_referrerPolicy 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.as = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_as, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_referrerPolicy = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.referrerPolicy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_referrerPolicy, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_referrerPolicy, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_referrerPolicy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_referrerPolicy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_referrerPolicy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.referrerPolicy = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_referrerPolicy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_sizes = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.sizes; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_sizes 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_referrerPolicy, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_sizes 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_referrerPolicy, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_sizes 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.referrerPolicy = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_referrerPolicy, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_sizes = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.sizes; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_sizes, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_sizes, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_sizes, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_sizes, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_sizes = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.sizes = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_sizes, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_fetchPriority = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.fetchPriority; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_fetchPriority 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_sizes, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_fetchPriority 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_sizes, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_fetchPriority 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.sizes = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_fetchPriority, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_sizes, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLLinkElement_set_fetchPriority = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.fetchPriority = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_fetchPriority, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLLinkElement_get_imageSrcset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.imageSrcset; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_imageSrcset 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_get_imageSrcset, 返回object'); break - case "function": - console.log("[*] HTMLLinkElement_get_imageSrcset 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_get_imageSrcset, 返回function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_imageSrcset 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_imageSrcset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_imageSrcset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_imageSrcset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.imageSrcset = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_imageSrcset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_imageSizes = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.imageSizes; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_imageSizes 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_imageSrcset, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_imageSizes 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_imageSrcset, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_imageSizes 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.imageSrcset = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_imageSrcset, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_imageSizes = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.imageSizes; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_imageSizes, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_imageSizes, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_imageSizes, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_imageSizes, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_imageSizes = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.imageSizes = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_imageSizes, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_charset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.charset; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_charset 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_imageSizes, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_charset 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_imageSizes, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_charset 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.imageSizes = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_imageSizes, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_charset = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.charset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_charset, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_charset, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_charset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_charset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_charset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.charset = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_charset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_rev = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.rev; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_rev 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_charset, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_rev 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_charset, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_rev 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.charset = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_charset, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_rev = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rev; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_rev, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_rev, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_rev, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_rev, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_rev = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.rev = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_rev, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_target = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.target; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_target 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_rev, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_target 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_rev, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_target 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.rev = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_rev, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_target = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.target; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_target, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_target, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_target, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_target, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_target = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.target = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_target, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_sheet = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.sheet; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_sheet 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_target, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_sheet 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_target, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_sheet 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.target = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_target, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_sheet = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.sheet; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_sheet, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_sheet, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_sheet, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_sheet, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLLinkElement_get_integrity = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.integrity; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_integrity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_get_integrity, 返回object'); break - case "function": - console.log("[*] HTMLLinkElement_get_integrity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_get_integrity, 返回function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_integrity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_integrity, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_integrity, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLinkElement_set_integrity = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.integrity = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_integrity, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLinkElement_get_blocking = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.blocking; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLinkElement_get_blocking 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLinkElement_set_integrity, set object'); break - case "function": - console.log("[*] HTMLLinkElement_get_blocking 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLinkElement_set_integrity, set function'); break default: - // string number - console.log("[*] HTMLLinkElement_get_blocking 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.integrity = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_integrity, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLinkElement_get_fetchPriority = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fetchPriority; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_get_fetchPriority, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_get_fetchPriority, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLinkElement_get_blocking, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_get_fetchPriority, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.HTMLLinkElement_set_blocking = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.blocking = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLinkElement_set_blocking, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } +this.HTMLLinkElement_set_fetchPriority = function (val) { + let r = cbb_wf.checkIllegal(this, "HTMLLinkElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLLinkElement_set_fetchPriority, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLLinkElement_set_fetchPriority, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.fetchPriority = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLinkElement_set_fetchPriority, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLLegendElement_get_form = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLegendElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.form; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLegendElement_get_form 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLegendElement_get_form, 返回object'); break - case "function": - console.log("[*] HTMLLegendElement_get_form 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLegendElement_get_form, 返回function'); break default: - // string number - console.log("[*] HTMLLegendElement_get_form 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLegendElement_get_form, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLegendElement_get_form, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLLegendElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLegendElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLegendElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLegendElement_get_align, 返回object'); break - case "function": - console.log("[*] HTMLLegendElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLegendElement_get_align, 返回function'); break default: - // string number - console.log("[*] HTMLLegendElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLegendElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLegendElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLegendElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLegendElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLegendElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLLegendElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLLegendElement_set_align, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLLegendElement_set_align, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLegendElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLLabelElement_get_form = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLabelElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.form; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLabelElement_get_form 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLabelElement_get_form, 返回object'); break - case "function": - console.log("[*] HTMLLabelElement_get_form 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLabelElement_get_form, 返回function'); break default: - // string number - console.log("[*] HTMLLabelElement_get_form 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLabelElement_get_form, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLabelElement_get_form, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLLabelElement_get_htmlFor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLabelElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.htmlFor; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLabelElement_get_htmlFor 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLabelElement_get_htmlFor, 返回object'); break - case "function": - console.log("[*] HTMLLabelElement_get_htmlFor 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLabelElement_get_htmlFor, 返回function'); break default: - // string number - console.log("[*] HTMLLabelElement_get_htmlFor 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLabelElement_get_htmlFor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLabelElement_get_htmlFor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLabelElement_set_htmlFor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLabelElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.htmlFor = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLabelElement_set_htmlFor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLabelElement_get_control = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLabelElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.control; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLabelElement_get_control 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLabelElement_set_htmlFor, set object'); break - case "function": - console.log("[*] HTMLLabelElement_get_control 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLabelElement_set_htmlFor, set function'); break default: - // string number - console.log("[*] HTMLLabelElement_get_control 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.htmlFor = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLabelElement_set_htmlFor, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLabelElement_get_control = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLabelElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.control; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLabelElement_get_control, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLabelElement_get_control, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLabelElement_get_control, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLabelElement_get_control, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLLIElement_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLIElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLIElement_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLIElement_get_value, 返回object'); break - case "function": - console.log("[*] HTMLLIElement_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLIElement_get_value, 返回function'); break default: - // string number - console.log("[*] HTMLLIElement_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLIElement_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLIElement_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLIElement_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLIElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLIElement_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLLIElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLLIElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLLIElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLLIElement_set_value, set object'); break - case "function": - console.log("[*] HTMLLIElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLLIElement_set_value, set function'); break default: - // string number - console.log("[*] HTMLLIElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLIElement_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLLIElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLLIElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLLIElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLLIElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLLIElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLIElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLLIElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLLIElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.type = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLLIElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLLIElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLLIElement_set_type, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLLIElement_set_type, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLLIElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLInputElement_get_accept = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.accept; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_accept 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_get_accept, 返回object'); break - case "function": - console.log("[*] HTMLInputElement_get_accept 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_get_accept, 返回function'); break default: - // string number - console.log("[*] HTMLInputElement_get_accept 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_accept, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_accept, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_accept = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.accept = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_accept, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_alt = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.alt; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_alt 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_accept, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_alt 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_accept, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_alt 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.accept = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_accept, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_alt = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.alt; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_alt, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_alt, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_alt, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_alt, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_alt = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.alt = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_alt, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_autocomplete = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.autocomplete; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_autocomplete 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_alt, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_autocomplete 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_alt, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_autocomplete 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.alt = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_alt, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_autocomplete = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.autocomplete; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_autocomplete, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_autocomplete, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_autocomplete, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_autocomplete, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_autocomplete = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.autocomplete = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_autocomplete, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_defaultChecked = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.defaultChecked; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_defaultChecked 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_autocomplete, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_defaultChecked 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_autocomplete, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_defaultChecked 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.autocomplete = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_autocomplete, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_defaultChecked = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.defaultChecked; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_defaultChecked, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_defaultChecked, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_defaultChecked, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_defaultChecked, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_defaultChecked = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.defaultChecked = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_defaultChecked, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_checked = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.checked; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_checked 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_defaultChecked, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_checked 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_defaultChecked, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_checked 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.defaultChecked = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_defaultChecked, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_checked = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.checked; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_checked, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_checked, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_checked, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_checked, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_checked = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.checked = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_checked, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_dirName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.dirName; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_dirName 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_checked, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_dirName 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_checked, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_dirName 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.checked = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_checked, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_dirName = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.dirName; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_dirName, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_dirName, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_dirName, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_dirName, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_dirName = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.dirName = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_dirName, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_disabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.disabled; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_disabled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_dirName, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_disabled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_dirName, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_disabled 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.dirName = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_dirName, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_disabled = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.disabled; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_disabled, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_disabled, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_disabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_disabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_disabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.disabled = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_disabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_form = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.form; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_form 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_disabled, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_form 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_disabled, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_form 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.disabled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_disabled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_form = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.form; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_form, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_form, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_form, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_form, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLInputElement_get_files = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.files; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_files 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_get_files, 返回object'); break - case "function": - console.log("[*] HTMLInputElement_get_files 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_get_files, 返回function'); break default: - // string number - console.log("[*] HTMLInputElement_get_files 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_files, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_files, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_files = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.files = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_files, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_formAction = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.formAction; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_formAction 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_files, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_formAction 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_files, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_formAction 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.files = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_files, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_formAction = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.formAction; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_formAction, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_formAction, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_formAction, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_formAction, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_formAction = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.formAction = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_formAction, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_formEnctype = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.formEnctype; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_formEnctype 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_formAction, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_formEnctype 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_formAction, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_formEnctype 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.formAction = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_formAction, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_formEnctype = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.formEnctype; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_formEnctype, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_formEnctype, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_formEnctype, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_formEnctype, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_formEnctype = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.formEnctype = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_formEnctype, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_formMethod = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.formMethod; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_formMethod 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_formEnctype, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_formMethod 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_formEnctype, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_formMethod 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.formEnctype = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_formEnctype, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_formMethod = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.formMethod; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_formMethod, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_formMethod, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_formMethod, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_formMethod, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_formMethod = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.formMethod = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_formMethod, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_formNoValidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.formNoValidate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_formNoValidate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_formMethod, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_formNoValidate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_formMethod, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_formNoValidate 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.formMethod = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_formMethod, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_formNoValidate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.formNoValidate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_formNoValidate, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_formNoValidate, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_formNoValidate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_formNoValidate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_formNoValidate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.formNoValidate = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_formNoValidate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_formTarget = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.formTarget; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_formTarget 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_formNoValidate, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_formTarget 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_formNoValidate, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_formTarget 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.formNoValidate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_formNoValidate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_formTarget = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.formTarget; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_formTarget, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_formTarget, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_formTarget, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_formTarget, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_formTarget = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.formTarget = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_formTarget, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.height; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_height 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_formTarget, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_height 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_formTarget, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_height 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.formTarget = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_formTarget, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_height = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_height, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_height, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.height = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_indeterminate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.indeterminate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_indeterminate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_height, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_indeterminate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_height, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_indeterminate 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.height = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_height, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_indeterminate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.indeterminate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_indeterminate, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_indeterminate, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_indeterminate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_indeterminate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_indeterminate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.indeterminate = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_indeterminate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_list = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.list; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_list 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_indeterminate, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_list 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_indeterminate, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_list 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.indeterminate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_indeterminate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_list = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.list; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_list, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_list, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_list, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_list, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLInputElement_get_max = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.max; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_max 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_get_max, 返回object'); break - case "function": - console.log("[*] HTMLInputElement_get_max 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_get_max, 返回function'); break default: - // string number - console.log("[*] HTMLInputElement_get_max 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_max, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_max, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_max = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.max = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_max, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_maxLength = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.maxLength; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_maxLength 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_max, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_maxLength 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_max, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_maxLength 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.max = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_max, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_maxLength = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.maxLength; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_maxLength, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_maxLength, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_maxLength, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_maxLength, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_maxLength = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.maxLength = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_maxLength, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_min = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.min; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_min 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_maxLength, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_min 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_maxLength, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_min 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.maxLength = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_maxLength, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_min = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.min; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_min, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_min, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_min, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_min, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_min = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.min = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_min, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_minLength = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.minLength; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_minLength 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_min, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_minLength 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_min, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_minLength 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.min = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_min, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_minLength = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.minLength; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_minLength, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_minLength, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_minLength, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_minLength, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_minLength = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.minLength = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_minLength, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_multiple = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.multiple; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_multiple 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_minLength, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_multiple 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_minLength, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_multiple 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.minLength = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_minLength, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_multiple = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.multiple; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_multiple, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_multiple, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_multiple, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_multiple, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_multiple = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.multiple = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_multiple, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_multiple, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_multiple, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.multiple = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_multiple, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_name = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.name; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_name, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_name, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_pattern = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.pattern; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_pattern 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_name, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_pattern 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_name, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_pattern 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_pattern = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.pattern; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_pattern, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_pattern, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_pattern, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_pattern, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_pattern = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.pattern = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_pattern, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_placeholder = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.placeholder; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_placeholder 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_pattern, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_placeholder 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_pattern, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_placeholder 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.pattern = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_pattern, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_placeholder = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.placeholder; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_placeholder, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_placeholder, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_placeholder, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_placeholder, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_placeholder = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.placeholder = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_placeholder, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_readOnly = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.readOnly; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_readOnly 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_placeholder, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_readOnly 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_placeholder, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_readOnly 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.placeholder = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_placeholder, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_readOnly = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.readOnly; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_readOnly, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_readOnly, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_readOnly, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_readOnly, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_readOnly = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.readOnly = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_readOnly, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_required = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.required; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_required 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_readOnly, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_required 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_readOnly, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_required 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.readOnly = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_readOnly, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_required = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.required; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_required, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_required, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_required, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_required, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_required = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.required = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_required, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.size; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_size 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_required, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_size 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_required, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_size 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.required = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_required, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_size = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.size; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_size, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_size, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_size, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_size, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_size = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.size = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_size, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_src = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.src; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_src 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_size, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_src 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_size, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_src 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.size = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_size, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_src = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.src; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_src, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_src, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_src, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_src, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_src = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.src = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_src, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_step = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.step; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_step 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_src, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_step 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_src, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_step 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.src = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_src, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_step = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.step; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_step, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_step, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_step, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_step, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_step = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.step = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_step, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_step, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_step, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.step = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_step, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.type = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_defaultValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.defaultValue; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_defaultValue 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_type, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_defaultValue 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_type, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_defaultValue 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_defaultValue = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.defaultValue; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_defaultValue, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_defaultValue, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_defaultValue, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_defaultValue, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_defaultValue = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.defaultValue = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_defaultValue, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_defaultValue, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_defaultValue, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.defaultValue = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_defaultValue, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_value = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.value; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_value, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_value, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_valueAsDate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.valueAsDate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_valueAsDate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_value, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_valueAsDate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_value, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_valueAsDate 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_valueAsDate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.valueAsDate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_valueAsDate, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_valueAsDate, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_valueAsDate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_valueAsDate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_valueAsDate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.valueAsDate = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_valueAsDate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_valueAsNumber = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.valueAsNumber; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_valueAsNumber 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_valueAsDate, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_valueAsNumber 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_valueAsDate, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_valueAsNumber 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.valueAsDate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_valueAsDate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_valueAsNumber = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.valueAsNumber; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_valueAsNumber, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_valueAsNumber, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_valueAsNumber, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_valueAsNumber, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_valueAsNumber = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.valueAsNumber = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_valueAsNumber, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_valueAsNumber, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_valueAsNumber, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.valueAsNumber = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_valueAsNumber, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_width = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_width, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_width, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.width = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_willValidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_set_width, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_set_width, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.width = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_width, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_willValidate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.willValidate; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_willValidate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_get_willValidate, 返回object'); break - case "function": - console.log("[*] HTMLInputElement_get_willValidate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_get_willValidate, 返回function'); break default: - // string number - console.log("[*] HTMLInputElement_get_willValidate 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_willValidate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_willValidate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLInputElement_get_validity = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.validity; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_validity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_get_validity, 返回object'); break - case "function": - console.log("[*] HTMLInputElement_get_validity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_get_validity, 返回function'); break default: - // string number - console.log("[*] HTMLInputElement_get_validity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_validity, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_validity, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLInputElement_get_validationMessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.validationMessage; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_validationMessage 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_get_validationMessage, 返回object'); break - case "function": - console.log("[*] HTMLInputElement_get_validationMessage 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_get_validationMessage, 返回function'); break default: - // string number - console.log("[*] HTMLInputElement_get_validationMessage 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_validationMessage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_validationMessage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLInputElement_get_labels = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.labels; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_labels 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_get_labels, 返回object'); break - case "function": - console.log("[*] HTMLInputElement_get_labels 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_get_labels, 返回function'); break default: - // string number - console.log("[*] HTMLInputElement_get_labels 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_labels, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_labels, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLInputElement_get_selectionStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.selectionStart; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_selectionStart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_get_selectionStart, 返回object'); break - case "function": - console.log("[*] HTMLInputElement_get_selectionStart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_get_selectionStart, 返回function'); break default: - // string number - console.log("[*] HTMLInputElement_get_selectionStart 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_selectionStart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_selectionStart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_selectionStart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.selectionStart = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_selectionStart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_selectionEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.selectionEnd; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_selectionEnd 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_selectionStart, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_selectionEnd 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_selectionStart, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_selectionEnd 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.selectionStart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_selectionStart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_selectionEnd = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.selectionEnd; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_selectionEnd, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_selectionEnd, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_selectionEnd, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_selectionEnd, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_selectionEnd = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.selectionEnd = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_selectionEnd, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_selectionDirection = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.selectionDirection; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_selectionDirection 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_selectionEnd, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_selectionDirection 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_selectionEnd, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_selectionDirection 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.selectionEnd = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_selectionEnd, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_selectionDirection = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.selectionDirection; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_selectionDirection, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_selectionDirection, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_selectionDirection, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_selectionDirection, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_selectionDirection = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.selectionDirection = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_selectionDirection, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_selectionDirection, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_selectionDirection, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.selectionDirection = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_selectionDirection, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_align = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.align; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_align, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_align, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_useMap = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.useMap; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_useMap 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_align, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_useMap 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_align, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_useMap 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_useMap = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.useMap; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_useMap, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_useMap, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_useMap, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_useMap, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_useMap = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.useMap = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_useMap, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_webkitdirectory = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.webkitdirectory; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_webkitdirectory 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_useMap, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_webkitdirectory 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_useMap, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_webkitdirectory 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.useMap = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_useMap, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_webkitdirectory = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.webkitdirectory; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_webkitdirectory, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_webkitdirectory, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_webkitdirectory, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_webkitdirectory, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_webkitdirectory = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.webkitdirectory = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_webkitdirectory, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_incremental = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.incremental; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_incremental 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_webkitdirectory, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_incremental 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_webkitdirectory, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_incremental 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.webkitdirectory = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_webkitdirectory, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLInputElement_get_incremental = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.incremental; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_get_incremental, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_get_incremental, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_incremental, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_incremental, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLInputElement_set_incremental = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.incremental = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_incremental, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_popoverTargetElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.popoverTargetElement; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_popoverTargetElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_set_incremental, set object'); break - case "function": - console.log("[*] HTMLInputElement_get_popoverTargetElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_set_incremental, set function'); break default: - // string number - console.log("[*] HTMLInputElement_get_popoverTargetElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.incremental = val; } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_popoverTargetElement, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLInputElement_set_popoverTargetElement = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.popoverTargetElement = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_popoverTargetElement, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLInputElement_get_popoverTargetAction = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.popoverTargetAction; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_popoverTargetAction 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] HTMLInputElement_get_popoverTargetAction 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLInputElement_get_popoverTargetAction 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_popoverTargetAction, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_set_incremental, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLInputElement_set_popoverTargetAction = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.popoverTargetAction = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLInputElement_set_popoverTargetAction, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLInputElement_checkValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.checkValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLInputElement_checkValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLInputElement_checkValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLInputElement_checkValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_checkValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLInputElement_reportValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.reportValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLInputElement_reportValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLInputElement_reportValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLInputElement_reportValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_reportValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLInputElement_select = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.select.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLInputElement_select 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLInputElement_select 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLInputElement_select 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_select, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLInputElement_setCustomValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setCustomValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLInputElement_setCustomValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLInputElement_setCustomValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLInputElement_setCustomValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_setCustomValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLInputElement_setRangeText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setRangeText.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLInputElement_setRangeText 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLInputElement_setRangeText 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLInputElement_setRangeText 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_setRangeText, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLInputElement_setSelectionRange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setSelectionRange.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLInputElement_setSelectionRange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLInputElement_setSelectionRange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLInputElement_setSelectionRange 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_setSelectionRange, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLInputElement_showPicker = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.showPicker.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLInputElement_showPicker 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLInputElement_showPicker 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLInputElement_showPicker 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_showPicker, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLInputElement_stepDown = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.stepDown.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLInputElement_stepDown 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLInputElement_stepDown 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLInputElement_stepDown 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_stepDown, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLInputElement_stepUp = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.stepUp.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLInputElement_stepUp 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLInputElement_stepUp 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLInputElement_stepUp 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_stepUp, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLInputElement_get_webkitEntries = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.checkValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_checkValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_checkValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_checkValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLInputElement_reportValidity = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.reportValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_reportValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_reportValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_reportValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLInputElement_select = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.select.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_select, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_select, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_select, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLInputElement_setCustomValidity = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setCustomValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_setCustomValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_setCustomValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_setCustomValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLInputElement_setRangeText = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setRangeText.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_setRangeText, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_setRangeText, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_setRangeText, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLInputElement_setSelectionRange = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setSelectionRange.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_setSelectionRange, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_setSelectionRange, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_setSelectionRange, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLInputElement_stepDown = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.stepDown.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_stepDown, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_stepDown, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_stepDown, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLInputElement_stepUp = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.stepUp.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_stepUp, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_stepUp, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_stepUp, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.HTMLInputElement_get_webkitEntries = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.webkitEntries; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLInputElement_get_webkitEntries 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLInputElement_get_webkitEntries, 返回object'); break - case "function": - console.log("[*] HTMLInputElement_get_webkitEntries 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLInputElement_get_webkitEntries, 返回function'); break default: - // string number - console.log("[*] HTMLInputElement_get_webkitEntries 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLInputElement_get_webkitEntries, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_get_webkitEntries, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + +this.HTMLInputElement_showPicker = function () { + let r = cbb_wf.checkIllegal(this, "HTMLInputElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.showPicker.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLInputElement_showPicker, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLInputElement_showPicker, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLInputElement_showPicker, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLImageElement_get_alt = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.alt; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_alt 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_get_alt, 返回object'); break - case "function": - console.log("[*] HTMLImageElement_get_alt 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_get_alt, 返回function'); break default: - // string number - console.log("[*] HTMLImageElement_get_alt 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_alt, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_alt, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_alt = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.alt = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_alt, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_src = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.src; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_src 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_alt, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_src 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_alt, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_src 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.alt = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_alt, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_src = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.src; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_src, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_src, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_src, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_src, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_src = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.src = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_src, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_srcset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.srcset; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_srcset 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_src, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_srcset 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_src, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_srcset 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.src = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_src, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_srcset = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.srcset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_srcset, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_srcset, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_srcset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_srcset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_srcset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.srcset = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_srcset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_sizes = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.sizes; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_sizes 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_srcset, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_sizes 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_srcset, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_sizes 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.srcset = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_srcset, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_sizes = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.sizes; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_sizes, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_sizes, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_sizes, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_sizes, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_sizes = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.sizes = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_sizes, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_crossOrigin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.crossOrigin; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_crossOrigin 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_sizes, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_crossOrigin 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_sizes, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_crossOrigin 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.sizes = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_sizes, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_crossOrigin = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.crossOrigin; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_crossOrigin, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_crossOrigin, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_crossOrigin, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_crossOrigin, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_crossOrigin = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.crossOrigin = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_crossOrigin, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_useMap = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.useMap; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_useMap 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_crossOrigin, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_useMap 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_crossOrigin, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_useMap 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.crossOrigin = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_crossOrigin, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_useMap = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.useMap; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_useMap, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_useMap, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_useMap, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_useMap, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_useMap = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.useMap = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_useMap, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_isMap = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.isMap; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_isMap 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_useMap, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_isMap 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_useMap, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_isMap 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.useMap = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_useMap, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_isMap = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.isMap; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_isMap, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_isMap, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_isMap, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_isMap, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_isMap = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.isMap = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_isMap, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_isMap, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_isMap, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.isMap = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_isMap, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_width = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_width, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_width, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.width = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.height; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_height 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_width, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_height 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_width, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_height 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.width = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_width, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_height = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_height, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_height, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.height = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_naturalWidth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_set_height, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_set_height, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.height = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_height, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_naturalWidth = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.naturalWidth; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_naturalWidth 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_get_naturalWidth, 返回object'); break - case "function": - console.log("[*] HTMLImageElement_get_naturalWidth 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_get_naturalWidth, 返回function'); break default: - // string number - console.log("[*] HTMLImageElement_get_naturalWidth 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_naturalWidth, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_naturalWidth, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLImageElement_get_naturalHeight = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.naturalHeight; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_naturalHeight 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_get_naturalHeight, 返回object'); break - case "function": - console.log("[*] HTMLImageElement_get_naturalHeight 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_get_naturalHeight, 返回function'); break default: - // string number - console.log("[*] HTMLImageElement_get_naturalHeight 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_naturalHeight, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_naturalHeight, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLImageElement_get_complete = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.complete; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_complete 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_get_complete, 返回object'); break - case "function": - console.log("[*] HTMLImageElement_get_complete 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_get_complete, 返回function'); break default: - // string number - console.log("[*] HTMLImageElement_get_complete 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_complete, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_complete, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLImageElement_get_currentSrc = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.currentSrc; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_currentSrc 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_get_currentSrc, 返回object'); break - case "function": - console.log("[*] HTMLImageElement_get_currentSrc 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_get_currentSrc, 返回function'); break default: - // string number - console.log("[*] HTMLImageElement_get_currentSrc 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_currentSrc, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_currentSrc, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLImageElement_get_referrerPolicy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.referrerPolicy; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_referrerPolicy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_get_referrerPolicy, 返回object'); break - case "function": - console.log("[*] HTMLImageElement_get_referrerPolicy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_get_referrerPolicy, 返回function'); break default: - // string number - console.log("[*] HTMLImageElement_get_referrerPolicy 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_referrerPolicy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_referrerPolicy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_referrerPolicy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.referrerPolicy = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_referrerPolicy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_decoding = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.decoding; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_decoding 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_referrerPolicy, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_decoding 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_referrerPolicy, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_decoding 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.referrerPolicy = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_referrerPolicy, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_decoding = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.decoding; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_decoding, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_decoding, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_decoding, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_decoding, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_decoding = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.decoding = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_decoding, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_fetchPriority = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.fetchPriority; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_fetchPriority 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_decoding, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_fetchPriority 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_decoding, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_fetchPriority 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.decoding = val; } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_fetchPriority, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLImageElement_set_fetchPriority = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.fetchPriority = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_fetchPriority, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_loading = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.loading; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_loading 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] HTMLImageElement_get_loading 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLImageElement_get_loading 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_loading, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_decoding, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLImageElement_set_loading = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.loading = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_loading, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLImageElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_get_name, 返回object'); break - case "function": - console.log("[*] HTMLImageElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_get_name, 返回function'); break default: - // string number - console.log("[*] HTMLImageElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_lowsrc = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.lowsrc; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_lowsrc 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_name, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_lowsrc 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_name, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_lowsrc 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_lowsrc = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.lowsrc; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_lowsrc, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_lowsrc, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_lowsrc, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_lowsrc, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_lowsrc = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.lowsrc = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_lowsrc, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_lowsrc, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_lowsrc, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.lowsrc = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_lowsrc, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_align = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.align; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_align, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_align, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_hspace = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hspace; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_hspace 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_align, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_hspace 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_align, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_hspace 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_hspace = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hspace; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_hspace, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_hspace, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_hspace, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_hspace, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_hspace = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.hspace = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_hspace, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_vspace = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.vspace; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_vspace 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_hspace, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_vspace 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_hspace, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_vspace 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.hspace = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_hspace, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_vspace = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.vspace; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_vspace, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_vspace, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_vspace, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_vspace, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_vspace = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.vspace = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_vspace, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_longDesc = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.longDesc; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_longDesc 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_vspace, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_longDesc 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_vspace, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_longDesc 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.vspace = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_vspace, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_longDesc = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.longDesc; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_longDesc, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_longDesc, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_longDesc, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_longDesc, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_longDesc = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.longDesc = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_longDesc, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_border = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.border; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_border 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_set_longDesc, set object'); break - case "function": - console.log("[*] HTMLImageElement_get_border 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_set_longDesc, set function'); break default: - // string number - console.log("[*] HTMLImageElement_get_border 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.longDesc = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_longDesc, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_border = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.border; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_border, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_border, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_border, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_border, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLImageElement_set_border = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.border = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_border, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_set_border, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_set_border, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.border = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_border, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_x = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.x; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_x 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_get_x, 返回object'); break - case "function": - console.log("[*] HTMLImageElement_get_x 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_get_x, 返回function'); break default: - // string number - console.log("[*] HTMLImageElement_get_x 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_x, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_x, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLImageElement_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.y; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_y 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_get_y, 返回object'); break - case "function": - console.log("[*] HTMLImageElement_get_y 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_get_y, 返回function'); break default: - // string number - console.log("[*] HTMLImageElement_get_y 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_y, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_y, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLImageElement_decode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.decode.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLImageElement_decode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLImageElement_decode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLImageElement_decode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_decode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLImageElement_get_attributionSrc = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.attributionSrc; - let type = typeof result; - switch (type) { + let result = dom_element.decode.apply(dom_element, arguments); + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_attributionSrc 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_decode, 返回object'); break - case "function": - console.log("[*] HTMLImageElement_get_attributionSrc 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_decode, 返回function'); break default: - // string number - console.log("[*] HTMLImageElement_get_attributionSrc 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_attributionSrc, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_decode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.HTMLImageElement_set_attributionSrc = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.attributionSrc = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_attributionSrc, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLImageElement_get_sharedStorageWritable = function () { - // 非法调用 + +this.HTMLImageElement_get_fetchPriority = function () { let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.sharedStorageWritable; - let type = typeof result; - switch (type) { + let result = dom_element.fetchPriority; + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLImageElement_get_sharedStorageWritable 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLImageElement_get_fetchPriority, 返回object'); break - case "function": - console.log("[*] HTMLImageElement_get_sharedStorageWritable 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLImageElement_get_fetchPriority, 返回function'); break default: - // string number - console.log("[*] HTMLImageElement_get_sharedStorageWritable 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLImageElement_get_sharedStorageWritable, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_fetchPriority, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.HTMLImageElement_set_sharedStorageWritable = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.sharedStorageWritable = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLImageElement_set_sharedStorageWritable, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } +this.HTMLImageElement_set_fetchPriority = function (val) { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_set_fetchPriority, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_set_fetchPriority, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.fetchPriority = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_fetchPriority, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLImageElement_get_loading = function () { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.loading; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_get_loading, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_get_loading, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_get_loading, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.HTMLImageElement_set_loading = function (val) { + let r = cbb_wf.checkIllegal(this, "HTMLImageElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLImageElement_set_loading, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLImageElement_set_loading, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.loading = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLImageElement_set_loading, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLIFrameElement_get_src = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.src; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_src 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_get_src, 返回object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_src 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_get_src, 返回function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_src 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_src, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_src, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_src = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.src = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_src, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_srcdoc = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.srcdoc; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_srcdoc 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_src, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_srcdoc 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_src, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_srcdoc 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.src = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_src, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_srcdoc = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.srcdoc; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_get_srcdoc, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_get_srcdoc, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_srcdoc, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_srcdoc, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_srcdoc = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.srcdoc = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_srcdoc, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_srcdoc, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_srcdoc, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.srcdoc = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_srcdoc, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_name = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.name; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_get_name, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_get_name, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_sandbox = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.sandbox; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_sandbox 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_name, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_sandbox 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_name, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_sandbox 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_sandbox = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.sandbox; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_get_sandbox, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_get_sandbox, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_sandbox, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_sandbox, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_sandbox = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.sandbox = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_sandbox, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_allowFullscreen = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.allowFullscreen; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_allowFullscreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_sandbox, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_allowFullscreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_sandbox, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_allowFullscreen 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.sandbox = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_sandbox, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_allowFullscreen = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.allowFullscreen; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_get_allowFullscreen, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_get_allowFullscreen, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_allowFullscreen, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_allowFullscreen, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_allowFullscreen = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.allowFullscreen = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_allowFullscreen, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_allowFullscreen, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_allowFullscreen, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.allowFullscreen = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_allowFullscreen, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_width = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_get_width, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_get_width, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.width = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.height; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_height 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_width, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_height 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_width, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_height 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.width = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_width, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_height = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_get_height, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_get_height, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.height = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_contentDocument = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_set_height, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_set_height, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.height = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_height, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_contentDocument = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.contentDocument; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_contentDocument 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_get_contentDocument, 返回object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_contentDocument 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_get_contentDocument, 返回function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_contentDocument 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_contentDocument, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_contentDocument, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLIFrameElement_get_contentWindow = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.contentWindow; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_contentWindow 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_get_contentWindow, 返回object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_contentWindow 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_get_contentWindow, 返回function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_contentWindow 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_contentWindow, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_contentWindow, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLIFrameElement_get_referrerPolicy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.referrerPolicy; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_referrerPolicy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_get_referrerPolicy, 返回object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_referrerPolicy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_get_referrerPolicy, 返回function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_referrerPolicy 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_referrerPolicy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_referrerPolicy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_referrerPolicy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.referrerPolicy = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_referrerPolicy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_csp = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.csp; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_csp 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_referrerPolicy, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_csp 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_referrerPolicy, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_csp 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.referrerPolicy = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_referrerPolicy, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_csp = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.csp; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_get_csp, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_get_csp, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_csp, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_csp, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_csp = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.csp = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_csp, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_allow = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.allow; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_allow 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_csp, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_allow 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_csp, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_allow 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.csp = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_csp, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_allow = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.allow; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_get_allow, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_get_allow, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_allow, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_allow, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_allow = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.allow = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_allow, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_featurePolicy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_set_allow, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_set_allow, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.allow = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_allow, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_featurePolicy = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.featurePolicy; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_featurePolicy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_get_featurePolicy, 返回object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_featurePolicy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_get_featurePolicy, 返回function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_featurePolicy 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_featurePolicy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_featurePolicy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.HTMLIFrameElement_get_loading = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.loading; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_loading 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] HTMLIFrameElement_get_loading 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLIFrameElement_get_loading 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_loading, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLIFrameElement_set_loading = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.loading = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_loading, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLIFrameElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_get_align, 返回object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_get_align, 返回function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_scrolling = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.scrolling; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_scrolling 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_align, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_scrolling 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_align, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_scrolling 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_scrolling = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.scrolling; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_get_scrolling, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_get_scrolling, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_scrolling, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_scrolling, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_scrolling = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.scrolling = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_scrolling, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_frameBorder = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.frameBorder; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_frameBorder 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_scrolling, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_frameBorder 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_scrolling, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_frameBorder 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.scrolling = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_scrolling, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_frameBorder = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.frameBorder; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_get_frameBorder, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_get_frameBorder, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_frameBorder, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_frameBorder, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_frameBorder = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.frameBorder = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_frameBorder, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_longDesc = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.longDesc; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_longDesc 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_frameBorder, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_longDesc 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_frameBorder, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_longDesc 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.frameBorder = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_frameBorder, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_longDesc = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.longDesc; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_get_longDesc, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_get_longDesc, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_longDesc, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_longDesc, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_longDesc = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.longDesc = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_longDesc, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_marginHeight = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.marginHeight; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_marginHeight 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_longDesc, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_marginHeight 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_longDesc, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_marginHeight 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.longDesc = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_longDesc, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_marginHeight = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.marginHeight; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_get_marginHeight, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_get_marginHeight, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_marginHeight, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_marginHeight, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_marginHeight = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.marginHeight = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_marginHeight, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_marginWidth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.marginWidth; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_marginWidth 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_marginHeight, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_marginWidth 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_marginHeight, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_marginWidth 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.marginHeight = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_marginHeight, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_marginWidth = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.marginWidth; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_get_marginWidth, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_get_marginWidth, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_marginWidth, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_marginWidth, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_marginWidth = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.marginWidth = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_marginWidth, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_getSVGDocument = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getSVGDocument.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLIFrameElement_getSVGDocument 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLIFrameElement_getSVGDocument 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLIFrameElement_getSVGDocument 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_getSVGDocument, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLIFrameElement_get_credentialless = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.credentialless; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_credentialless 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_marginWidth, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_credentialless 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_marginWidth, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_credentialless 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.marginWidth = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_marginWidth, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_getSVGDocument = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getSVGDocument.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_getSVGDocument, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_getSVGDocument, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_credentialless, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_getSVGDocument, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.HTMLIFrameElement_set_credentialless = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.credentialless = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_credentialless, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_allowPaymentRequest = function () { - // 非法调用 + +this.HTMLIFrameElement_get_loading = function () { let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.allowPaymentRequest; - let type = typeof result; - switch (type) { + let result = dom_element.loading; + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_allowPaymentRequest 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_get_loading, 返回object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_allowPaymentRequest 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_get_loading, 返回function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_allowPaymentRequest 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_allowPaymentRequest, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_loading, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.HTMLIFrameElement_set_loading = function (val) { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_set_loading, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_set_loading, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.loading = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_loading, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLIFrameElement_get_allowPaymentRequest = function () { + let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.allowPaymentRequest; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLIFrameElement_get_allowPaymentRequest, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLIFrameElement_get_allowPaymentRequest, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_get_allowPaymentRequest, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLIFrameElement_set_allowPaymentRequest = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.allowPaymentRequest = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_allowPaymentRequest, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_privateToken = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.privateToken; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_privateToken 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLIFrameElement_set_allowPaymentRequest, set object'); break - case "function": - console.log("[*] HTMLIFrameElement_get_privateToken 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLIFrameElement_set_allowPaymentRequest, set function'); break default: - // string number - console.log("[*] HTMLIFrameElement_get_privateToken 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.allowPaymentRequest = val; } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_privateToken, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLIFrameElement_set_privateToken = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.privateToken = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_privateToken, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_browsingTopics = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.browsingTopics; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_browsingTopics 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] HTMLIFrameElement_get_browsingTopics 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLIFrameElement_get_browsingTopics 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_browsingTopics, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLIFrameElement_set_allowPaymentRequest, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLIFrameElement_set_browsingTopics = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.browsingTopics = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_browsingTopics, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_adAuctionHeaders = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.adAuctionHeaders; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_adAuctionHeaders 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLIFrameElement_get_adAuctionHeaders 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLIFrameElement_get_adAuctionHeaders 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_adAuctionHeaders, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLIFrameElement_set_adAuctionHeaders = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.adAuctionHeaders = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_adAuctionHeaders, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLIFrameElement_get_sharedStorageWritable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.sharedStorageWritable; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLIFrameElement_get_sharedStorageWritable 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLIFrameElement_get_sharedStorageWritable 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLIFrameElement_get_sharedStorageWritable 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLIFrameElement_get_sharedStorageWritable, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLIFrameElement_set_sharedStorageWritable = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLIFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.sharedStorageWritable = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLIFrameElement_set_sharedStorageWritable, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLHtmlElement_get_version = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLHtmlElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.version; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLHtmlElement_get_version 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLHtmlElement_get_version, 返回object'); break - case "function": - console.log("[*] HTMLHtmlElement_get_version 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLHtmlElement_get_version, 返回function'); break default: - // string number - console.log("[*] HTMLHtmlElement_get_version 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLHtmlElement_get_version, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLHtmlElement_get_version, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLHtmlElement_set_version = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLHtmlElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.version = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLHtmlElement_set_version, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLHtmlElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLHtmlElement_set_version, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLHtmlElement_set_version, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.version = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLHtmlElement_set_version, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLHeadingElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLHeadingElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLHeadingElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLHeadingElement_get_align, 返回object'); break - case "function": - console.log("[*] HTMLHeadingElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLHeadingElement_get_align, 返回function'); break default: - // string number - console.log("[*] HTMLHeadingElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLHeadingElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLHeadingElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLHeadingElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLHeadingElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLHeadingElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLHeadingElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLHeadingElement_set_align, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLHeadingElement_set_align, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLHeadingElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLHRElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLHRElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLHRElement_get_align, 返回object'); break - case "function": - console.log("[*] HTMLHRElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLHRElement_get_align, 返回function'); break default: - // string number - console.log("[*] HTMLHRElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLHRElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLHRElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLHRElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLHRElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLHRElement_get_color = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.color; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLHRElement_get_color 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLHRElement_set_align, set object'); break - case "function": - console.log("[*] HTMLHRElement_get_color 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLHRElement_set_align, set function'); break default: - // string number - console.log("[*] HTMLHRElement_get_color 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLHRElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLHRElement_get_color = function () { + let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.color; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLHRElement_get_color, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLHRElement_get_color, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLHRElement_get_color, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLHRElement_get_color, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLHRElement_set_color = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.color = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLHRElement_set_color, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLHRElement_get_noShade = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.noShade; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLHRElement_get_noShade 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLHRElement_set_color, set object'); break - case "function": - console.log("[*] HTMLHRElement_get_noShade 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLHRElement_set_color, set function'); break default: - // string number - console.log("[*] HTMLHRElement_get_noShade 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.color = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLHRElement_set_color, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLHRElement_get_noShade = function () { + let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.noShade; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLHRElement_get_noShade, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLHRElement_get_noShade, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLHRElement_get_noShade, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLHRElement_get_noShade, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLHRElement_set_noShade = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.noShade = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLHRElement_set_noShade, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLHRElement_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.size; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLHRElement_get_size 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLHRElement_set_noShade, set object'); break - case "function": - console.log("[*] HTMLHRElement_get_size 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLHRElement_set_noShade, set function'); break default: - // string number - console.log("[*] HTMLHRElement_get_size 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.noShade = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLHRElement_set_noShade, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLHRElement_get_size = function () { + let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.size; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLHRElement_get_size, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLHRElement_get_size, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLHRElement_get_size, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLHRElement_get_size, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLHRElement_set_size = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.size = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLHRElement_set_size, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLHRElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLHRElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLHRElement_set_size, set object'); break - case "function": - console.log("[*] HTMLHRElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLHRElement_set_size, set function'); break default: - // string number - console.log("[*] HTMLHRElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.size = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLHRElement_set_size, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLHRElement_get_width = function () { + let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLHRElement_get_width, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLHRElement_get_width, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLHRElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLHRElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLHRElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.width = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLHRElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLHRElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLHRElement_set_width, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLHRElement_set_width, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.width = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLHRElement_set_width, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLFrameSetElement_get_cols = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.cols; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_cols 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_get_cols, 返回object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_cols 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_get_cols, 返回function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_cols 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_cols, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_cols, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_cols = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.cols = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_cols, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_rows = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.rows; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_rows 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_cols, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_rows 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_cols, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_rows 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.cols = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_cols, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_rows = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rows; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_rows, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_rows, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_rows, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_rows, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_rows = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.rows = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_rows, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onblur = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onblur; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onblur 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_rows, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onblur 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_rows, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onblur 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.rows = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_rows, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onblur = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onblur; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onblur, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onblur, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onblur, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onblur, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onblur = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onblur = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onblur, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onerror; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onerror 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onblur, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onerror 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onblur, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onerror 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onblur = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onblur, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onerror = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onerror; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onerror, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onerror, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onerror, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onerror, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onerror = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onfocus = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onfocus; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onfocus 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onerror, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onfocus 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onerror, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onfocus 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onerror = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onerror, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onfocus = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onfocus; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onfocus, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onfocus, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onfocus, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onfocus, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onfocus = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onfocus = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onfocus, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onload = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onload; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onload 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onfocus, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onload 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onfocus, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onload 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onfocus = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onfocus, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onload = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onload; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onload, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onload, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onload, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onload, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onload = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onload = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onload, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onresize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onresize; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onresize 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onload, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onresize 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onload, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onresize 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onload = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onload, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onresize = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onresize; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onresize, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onresize, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onresize, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onresize, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onresize = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onresize = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onresize, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onscroll = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onscroll; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onscroll 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onresize, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onscroll 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onresize, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onscroll 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onresize = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onresize, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onscroll = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onscroll; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onscroll, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onscroll, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onscroll, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onscroll, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onscroll = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onscroll = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onscroll, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onafterprint = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onafterprint; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onafterprint 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onscroll, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onafterprint 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onscroll, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onafterprint 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onscroll = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onscroll, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onafterprint = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onafterprint; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onafterprint, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onafterprint, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onafterprint, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onafterprint, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onafterprint = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onafterprint = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onafterprint, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onbeforeprint = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforeprint; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onbeforeprint 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onafterprint, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onbeforeprint 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onafterprint, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onbeforeprint 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onafterprint = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onafterprint, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onbeforeprint = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onbeforeprint; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onbeforeprint, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onbeforeprint, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onbeforeprint, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onbeforeprint, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onbeforeprint = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforeprint = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onbeforeprint, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onbeforeunload = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforeunload; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onbeforeunload 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onbeforeprint, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onbeforeunload 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onbeforeprint, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onbeforeunload 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforeprint = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onbeforeprint, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onbeforeunload = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onbeforeunload; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onbeforeunload, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onbeforeunload, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onbeforeunload, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onbeforeunload, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onbeforeunload = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforeunload = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onbeforeunload, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onhashchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onhashchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onhashchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onbeforeunload, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onhashchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onbeforeunload, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onhashchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforeunload = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onbeforeunload, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onhashchange = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onhashchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onhashchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onhashchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onhashchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onhashchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onhashchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onhashchange = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onhashchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onlanguagechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onlanguagechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onlanguagechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onhashchange, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onlanguagechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onhashchange, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onlanguagechange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onhashchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onhashchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onlanguagechange = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onlanguagechange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onlanguagechange, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onlanguagechange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onlanguagechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onlanguagechange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onlanguagechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onlanguagechange = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onlanguagechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onmessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmessage; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onmessage 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onlanguagechange, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onmessage 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onlanguagechange, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onmessage 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onlanguagechange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onlanguagechange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onmessage = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmessage; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onmessage, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onmessage, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onmessage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onmessage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onmessage = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmessage = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onmessage, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onmessageerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmessageerror; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onmessageerror 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onmessage, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onmessageerror 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onmessage, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onmessageerror 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmessage = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onmessage, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onmessageerror = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmessageerror; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onmessageerror, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onmessageerror, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onmessageerror, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onmessageerror, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onmessageerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmessageerror = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onmessageerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onoffline = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onoffline; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onoffline 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onmessageerror, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onoffline 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onmessageerror, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onoffline 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmessageerror = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onmessageerror, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onoffline = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onoffline; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onoffline, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onoffline, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onoffline, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onoffline, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onoffline = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onoffline = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onoffline, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_ononline = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ononline; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_ononline 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onoffline, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_ononline 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onoffline, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_ononline 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onoffline = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onoffline, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_ononline = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ononline; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_ononline, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_ononline, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_ononline, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_ononline, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_ononline = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ononline = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_ononline, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onpagehide = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpagehide; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onpagehide 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_ononline, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onpagehide 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_ononline, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onpagehide 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ononline = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_ononline, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onpagehide = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpagehide; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onpagehide, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onpagehide, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onpagehide, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onpagehide, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onpagehide = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpagehide = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onpagehide, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onpageshow = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpageshow; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onpageshow 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onpagehide, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onpageshow 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onpagehide, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onpageshow 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpagehide = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onpagehide, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onpageshow = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpageshow; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onpageshow, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onpageshow, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onpageshow, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onpageshow, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onpageshow = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpageshow = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onpageshow, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onpopstate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpopstate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onpopstate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onpageshow, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onpopstate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onpageshow, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onpopstate 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpageshow = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onpageshow, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onpopstate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpopstate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onpopstate, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onpopstate, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onpopstate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onpopstate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onpopstate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpopstate = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onpopstate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onrejectionhandled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onrejectionhandled; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onrejectionhandled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onpopstate, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onrejectionhandled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onpopstate, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onrejectionhandled 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpopstate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onpopstate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onrejectionhandled = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onrejectionhandled; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onrejectionhandled, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onrejectionhandled, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onrejectionhandled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onrejectionhandled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onrejectionhandled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onrejectionhandled = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onrejectionhandled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onstorage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onstorage; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onstorage 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onrejectionhandled, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onstorage 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onrejectionhandled, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onstorage 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onrejectionhandled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onrejectionhandled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onstorage = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onstorage; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onstorage, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onstorage, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onstorage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onstorage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onstorage = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onstorage = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onstorage, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onunhandledrejection = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onunhandledrejection; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onunhandledrejection 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onstorage, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onunhandledrejection 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onstorage, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onunhandledrejection 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onstorage = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onstorage, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onunhandledrejection = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onunhandledrejection; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onunhandledrejection, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onunhandledrejection, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onunhandledrejection, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onunhandledrejection, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onunhandledrejection = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onunhandledrejection = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onunhandledrejection, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameSetElement_get_onunload = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onunload; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameSetElement_get_onunload 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onunhandledrejection, set object'); break - case "function": - console.log("[*] HTMLFrameSetElement_get_onunload 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onunhandledrejection, set function'); break default: - // string number - console.log("[*] HTMLFrameSetElement_get_onunload 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onunhandledrejection = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onunhandledrejection, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameSetElement_get_onunload = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onunload; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onunload, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_get_onunload, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameSetElement_get_onunload, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_get_onunload, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameSetElement_set_onunload = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onunload = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameSetElement_set_onunload, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLFrameSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onunload, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLFrameSetElement_set_onunload, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onunload = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameSetElement_set_onunload, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLFrameElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameElement_get_name, 返回object'); break - case "function": - console.log("[*] HTMLFrameElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameElement_get_name, 返回function'); break default: - // string number - console.log("[*] HTMLFrameElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameElement_get_scrolling = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.scrolling; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameElement_get_scrolling 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameElement_set_name, set object'); break - case "function": - console.log("[*] HTMLFrameElement_get_scrolling 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameElement_set_name, set function'); break default: - // string number - console.log("[*] HTMLFrameElement_get_scrolling 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameElement_get_scrolling = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.scrolling; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameElement_get_scrolling, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameElement_get_scrolling, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameElement_get_scrolling, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_get_scrolling, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameElement_set_scrolling = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.scrolling = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameElement_set_scrolling, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameElement_get_src = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.src; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameElement_get_src 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameElement_set_scrolling, set object'); break - case "function": - console.log("[*] HTMLFrameElement_get_src 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameElement_set_scrolling, set function'); break default: - // string number - console.log("[*] HTMLFrameElement_get_src 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.scrolling = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_set_scrolling, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameElement_get_src = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.src; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameElement_get_src, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameElement_get_src, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameElement_get_src, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_get_src, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameElement_set_src = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.src = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameElement_set_src, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameElement_get_frameBorder = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.frameBorder; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameElement_get_frameBorder 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameElement_set_src, set object'); break - case "function": - console.log("[*] HTMLFrameElement_get_frameBorder 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameElement_set_src, set function'); break default: - // string number - console.log("[*] HTMLFrameElement_get_frameBorder 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.src = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_set_src, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameElement_get_frameBorder = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.frameBorder; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameElement_get_frameBorder, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameElement_get_frameBorder, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameElement_get_frameBorder, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_get_frameBorder, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameElement_set_frameBorder = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.frameBorder = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameElement_set_frameBorder, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameElement_get_longDesc = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.longDesc; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameElement_get_longDesc 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameElement_set_frameBorder, set object'); break - case "function": - console.log("[*] HTMLFrameElement_get_longDesc 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameElement_set_frameBorder, set function'); break default: - // string number - console.log("[*] HTMLFrameElement_get_longDesc 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.frameBorder = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_set_frameBorder, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameElement_get_longDesc = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.longDesc; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameElement_get_longDesc, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameElement_get_longDesc, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameElement_get_longDesc, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_get_longDesc, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameElement_set_longDesc = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.longDesc = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameElement_set_longDesc, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameElement_get_noResize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.noResize; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameElement_get_noResize 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameElement_set_longDesc, set object'); break - case "function": - console.log("[*] HTMLFrameElement_get_noResize 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameElement_set_longDesc, set function'); break default: - // string number - console.log("[*] HTMLFrameElement_get_noResize 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.longDesc = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_set_longDesc, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameElement_get_noResize = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.noResize; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameElement_get_noResize, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameElement_get_noResize, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameElement_get_noResize, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_get_noResize, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameElement_set_noResize = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.noResize = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameElement_set_noResize, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameElement_get_contentDocument = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLFrameElement_set_noResize, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLFrameElement_set_noResize, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.noResize = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_set_noResize, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameElement_get_contentDocument = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.contentDocument; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameElement_get_contentDocument 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameElement_get_contentDocument, 返回object'); break - case "function": - console.log("[*] HTMLFrameElement_get_contentDocument 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameElement_get_contentDocument, 返回function'); break default: - // string number - console.log("[*] HTMLFrameElement_get_contentDocument 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameElement_get_contentDocument, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_get_contentDocument, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLFrameElement_get_contentWindow = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.contentWindow; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameElement_get_contentWindow 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameElement_get_contentWindow, 返回object'); break - case "function": - console.log("[*] HTMLFrameElement_get_contentWindow 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameElement_get_contentWindow, 返回function'); break default: - // string number - console.log("[*] HTMLFrameElement_get_contentWindow 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameElement_get_contentWindow, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_get_contentWindow, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLFrameElement_get_marginHeight = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.marginHeight; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameElement_get_marginHeight 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameElement_get_marginHeight, 返回object'); break - case "function": - console.log("[*] HTMLFrameElement_get_marginHeight 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameElement_get_marginHeight, 返回function'); break default: - // string number - console.log("[*] HTMLFrameElement_get_marginHeight 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameElement_get_marginHeight, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_get_marginHeight, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameElement_set_marginHeight = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.marginHeight = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameElement_set_marginHeight, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFrameElement_get_marginWidth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.marginWidth; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFrameElement_get_marginWidth 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFrameElement_set_marginHeight, set object'); break - case "function": - console.log("[*] HTMLFrameElement_get_marginWidth 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFrameElement_set_marginHeight, set function'); break default: - // string number - console.log("[*] HTMLFrameElement_get_marginWidth 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.marginHeight = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_set_marginHeight, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFrameElement_get_marginWidth = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.marginWidth; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFrameElement_get_marginWidth, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFrameElement_get_marginWidth, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFrameElement_get_marginWidth, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_get_marginWidth, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFrameElement_set_marginWidth = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.marginWidth = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFrameElement_set_marginWidth, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLFrameElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLFrameElement_set_marginWidth, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLFrameElement_set_marginWidth, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.marginWidth = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFrameElement_set_marginWidth, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLFormElement_get_acceptCharset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.acceptCharset; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFormElement_get_acceptCharset 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFormElement_get_acceptCharset, 返回object'); break - case "function": - console.log("[*] HTMLFormElement_get_acceptCharset 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFormElement_get_acceptCharset, 返回function'); break default: - // string number - console.log("[*] HTMLFormElement_get_acceptCharset 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_get_acceptCharset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_get_acceptCharset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFormElement_set_acceptCharset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.acceptCharset = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFormElement_set_acceptCharset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFormElement_get_action = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.action; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFormElement_get_action 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFormElement_set_acceptCharset, set object'); break - case "function": - console.log("[*] HTMLFormElement_get_action 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFormElement_set_acceptCharset, set function'); break default: - // string number - console.log("[*] HTMLFormElement_get_action 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.acceptCharset = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_set_acceptCharset, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFormElement_get_action = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.action; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFormElement_get_action, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFormElement_get_action, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_get_action, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_get_action, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFormElement_set_action = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.action = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFormElement_set_action, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFormElement_get_autocomplete = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.autocomplete; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFormElement_get_autocomplete 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFormElement_set_action, set object'); break - case "function": - console.log("[*] HTMLFormElement_get_autocomplete 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFormElement_set_action, set function'); break default: - // string number - console.log("[*] HTMLFormElement_get_autocomplete 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.action = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_set_action, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFormElement_get_autocomplete = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.autocomplete; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFormElement_get_autocomplete, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFormElement_get_autocomplete, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_get_autocomplete, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_get_autocomplete, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFormElement_set_autocomplete = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.autocomplete = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFormElement_set_autocomplete, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFormElement_get_enctype = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.enctype; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFormElement_get_enctype 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFormElement_set_autocomplete, set object'); break - case "function": - console.log("[*] HTMLFormElement_get_enctype 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFormElement_set_autocomplete, set function'); break default: - // string number - console.log("[*] HTMLFormElement_get_enctype 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.autocomplete = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_set_autocomplete, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFormElement_get_enctype = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.enctype; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFormElement_get_enctype, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFormElement_get_enctype, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_get_enctype, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_get_enctype, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFormElement_set_enctype = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.enctype = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFormElement_set_enctype, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFormElement_get_encoding = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.encoding; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFormElement_get_encoding 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFormElement_set_enctype, set object'); break - case "function": - console.log("[*] HTMLFormElement_get_encoding 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFormElement_set_enctype, set function'); break default: - // string number - console.log("[*] HTMLFormElement_get_encoding 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.enctype = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_set_enctype, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFormElement_get_encoding = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.encoding; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFormElement_get_encoding, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFormElement_get_encoding, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_get_encoding, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_get_encoding, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFormElement_set_encoding = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.encoding = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFormElement_set_encoding, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFormElement_get_method = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.method; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFormElement_get_method 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFormElement_set_encoding, set object'); break - case "function": - console.log("[*] HTMLFormElement_get_method 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFormElement_set_encoding, set function'); break default: - // string number - console.log("[*] HTMLFormElement_get_method 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.encoding = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_set_encoding, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFormElement_get_method = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.method; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFormElement_get_method, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFormElement_get_method, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_get_method, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_get_method, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFormElement_set_method = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.method = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFormElement_set_method, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFormElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFormElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFormElement_set_method, set object'); break - case "function": - console.log("[*] HTMLFormElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFormElement_set_method, set function'); break default: - // string number - console.log("[*] HTMLFormElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.method = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_set_method, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFormElement_get_name = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.name; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFormElement_get_name, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFormElement_get_name, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFormElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFormElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFormElement_get_noValidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.noValidate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFormElement_get_noValidate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFormElement_set_name, set object'); break - case "function": - console.log("[*] HTMLFormElement_get_noValidate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFormElement_set_name, set function'); break default: - // string number - console.log("[*] HTMLFormElement_get_noValidate 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFormElement_get_noValidate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.noValidate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFormElement_get_noValidate, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFormElement_get_noValidate, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_get_noValidate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_get_noValidate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFormElement_set_noValidate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.noValidate = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFormElement_set_noValidate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFormElement_get_target = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.target; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFormElement_get_target 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFormElement_set_noValidate, set object'); break - case "function": - console.log("[*] HTMLFormElement_get_target 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFormElement_set_noValidate, set function'); break default: - // string number - console.log("[*] HTMLFormElement_get_target 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.noValidate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_set_noValidate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFormElement_get_target = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.target; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFormElement_get_target, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFormElement_get_target, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_get_target, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_get_target, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFormElement_set_target = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.target = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFormElement_set_target, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFormElement_get_rel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.rel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFormElement_get_rel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFormElement_set_target, set object'); break - case "function": - console.log("[*] HTMLFormElement_get_rel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFormElement_set_target, set function'); break default: - // string number - console.log("[*] HTMLFormElement_get_rel 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.target = val; } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_get_rel, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLFormElement_set_rel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.rel = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFormElement_set_rel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFormElement_get_relList = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.relList; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFormElement_get_relList 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] HTMLFormElement_get_relList 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLFormElement_get_relList 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_get_relList, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_set_target, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLFormElement_set_relList = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.relList = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFormElement_set_relList, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLFormElement_get_elements = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.elements; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFormElement_get_elements 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFormElement_get_elements, 返回object'); break - case "function": - console.log("[*] HTMLFormElement_get_elements 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFormElement_get_elements, 返回function'); break default: - // string number - console.log("[*] HTMLFormElement_get_elements 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_get_elements, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_get_elements, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLFormElement_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.length; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFormElement_get_length 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFormElement_get_length, 返回object'); break - case "function": - console.log("[*] HTMLFormElement_get_length 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFormElement_get_length, 返回function'); break default: - // string number - console.log("[*] HTMLFormElement_get_length 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_get_length, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLFormElement_checkValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.checkValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLFormElement_checkValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLFormElement_checkValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLFormElement_checkValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_checkValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.checkValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFormElement_checkValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLFormElement_checkValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_checkValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLFormElement_reportValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.reportValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLFormElement_reportValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLFormElement_reportValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLFormElement_reportValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_reportValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.reportValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFormElement_reportValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLFormElement_reportValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_reportValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLFormElement_requestSubmit = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.requestSubmit.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLFormElement_requestSubmit 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLFormElement_requestSubmit 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLFormElement_requestSubmit 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_requestSubmit, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.requestSubmit.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFormElement_requestSubmit, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLFormElement_requestSubmit, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_requestSubmit, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLFormElement_reset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.reset.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLFormElement_reset 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLFormElement_reset 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLFormElement_reset 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_reset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.reset.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFormElement_reset, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLFormElement_reset, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_reset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLFormElement_submit = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.submit.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLFormElement_submit 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLFormElement_submit 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLFormElement_submit 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormElement_submit, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLFormElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.submit.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFormElement_submit, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLFormElement_submit, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormElement_submit, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLFormControlsCollection_namedItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFormControlsCollection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.namedItem.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLFormControlsCollection_namedItem 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLFormControlsCollection_namedItem 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLFormControlsCollection_namedItem 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFormControlsCollection_namedItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLFormControlsCollection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.namedItem.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFormControlsCollection_namedItem, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLFormControlsCollection_namedItem, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFormControlsCollection_namedItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLFontElement_get_color = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFontElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.color; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFontElement_get_color 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFontElement_get_color, 返回object'); break - case "function": - console.log("[*] HTMLFontElement_get_color 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFontElement_get_color, 返回function'); break default: - // string number - console.log("[*] HTMLFontElement_get_color 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFontElement_get_color, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFontElement_get_color, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFontElement_set_color = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFontElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.color = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFontElement_set_color, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFontElement_get_face = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFontElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.face; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFontElement_get_face 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFontElement_set_color, set object'); break - case "function": - console.log("[*] HTMLFontElement_get_face 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFontElement_set_color, set function'); break default: - // string number - console.log("[*] HTMLFontElement_get_face 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.color = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFontElement_set_color, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFontElement_get_face = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFontElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.face; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFontElement_get_face, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFontElement_get_face, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFontElement_get_face, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFontElement_get_face, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFontElement_set_face = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFontElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.face = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFontElement_set_face, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFontElement_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFontElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.size; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFontElement_get_size 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFontElement_set_face, set object'); break - case "function": - console.log("[*] HTMLFontElement_get_size 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFontElement_set_face, set function'); break default: - // string number - console.log("[*] HTMLFontElement_get_size 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.face = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFontElement_set_face, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFontElement_get_size = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFontElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.size; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFontElement_get_size, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFontElement_get_size, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFontElement_get_size, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFontElement_get_size, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFontElement_set_size = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFontElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.size = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFontElement_set_size, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLFontElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLFontElement_set_size, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLFontElement_set_size, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.size = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFontElement_set_size, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLFieldSetElement_get_disabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.disabled; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFieldSetElement_get_disabled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFieldSetElement_get_disabled, 返回object'); break - case "function": - console.log("[*] HTMLFieldSetElement_get_disabled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFieldSetElement_get_disabled, 返回function'); break default: - // string number - console.log("[*] HTMLFieldSetElement_get_disabled 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFieldSetElement_get_disabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFieldSetElement_get_disabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFieldSetElement_set_disabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.disabled = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFieldSetElement_set_disabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFieldSetElement_get_form = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.form; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFieldSetElement_get_form 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFieldSetElement_set_disabled, set object'); break - case "function": - console.log("[*] HTMLFieldSetElement_get_form 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFieldSetElement_set_disabled, set function'); break default: - // string number - console.log("[*] HTMLFieldSetElement_get_form 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.disabled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFieldSetElement_set_disabled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFieldSetElement_get_form = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.form; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFieldSetElement_get_form, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLFieldSetElement_get_form, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFieldSetElement_get_form, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFieldSetElement_get_form, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLFieldSetElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFieldSetElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFieldSetElement_get_name, 返回object'); break - case "function": - console.log("[*] HTMLFieldSetElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFieldSetElement_get_name, 返回function'); break default: - // string number - console.log("[*] HTMLFieldSetElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFieldSetElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFieldSetElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLFieldSetElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLFieldSetElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLFieldSetElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLFieldSetElement_set_name, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLFieldSetElement_set_name, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFieldSetElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLFieldSetElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFieldSetElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFieldSetElement_get_type, 返回object'); break - case "function": - console.log("[*] HTMLFieldSetElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFieldSetElement_get_type, 返回function'); break default: - // string number - console.log("[*] HTMLFieldSetElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFieldSetElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFieldSetElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLFieldSetElement_get_elements = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.elements; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFieldSetElement_get_elements 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFieldSetElement_get_elements, 返回object'); break - case "function": - console.log("[*] HTMLFieldSetElement_get_elements 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFieldSetElement_get_elements, 返回function'); break default: - // string number - console.log("[*] HTMLFieldSetElement_get_elements 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFieldSetElement_get_elements, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFieldSetElement_get_elements, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLFieldSetElement_get_willValidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.willValidate; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFieldSetElement_get_willValidate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFieldSetElement_get_willValidate, 返回object'); break - case "function": - console.log("[*] HTMLFieldSetElement_get_willValidate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFieldSetElement_get_willValidate, 返回function'); break default: - // string number - console.log("[*] HTMLFieldSetElement_get_willValidate 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFieldSetElement_get_willValidate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFieldSetElement_get_willValidate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLFieldSetElement_get_validity = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.validity; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFieldSetElement_get_validity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFieldSetElement_get_validity, 返回object'); break - case "function": - console.log("[*] HTMLFieldSetElement_get_validity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFieldSetElement_get_validity, 返回function'); break default: - // string number - console.log("[*] HTMLFieldSetElement_get_validity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFieldSetElement_get_validity, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFieldSetElement_get_validity, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLFieldSetElement_get_validationMessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.validationMessage; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLFieldSetElement_get_validationMessage 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLFieldSetElement_get_validationMessage, 返回object'); break - case "function": - console.log("[*] HTMLFieldSetElement_get_validationMessage 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLFieldSetElement_get_validationMessage, 返回function'); break default: - // string number - console.log("[*] HTMLFieldSetElement_get_validationMessage 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFieldSetElement_get_validationMessage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFieldSetElement_get_validationMessage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLFieldSetElement_checkValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.checkValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLFieldSetElement_checkValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLFieldSetElement_checkValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLFieldSetElement_checkValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFieldSetElement_checkValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.checkValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFieldSetElement_checkValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLFieldSetElement_checkValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFieldSetElement_checkValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLFieldSetElement_reportValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.reportValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLFieldSetElement_reportValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLFieldSetElement_reportValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLFieldSetElement_reportValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFieldSetElement_reportValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.reportValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFieldSetElement_reportValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLFieldSetElement_reportValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFieldSetElement_reportValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLFieldSetElement_setCustomValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setCustomValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLFieldSetElement_setCustomValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLFieldSetElement_setCustomValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLFieldSetElement_setCustomValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFieldSetElement_setCustomValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLFieldSetElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setCustomValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLFieldSetElement_setCustomValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLFieldSetElement_setCustomValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLFieldSetElement_setCustomValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLEmbedElement_get_src = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.src; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLEmbedElement_get_src 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLEmbedElement_get_src, 返回object'); break - case "function": - console.log("[*] HTMLEmbedElement_get_src 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLEmbedElement_get_src, 返回function'); break default: - // string number - console.log("[*] HTMLEmbedElement_get_src 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLEmbedElement_get_src, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLEmbedElement_get_src, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLEmbedElement_set_src = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.src = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLEmbedElement_set_src, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLEmbedElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLEmbedElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLEmbedElement_set_src, set object'); break - case "function": - console.log("[*] HTMLEmbedElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLEmbedElement_set_src, set function'); break default: - // string number - console.log("[*] HTMLEmbedElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.src = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLEmbedElement_set_src, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLEmbedElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLEmbedElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLEmbedElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLEmbedElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLEmbedElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLEmbedElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.type = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLEmbedElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLEmbedElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLEmbedElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLEmbedElement_set_type, set object'); break - case "function": - console.log("[*] HTMLEmbedElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLEmbedElement_set_type, set function'); break default: - // string number - console.log("[*] HTMLEmbedElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLEmbedElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLEmbedElement_get_width = function () { + let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.width; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLEmbedElement_get_width, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLEmbedElement_get_width, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLEmbedElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLEmbedElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLEmbedElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.width = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLEmbedElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLEmbedElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.height; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLEmbedElement_get_height 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLEmbedElement_set_width, set object'); break - case "function": - console.log("[*] HTMLEmbedElement_get_height 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLEmbedElement_set_width, set function'); break default: - // string number - console.log("[*] HTMLEmbedElement_get_height 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.width = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLEmbedElement_set_width, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLEmbedElement_get_height = function () { + let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLEmbedElement_get_height, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLEmbedElement_get_height, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLEmbedElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLEmbedElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLEmbedElement_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.height = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLEmbedElement_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLEmbedElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLEmbedElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLEmbedElement_set_height, set object'); break - case "function": - console.log("[*] HTMLEmbedElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLEmbedElement_set_height, set function'); break default: - // string number - console.log("[*] HTMLEmbedElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.height = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLEmbedElement_set_height, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLEmbedElement_get_align = function () { + let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.align; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLEmbedElement_get_align, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLEmbedElement_get_align, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLEmbedElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLEmbedElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLEmbedElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLEmbedElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLEmbedElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLEmbedElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLEmbedElement_set_align, set object'); break - case "function": - console.log("[*] HTMLEmbedElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLEmbedElement_set_align, set function'); break default: - // string number - console.log("[*] HTMLEmbedElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLEmbedElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLEmbedElement_get_name = function () { + let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.name; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLEmbedElement_get_name, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLEmbedElement_get_name, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLEmbedElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLEmbedElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLEmbedElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLEmbedElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLEmbedElement_set_name, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLEmbedElement_set_name, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLEmbedElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLEmbedElement_getSVGDocument = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getSVGDocument.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLEmbedElement_getSVGDocument 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLEmbedElement_getSVGDocument 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLEmbedElement_getSVGDocument 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLEmbedElement_getSVGDocument, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLEmbedElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getSVGDocument.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLEmbedElement_getSVGDocument, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLEmbedElement_getSVGDocument, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLEmbedElement_getSVGDocument, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLElement_get_title = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.title; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_title 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_title, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_title 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_title, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_title 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_title, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_title, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_title = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.title = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_title, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_lang = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.lang; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_lang 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_title, set object'); break - case "function": - console.log("[*] HTMLElement_get_lang 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_title, set function'); break default: - // string number - console.log("[*] HTMLElement_get_lang 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.title = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_title, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_lang = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.lang; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_lang, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_lang, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_lang, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_lang, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_lang = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.lang = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_lang, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_translate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.translate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_translate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_lang, set object'); break - case "function": - console.log("[*] HTMLElement_get_translate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_lang, set function'); break default: - // string number - console.log("[*] HTMLElement_get_translate 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.lang = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_lang, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_translate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.translate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_translate, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_translate, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_translate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_translate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_translate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.translate = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_translate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_dir = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.dir; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_dir 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_translate, set object'); break - case "function": - console.log("[*] HTMLElement_get_dir 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_translate, set function'); break default: - // string number - console.log("[*] HTMLElement_get_dir 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.translate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_translate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_dir = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.dir; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_dir, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_dir, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_dir, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_dir, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_dir = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.dir = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_dir, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_hidden = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hidden; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_hidden 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_dir, set object'); break - case "function": - console.log("[*] HTMLElement_get_hidden 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_dir, set function'); break default: - // string number - console.log("[*] HTMLElement_get_hidden 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.dir = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_dir, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_hidden = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hidden; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_hidden, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_hidden, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_hidden, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_hidden, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_hidden = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.hidden = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_hidden, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_inert = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.inert; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_inert 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_hidden, set object'); break - case "function": - console.log("[*] HTMLElement_get_inert 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_hidden, set function'); break default: - // string number - console.log("[*] HTMLElement_get_inert 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.hidden = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_inert, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_hidden, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLElement_set_inert = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.inert = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_inert, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLElement_get_accessKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.accessKey; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_accessKey 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_accessKey, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_accessKey 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_accessKey, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_accessKey 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_accessKey, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_accessKey, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_accessKey = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.accessKey = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_accessKey, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_draggable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.draggable; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_draggable 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_accessKey, set object'); break - case "function": - console.log("[*] HTMLElement_get_draggable 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_accessKey, set function'); break default: - // string number - console.log("[*] HTMLElement_get_draggable 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.accessKey = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_accessKey, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_draggable = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.draggable; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_draggable, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_draggable, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_draggable, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_draggable, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_draggable = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.draggable = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_draggable, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_spellcheck = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.spellcheck; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_spellcheck 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_draggable, set object'); break - case "function": - console.log("[*] HTMLElement_get_spellcheck 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_draggable, set function'); break default: - // string number - console.log("[*] HTMLElement_get_spellcheck 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.draggable = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_draggable, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_spellcheck = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.spellcheck; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_spellcheck, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_spellcheck, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_spellcheck, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_spellcheck, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_spellcheck = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.spellcheck = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_spellcheck, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_autocapitalize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.autocapitalize; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_autocapitalize 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_spellcheck, set object'); break - case "function": - console.log("[*] HTMLElement_get_autocapitalize 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_spellcheck, set function'); break default: - // string number - console.log("[*] HTMLElement_get_autocapitalize 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.spellcheck = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_spellcheck, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_autocapitalize = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.autocapitalize; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_autocapitalize, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_autocapitalize, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_autocapitalize, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_autocapitalize, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_autocapitalize = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.autocapitalize = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_autocapitalize, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_contentEditable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.contentEditable; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_contentEditable 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_autocapitalize, set object'); break - case "function": - console.log("[*] HTMLElement_get_contentEditable 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_autocapitalize, set function'); break default: - // string number - console.log("[*] HTMLElement_get_contentEditable 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.autocapitalize = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_autocapitalize, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_contentEditable = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.contentEditable; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_contentEditable, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_contentEditable, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_contentEditable, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_contentEditable, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_contentEditable = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.contentEditable = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_contentEditable, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_enterKeyHint = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.enterKeyHint; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_enterKeyHint 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_contentEditable, set object'); break - case "function": - console.log("[*] HTMLElement_get_enterKeyHint 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_contentEditable, set function'); break default: - // string number - console.log("[*] HTMLElement_get_enterKeyHint 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.contentEditable = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_enterKeyHint, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_contentEditable, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLElement_set_enterKeyHint = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.enterKeyHint = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_enterKeyHint, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLElement_get_isContentEditable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.isContentEditable; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_isContentEditable 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_isContentEditable, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_isContentEditable 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_isContentEditable, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_isContentEditable 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_isContentEditable, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_isContentEditable, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLElement_get_inputMode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.inputMode; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_inputMode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_inputMode, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_inputMode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_inputMode, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_inputMode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_inputMode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_inputMode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_inputMode = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.inputMode = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_inputMode, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_virtualKeyboardPolicy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.virtualKeyboardPolicy; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_virtualKeyboardPolicy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_inputMode, set object'); break - case "function": - console.log("[*] HTMLElement_get_virtualKeyboardPolicy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_inputMode, set function'); break default: - // string number - console.log("[*] HTMLElement_get_virtualKeyboardPolicy 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.inputMode = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_virtualKeyboardPolicy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_inputMode, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLElement_set_virtualKeyboardPolicy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.virtualKeyboardPolicy = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_virtualKeyboardPolicy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLElement_get_offsetParent = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.offsetParent; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_offsetParent 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_offsetParent, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_offsetParent 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_offsetParent, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_offsetParent 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_offsetParent, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_offsetParent, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLElement_get_offsetTop = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.offsetTop; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_offsetTop 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_offsetTop, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_offsetTop 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_offsetTop, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_offsetTop 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_offsetTop, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_offsetTop, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLElement_get_offsetLeft = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.offsetLeft; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_offsetLeft 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_offsetLeft, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_offsetLeft 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_offsetLeft, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_offsetLeft 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_offsetLeft, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_offsetLeft, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLElement_get_offsetWidth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.offsetWidth; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_offsetWidth 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_offsetWidth, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_offsetWidth 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_offsetWidth, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_offsetWidth 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_offsetWidth, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_offsetWidth, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLElement_get_offsetHeight = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.offsetHeight; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_offsetHeight 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_offsetHeight, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_offsetHeight 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_offsetHeight, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_offsetHeight 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_offsetHeight, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_offsetHeight, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.HTMLElement_get_popover = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.popover; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_popover 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] HTMLElement_get_popover 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLElement_get_popover 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_popover, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLElement_set_popover = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.popover = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_popover, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLElement_get_innerText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.innerText; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_innerText 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_innerText, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_innerText 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_innerText, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_innerText 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_innerText, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_innerText, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_innerText = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.innerText = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_innerText, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_outerText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.outerText; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_outerText 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_innerText, set object'); break - case "function": - console.log("[*] HTMLElement_get_outerText 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_innerText, set function'); break default: - // string number - console.log("[*] HTMLElement_get_outerText 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.innerText = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_innerText, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_outerText = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.outerText; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_outerText, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_outerText, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_outerText, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_outerText, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_outerText = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.outerText = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_outerText, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onbeforexrselect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforexrselect; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onbeforexrselect 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_outerText, set object'); break - case "function": - console.log("[*] HTMLElement_get_onbeforexrselect 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_outerText, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onbeforexrselect 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.outerText = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_outerText, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onbeforexrselect = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onbeforexrselect; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onbeforexrselect, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onbeforexrselect, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onbeforexrselect, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onbeforexrselect, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onbeforexrselect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforexrselect = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onbeforexrselect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onabort = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onabort; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onabort 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onbeforexrselect, set object'); break - case "function": - console.log("[*] HTMLElement_get_onabort 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onbeforexrselect, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onabort 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforexrselect = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onbeforexrselect, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onabort = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onabort; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onabort, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onabort, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onabort, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onabort, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onabort = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onabort = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onabort, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onbeforeinput = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforeinput; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onbeforeinput 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onabort, set object'); break - case "function": - console.log("[*] HTMLElement_get_onbeforeinput 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onabort, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onbeforeinput 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onabort = val; } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onbeforeinput, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLElement_set_onbeforeinput = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforeinput = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onbeforeinput, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onbeforematch = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforematch; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onbeforematch 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] HTMLElement_get_onbeforematch 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLElement_get_onbeforematch 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onbeforematch, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onabort, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLElement_set_onbeforematch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforematch = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onbeforematch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onbeforetoggle = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforetoggle; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onbeforetoggle 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLElement_get_onbeforetoggle 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLElement_get_onbeforetoggle 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onbeforetoggle, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLElement_set_onbeforetoggle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforetoggle = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onbeforetoggle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLElement_get_onblur = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.onblur; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onblur 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_onblur, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_onblur 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_onblur, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_onblur 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onblur, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onblur, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onblur = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onblur = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onblur, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_oncancel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncancel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_oncancel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onblur, set object'); break - case "function": - console.log("[*] HTMLElement_get_oncancel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onblur, set function'); break default: - // string number - console.log("[*] HTMLElement_get_oncancel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onblur = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onblur, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_oncancel = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncancel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_oncancel, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_oncancel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_oncancel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_oncancel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_oncancel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncancel = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_oncancel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_oncanplay = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncanplay; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_oncanplay 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_oncancel, set object'); break - case "function": - console.log("[*] HTMLElement_get_oncanplay 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_oncancel, set function'); break default: - // string number - console.log("[*] HTMLElement_get_oncanplay 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncancel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_oncancel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_oncanplay = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncanplay; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_oncanplay, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_oncanplay, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_oncanplay, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_oncanplay, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_oncanplay = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncanplay = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_oncanplay, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_oncanplaythrough = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncanplaythrough; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_oncanplaythrough 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_oncanplay, set object'); break - case "function": - console.log("[*] HTMLElement_get_oncanplaythrough 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_oncanplay, set function'); break default: - // string number - console.log("[*] HTMLElement_get_oncanplaythrough 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncanplay = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_oncanplay, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_oncanplaythrough = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncanplaythrough; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_oncanplaythrough, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_oncanplaythrough, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_oncanplaythrough, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_oncanplaythrough, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_oncanplaythrough = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncanplaythrough = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_oncanplaythrough, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_oncanplaythrough, set object'); break - case "function": - console.log("[*] HTMLElement_get_onchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_oncanplaythrough, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncanplaythrough = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_oncanplaythrough, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onchange = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onchange = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onclick = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onclick; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onclick 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onchange, set object'); break - case "function": - console.log("[*] HTMLElement_get_onclick 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onchange, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onclick 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onclick = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onclick; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onclick, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onclick, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onclick, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onclick, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onclick = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onclick = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onclick, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onclose = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onclose; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onclose 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onclick, set object'); break - case "function": - console.log("[*] HTMLElement_get_onclose 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onclick, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onclose 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onclick = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onclick, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onclose = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onclose; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onclose, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onclose, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onclose, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onclose, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onclose = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onclose = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onclose, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_oncontentvisibilityautostatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncontentvisibilityautostatechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_oncontentvisibilityautostatechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onclose, set object'); break - case "function": - console.log("[*] HTMLElement_get_oncontentvisibilityautostatechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onclose, set function'); break default: - // string number - console.log("[*] HTMLElement_get_oncontentvisibilityautostatechange 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onclose = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_oncontentvisibilityautostatechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onclose, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLElement_set_oncontentvisibilityautostatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncontentvisibilityautostatechange = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_oncontentvisibilityautostatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLElement_get_oncontextlost = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.oncontextlost; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_oncontextlost 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_oncontextlost, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_oncontextlost 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_oncontextlost, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_oncontextlost 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_oncontextlost, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_oncontextlost, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_oncontextlost = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncontextlost = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_oncontextlost, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_oncontextmenu = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncontextmenu; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_oncontextmenu 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_oncontextlost, set object'); break - case "function": - console.log("[*] HTMLElement_get_oncontextmenu 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_oncontextlost, set function'); break default: - // string number - console.log("[*] HTMLElement_get_oncontextmenu 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncontextlost = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_oncontextlost, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_oncontextmenu = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncontextmenu; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_oncontextmenu, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_oncontextmenu, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_oncontextmenu, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_oncontextmenu, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_oncontextmenu = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncontextmenu = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_oncontextmenu, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_oncontextrestored = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncontextrestored; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_oncontextrestored 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_oncontextmenu, set object'); break - case "function": - console.log("[*] HTMLElement_get_oncontextrestored 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_oncontextmenu, set function'); break default: - // string number - console.log("[*] HTMLElement_get_oncontextrestored 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncontextmenu = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_oncontextmenu, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_oncontextrestored = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncontextrestored; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_oncontextrestored, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_oncontextrestored, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_oncontextrestored, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_oncontextrestored, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_oncontextrestored = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncontextrestored = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_oncontextrestored, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_oncuechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncuechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_oncuechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_oncontextrestored, set object'); break - case "function": - console.log("[*] HTMLElement_get_oncuechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_oncontextrestored, set function'); break default: - // string number - console.log("[*] HTMLElement_get_oncuechange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncontextrestored = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_oncontextrestored, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_oncuechange = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncuechange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_oncuechange, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_oncuechange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_oncuechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_oncuechange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_oncuechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncuechange = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_oncuechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ondblclick = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondblclick; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ondblclick 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_oncuechange, set object'); break - case "function": - console.log("[*] HTMLElement_get_ondblclick 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_oncuechange, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ondblclick 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncuechange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_oncuechange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ondblclick = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondblclick; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ondblclick, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ondblclick, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ondblclick, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ondblclick, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ondblclick = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondblclick = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ondblclick, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ondrag = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondrag; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ondrag 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ondblclick, set object'); break - case "function": - console.log("[*] HTMLElement_get_ondrag 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ondblclick, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ondrag 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondblclick = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ondblclick, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ondrag = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondrag; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ondrag, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ondrag, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ondrag, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ondrag, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ondrag = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondrag = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ondrag, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ondragend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ondragend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ondrag, set object'); break - case "function": - console.log("[*] HTMLElement_get_ondragend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ondrag, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ondragend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondrag = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ondrag, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ondragend = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ondragend, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ondragend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ondragend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ondragend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ondragend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragend = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ondragend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ondragenter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragenter; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ondragenter 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ondragend, set object'); break - case "function": - console.log("[*] HTMLElement_get_ondragenter 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ondragend, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ondragenter 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ondragend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ondragenter = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragenter; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ondragenter, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ondragenter, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ondragenter, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ondragenter, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ondragenter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragenter = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ondragenter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ondragleave = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragleave; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ondragleave 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ondragenter, set object'); break - case "function": - console.log("[*] HTMLElement_get_ondragleave 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ondragenter, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ondragleave 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragenter = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ondragenter, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ondragleave = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragleave; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ondragleave, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ondragleave, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ondragleave, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ondragleave, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ondragleave = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragleave = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ondragleave, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ondragover = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragover; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ondragover 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ondragleave, set object'); break - case "function": - console.log("[*] HTMLElement_get_ondragover 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ondragleave, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ondragover 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragleave = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ondragleave, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ondragover = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragover; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ondragover, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ondragover, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ondragover, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ondragover, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ondragover = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragover = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ondragover, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ondragstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ondragstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ondragover, set object'); break - case "function": - console.log("[*] HTMLElement_get_ondragstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ondragover, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ondragstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragover = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ondragover, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ondragstart = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ondragstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ondragstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ondragstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ondragstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ondragstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragstart = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ondragstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ondrop = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondrop; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ondrop 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ondragstart, set object'); break - case "function": - console.log("[*] HTMLElement_get_ondrop 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ondragstart, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ondrop 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ondragstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ondrop = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondrop; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ondrop, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ondrop, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ondrop, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ondrop, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ondrop = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondrop = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ondrop, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ondurationchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondurationchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ondurationchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ondrop, set object'); break - case "function": - console.log("[*] HTMLElement_get_ondurationchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ondrop, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ondurationchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondrop = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ondrop, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ondurationchange = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondurationchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ondurationchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ondurationchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ondurationchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ondurationchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ondurationchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondurationchange = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ondurationchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onemptied = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onemptied; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onemptied 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ondurationchange, set object'); break - case "function": - console.log("[*] HTMLElement_get_onemptied 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ondurationchange, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onemptied 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondurationchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ondurationchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onemptied = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onemptied; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onemptied, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onemptied, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onemptied, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onemptied, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onemptied = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onemptied = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onemptied, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onended = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onended; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onended 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onemptied, set object'); break - case "function": - console.log("[*] HTMLElement_get_onended 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onemptied, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onended 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onemptied = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onemptied, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onended = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onended; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onended, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onended, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onended, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onended, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onended = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onended = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onended, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onerror; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onerror 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onended, set object'); break - case "function": - console.log("[*] HTMLElement_get_onerror 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onended, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onerror 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onended = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onended, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onerror = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onerror; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onerror, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onerror, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onerror, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onerror, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onerror = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onfocus = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onfocus; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onfocus 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onerror, set object'); break - case "function": - console.log("[*] HTMLElement_get_onfocus 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onerror, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onfocus 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onerror = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onerror, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onfocus = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onfocus; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onfocus, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onfocus, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onfocus, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onfocus, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onfocus = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onfocus = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onfocus, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onformdata = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onformdata; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onformdata 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onfocus, set object'); break - case "function": - console.log("[*] HTMLElement_get_onformdata 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onfocus, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onformdata 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onfocus = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onfocus, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onformdata = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onformdata; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onformdata, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onformdata, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onformdata, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onformdata, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onformdata = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onformdata = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onformdata, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_oninput = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oninput; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_oninput 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onformdata, set object'); break - case "function": - console.log("[*] HTMLElement_get_oninput 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onformdata, set function'); break default: - // string number - console.log("[*] HTMLElement_get_oninput 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onformdata = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onformdata, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_oninput = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oninput; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_oninput, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_oninput, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_oninput, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_oninput, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_oninput = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oninput = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_oninput, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_oninvalid = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oninvalid; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_oninvalid 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_oninput, set object'); break - case "function": - console.log("[*] HTMLElement_get_oninvalid 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_oninput, set function'); break default: - // string number - console.log("[*] HTMLElement_get_oninvalid 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oninput = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_oninput, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_oninvalid = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oninvalid; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_oninvalid, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_oninvalid, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_oninvalid, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_oninvalid, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_oninvalid = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oninvalid = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_oninvalid, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onkeydown = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onkeydown; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onkeydown 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_oninvalid, set object'); break - case "function": - console.log("[*] HTMLElement_get_onkeydown 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_oninvalid, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onkeydown 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oninvalid = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_oninvalid, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onkeydown = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onkeydown; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onkeydown, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onkeydown, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onkeydown, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onkeydown, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onkeydown = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onkeydown = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onkeydown, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onkeypress = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onkeypress; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onkeypress 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onkeydown, set object'); break - case "function": - console.log("[*] HTMLElement_get_onkeypress 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onkeydown, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onkeypress 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onkeydown = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onkeydown, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onkeypress = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onkeypress; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onkeypress, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onkeypress, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onkeypress, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onkeypress, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onkeypress = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onkeypress = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onkeypress, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onkeyup = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onkeyup; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onkeyup 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onkeypress, set object'); break - case "function": - console.log("[*] HTMLElement_get_onkeyup 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onkeypress, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onkeyup 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onkeypress = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onkeypress, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onkeyup = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onkeyup; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onkeyup, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onkeyup, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onkeyup, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onkeyup, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onkeyup = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onkeyup = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onkeyup, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onload = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onload; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onload 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onkeyup, set object'); break - case "function": - console.log("[*] HTMLElement_get_onload 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onkeyup, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onload 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onkeyup = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onkeyup, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onload = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onload; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onload, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onload, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onload, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onload, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onload = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onload = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onload, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onloadeddata = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onloadeddata; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onloadeddata 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onload, set object'); break - case "function": - console.log("[*] HTMLElement_get_onloadeddata 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onload, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onloadeddata 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onload = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onload, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onloadeddata = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onloadeddata; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onloadeddata, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onloadeddata, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onloadeddata, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onloadeddata, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onloadeddata = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onloadeddata = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onloadeddata, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onloadedmetadata = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onloadedmetadata; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onloadedmetadata 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onloadeddata, set object'); break - case "function": - console.log("[*] HTMLElement_get_onloadedmetadata 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onloadeddata, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onloadedmetadata 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onloadeddata = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onloadeddata, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onloadedmetadata = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onloadedmetadata; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onloadedmetadata, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onloadedmetadata, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onloadedmetadata, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onloadedmetadata, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onloadedmetadata = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onloadedmetadata = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onloadedmetadata, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onloadstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onloadstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onloadstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onloadedmetadata, set object'); break - case "function": - console.log("[*] HTMLElement_get_onloadstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onloadedmetadata, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onloadstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onloadedmetadata = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onloadedmetadata, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onloadstart = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onloadstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onloadstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onloadstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onloadstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onloadstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onloadstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onloadstart = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onloadstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onmousedown = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmousedown; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onmousedown 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onloadstart, set object'); break - case "function": - console.log("[*] HTMLElement_get_onmousedown 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onloadstart, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onmousedown 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onloadstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onloadstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onmousedown = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmousedown; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onmousedown, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onmousedown, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onmousedown, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onmousedown, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onmousedown = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmousedown = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onmousedown, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onmouseenter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseenter; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onmouseenter 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onmousedown, set object'); break - case "function": - console.log("[*] HTMLElement_get_onmouseenter 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onmousedown, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onmouseenter 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmousedown = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onmousedown, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onmouseenter = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseenter; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onmouseenter, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onmouseenter, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onmouseenter, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onmouseenter, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onmouseenter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseenter = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onmouseenter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onmouseleave = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseleave; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onmouseleave 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onmouseenter, set object'); break - case "function": - console.log("[*] HTMLElement_get_onmouseleave 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onmouseenter, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onmouseleave 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseenter = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onmouseenter, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onmouseleave = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseleave; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onmouseleave, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onmouseleave, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onmouseleave, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onmouseleave, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onmouseleave = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseleave = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onmouseleave, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onmousemove = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmousemove; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onmousemove 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onmouseleave, set object'); break - case "function": - console.log("[*] HTMLElement_get_onmousemove 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onmouseleave, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onmousemove 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseleave = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onmouseleave, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onmousemove = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmousemove; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onmousemove, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onmousemove, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onmousemove, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onmousemove, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onmousemove = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmousemove = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onmousemove, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onmouseout = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseout; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onmouseout 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onmousemove, set object'); break - case "function": - console.log("[*] HTMLElement_get_onmouseout 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onmousemove, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onmouseout 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmousemove = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onmousemove, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onmouseout = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseout; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onmouseout, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onmouseout, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onmouseout, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onmouseout, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onmouseout = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseout = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onmouseout, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onmouseover = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseover; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onmouseover 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onmouseout, set object'); break - case "function": - console.log("[*] HTMLElement_get_onmouseover 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onmouseout, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onmouseover 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseout = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onmouseout, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onmouseover = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseover; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onmouseover, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onmouseover, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onmouseover, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onmouseover, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onmouseover = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseover = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onmouseover, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onmouseup = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseup; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onmouseup 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onmouseover, set object'); break - case "function": - console.log("[*] HTMLElement_get_onmouseup 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onmouseover, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onmouseup 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseover = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onmouseover, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onmouseup = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseup; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onmouseup, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onmouseup, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onmouseup, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onmouseup, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onmouseup = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseup = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onmouseup, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onmousewheel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmousewheel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onmousewheel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onmouseup, set object'); break - case "function": - console.log("[*] HTMLElement_get_onmousewheel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onmouseup, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onmousewheel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseup = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onmouseup, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onmousewheel = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmousewheel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onmousewheel, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onmousewheel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onmousewheel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onmousewheel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onmousewheel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmousewheel = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onmousewheel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onpause = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpause; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onpause 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onmousewheel, set object'); break - case "function": - console.log("[*] HTMLElement_get_onpause 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onmousewheel, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onpause 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmousewheel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onmousewheel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onpause = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpause; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onpause, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onpause, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onpause, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onpause, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onpause = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpause = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onpause, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onplay = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onplay; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onplay 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onpause, set object'); break - case "function": - console.log("[*] HTMLElement_get_onplay 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onpause, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onplay 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpause = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onpause, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onplay = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onplay; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onplay, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onplay, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onplay, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onplay, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onplay = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onplay = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onplay, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onplaying = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onplaying; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onplaying 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onplay, set object'); break - case "function": - console.log("[*] HTMLElement_get_onplaying 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onplay, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onplaying 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onplay = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onplay, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onplaying = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onplaying; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onplaying, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onplaying, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onplaying, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onplaying, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onplaying = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onplaying = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onplaying, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onprogress = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onprogress; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onprogress 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onplaying, set object'); break - case "function": - console.log("[*] HTMLElement_get_onprogress 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onplaying, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onprogress 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onplaying = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onplaying, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onprogress = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onprogress; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onprogress, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onprogress, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onprogress, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onprogress, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onprogress = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onprogress = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onprogress, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onratechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onratechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onratechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onprogress, set object'); break - case "function": - console.log("[*] HTMLElement_get_onratechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onprogress, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onratechange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onprogress = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onprogress, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onratechange = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onratechange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onratechange, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onratechange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onratechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onratechange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onratechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onratechange = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onratechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onreset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onreset; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onreset 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onratechange, set object'); break - case "function": - console.log("[*] HTMLElement_get_onreset 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onratechange, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onreset 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onratechange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onratechange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onreset = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onreset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onreset, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onreset, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onreset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onreset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onreset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onreset = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onreset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onresize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onresize; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onresize 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onreset, set object'); break - case "function": - console.log("[*] HTMLElement_get_onresize 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onreset, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onresize 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onreset = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onreset, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onresize = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onresize; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onresize, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onresize, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onresize, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onresize, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onresize = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onresize = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onresize, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onscroll = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onscroll; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onscroll 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onresize, set object'); break - case "function": - console.log("[*] HTMLElement_get_onscroll 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onresize, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onscroll 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onresize = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onresize, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onscroll = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onscroll; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onscroll, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onscroll, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onscroll, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onscroll, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onscroll = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onscroll = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onscroll, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onsecuritypolicyviolation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onsecuritypolicyviolation; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onsecuritypolicyviolation 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onscroll, set object'); break - case "function": - console.log("[*] HTMLElement_get_onsecuritypolicyviolation 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onscroll, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onsecuritypolicyviolation 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onscroll = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onscroll, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onsecuritypolicyviolation = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onsecuritypolicyviolation; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onsecuritypolicyviolation, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onsecuritypolicyviolation, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onsecuritypolicyviolation, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onsecuritypolicyviolation, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onsecuritypolicyviolation = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onsecuritypolicyviolation = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onsecuritypolicyviolation, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onseeked = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onseeked; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onseeked 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onsecuritypolicyviolation, set object'); break - case "function": - console.log("[*] HTMLElement_get_onseeked 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onsecuritypolicyviolation, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onseeked 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onsecuritypolicyviolation = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onsecuritypolicyviolation, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onseeked = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onseeked; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onseeked, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onseeked, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onseeked, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onseeked, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onseeked = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onseeked = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onseeked, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onseeking = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onseeking; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onseeking 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onseeked, set object'); break - case "function": - console.log("[*] HTMLElement_get_onseeking 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onseeked, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onseeking 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onseeked = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onseeked, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onseeking = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onseeking; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onseeking, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onseeking, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onseeking, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onseeking, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onseeking = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onseeking = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onseeking, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onselect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onselect; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onselect 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onseeking, set object'); break - case "function": - console.log("[*] HTMLElement_get_onselect 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onseeking, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onselect 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onseeking = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onseeking, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onselect = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onselect; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onselect, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onselect, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onselect, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onselect, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onselect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onselect = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onselect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onslotchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onslotchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onslotchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onselect, set object'); break - case "function": - console.log("[*] HTMLElement_get_onslotchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onselect, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onslotchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onselect = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onselect, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onslotchange = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onslotchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onslotchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onslotchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onslotchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onslotchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onslotchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onslotchange = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onslotchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onstalled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onstalled; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onstalled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onslotchange, set object'); break - case "function": - console.log("[*] HTMLElement_get_onstalled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onslotchange, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onstalled 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onslotchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onslotchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onstalled = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onstalled; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onstalled, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onstalled, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onstalled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onstalled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onstalled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onstalled = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onstalled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onsubmit = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onsubmit; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onsubmit 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onstalled, set object'); break - case "function": - console.log("[*] HTMLElement_get_onsubmit 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onstalled, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onsubmit 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onstalled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onstalled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onsubmit = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onsubmit; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onsubmit, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onsubmit, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onsubmit, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onsubmit, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onsubmit = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onsubmit = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onsubmit, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onsuspend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onsuspend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onsuspend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onsubmit, set object'); break - case "function": - console.log("[*] HTMLElement_get_onsuspend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onsubmit, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onsuspend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onsubmit = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onsubmit, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onsuspend = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onsuspend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onsuspend, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onsuspend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onsuspend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onsuspend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onsuspend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onsuspend = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onsuspend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ontimeupdate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontimeupdate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ontimeupdate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onsuspend, set object'); break - case "function": - console.log("[*] HTMLElement_get_ontimeupdate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onsuspend, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ontimeupdate 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onsuspend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onsuspend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ontimeupdate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontimeupdate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ontimeupdate, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ontimeupdate, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ontimeupdate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ontimeupdate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ontimeupdate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontimeupdate = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ontimeupdate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ontoggle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontoggle; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ontoggle 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ontimeupdate, set object'); break - case "function": - console.log("[*] HTMLElement_get_ontoggle 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ontimeupdate, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ontoggle 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontimeupdate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ontimeupdate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ontoggle = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontoggle; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ontoggle, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ontoggle, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ontoggle, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ontoggle, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ontoggle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontoggle = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ontoggle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onvolumechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onvolumechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onvolumechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ontoggle, set object'); break - case "function": - console.log("[*] HTMLElement_get_onvolumechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ontoggle, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onvolumechange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontoggle = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ontoggle, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onvolumechange = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onvolumechange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onvolumechange, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onvolumechange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onvolumechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onvolumechange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onvolumechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onvolumechange = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onvolumechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onwaiting = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwaiting; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onwaiting 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onvolumechange, set object'); break - case "function": - console.log("[*] HTMLElement_get_onwaiting 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onvolumechange, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onwaiting 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onvolumechange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onvolumechange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onwaiting = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwaiting; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onwaiting, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onwaiting, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onwaiting, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onwaiting, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onwaiting = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwaiting = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onwaiting, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onwebkitanimationend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkitanimationend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onwebkitanimationend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onwaiting, set object'); break - case "function": - console.log("[*] HTMLElement_get_onwebkitanimationend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onwaiting, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onwebkitanimationend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwaiting = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onwaiting, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onwebkitanimationend = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkitanimationend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onwebkitanimationend, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onwebkitanimationend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onwebkitanimationend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onwebkitanimationend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onwebkitanimationend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkitanimationend = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onwebkitanimationend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onwebkitanimationiteration = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkitanimationiteration; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onwebkitanimationiteration 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onwebkitanimationend, set object'); break - case "function": - console.log("[*] HTMLElement_get_onwebkitanimationiteration 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onwebkitanimationend, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onwebkitanimationiteration 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkitanimationend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onwebkitanimationend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onwebkitanimationiteration = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkitanimationiteration; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onwebkitanimationiteration, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onwebkitanimationiteration, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onwebkitanimationiteration, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onwebkitanimationiteration, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onwebkitanimationiteration = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkitanimationiteration = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onwebkitanimationiteration, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onwebkitanimationstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkitanimationstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onwebkitanimationstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onwebkitanimationiteration, set object'); break - case "function": - console.log("[*] HTMLElement_get_onwebkitanimationstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onwebkitanimationiteration, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onwebkitanimationstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkitanimationiteration = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onwebkitanimationiteration, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onwebkitanimationstart = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkitanimationstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onwebkitanimationstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onwebkitanimationstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onwebkitanimationstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onwebkitanimationstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onwebkitanimationstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkitanimationstart = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onwebkitanimationstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onwebkittransitionend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkittransitionend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onwebkittransitionend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onwebkitanimationstart, set object'); break - case "function": - console.log("[*] HTMLElement_get_onwebkittransitionend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onwebkitanimationstart, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onwebkittransitionend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkitanimationstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onwebkitanimationstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onwebkittransitionend = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkittransitionend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onwebkittransitionend, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onwebkittransitionend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onwebkittransitionend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onwebkittransitionend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onwebkittransitionend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkittransitionend = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onwebkittransitionend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onwheel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwheel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onwheel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onwebkittransitionend, set object'); break - case "function": - console.log("[*] HTMLElement_get_onwheel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onwebkittransitionend, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onwheel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkittransitionend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onwebkittransitionend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onwheel = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwheel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onwheel, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onwheel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onwheel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onwheel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onwheel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwheel = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onwheel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onauxclick = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onauxclick; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onauxclick 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onwheel, set object'); break - case "function": - console.log("[*] HTMLElement_get_onauxclick 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onwheel, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onauxclick 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwheel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onwheel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onauxclick = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onauxclick; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onauxclick, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onauxclick, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onauxclick, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onauxclick, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onauxclick = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onauxclick = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onauxclick, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ongotpointercapture = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ongotpointercapture; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ongotpointercapture 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onauxclick, set object'); break - case "function": - console.log("[*] HTMLElement_get_ongotpointercapture 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onauxclick, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ongotpointercapture 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onauxclick = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onauxclick, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ongotpointercapture = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ongotpointercapture; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ongotpointercapture, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ongotpointercapture, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ongotpointercapture, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ongotpointercapture, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ongotpointercapture = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ongotpointercapture = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ongotpointercapture, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onlostpointercapture = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onlostpointercapture; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onlostpointercapture 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ongotpointercapture, set object'); break - case "function": - console.log("[*] HTMLElement_get_onlostpointercapture 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ongotpointercapture, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onlostpointercapture 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ongotpointercapture = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ongotpointercapture, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onlostpointercapture = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onlostpointercapture; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onlostpointercapture, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onlostpointercapture, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onlostpointercapture, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onlostpointercapture, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onlostpointercapture = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onlostpointercapture = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onlostpointercapture, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onpointerdown = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerdown; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onpointerdown 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onlostpointercapture, set object'); break - case "function": - console.log("[*] HTMLElement_get_onpointerdown 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onlostpointercapture, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onpointerdown 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onlostpointercapture = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onlostpointercapture, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onpointerdown = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerdown; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onpointerdown, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onpointerdown, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onpointerdown, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onpointerdown, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onpointerdown = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerdown = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onpointerdown, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onpointermove = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointermove; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onpointermove 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onpointerdown, set object'); break - case "function": - console.log("[*] HTMLElement_get_onpointermove 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onpointerdown, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onpointermove 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerdown = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onpointerdown, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onpointermove = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointermove; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onpointermove, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onpointermove, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onpointermove, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onpointermove, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onpointermove = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointermove = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onpointermove, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onpointerrawupdate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerrawupdate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onpointerrawupdate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onpointermove, set object'); break - case "function": - console.log("[*] HTMLElement_get_onpointerrawupdate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onpointermove, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onpointerrawupdate 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointermove = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onpointerrawupdate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onpointermove, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLElement_set_onpointerrawupdate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerrawupdate = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onpointerrawupdate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLElement_get_onpointerup = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.onpointerup; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onpointerup 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_onpointerup, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_onpointerup 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_onpointerup, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_onpointerup 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onpointerup, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onpointerup, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onpointerup = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerup = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onpointerup, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onpointercancel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointercancel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onpointercancel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onpointerup, set object'); break - case "function": - console.log("[*] HTMLElement_get_onpointercancel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onpointerup, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onpointercancel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerup = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onpointerup, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onpointercancel = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointercancel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onpointercancel, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onpointercancel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onpointercancel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onpointercancel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onpointercancel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointercancel = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onpointercancel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onpointerover = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerover; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onpointerover 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onpointercancel, set object'); break - case "function": - console.log("[*] HTMLElement_get_onpointerover 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onpointercancel, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onpointerover 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointercancel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onpointercancel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onpointerover = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerover; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onpointerover, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onpointerover, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onpointerover, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onpointerover, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onpointerover = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerover = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onpointerover, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onpointerout = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerout; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onpointerout 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onpointerover, set object'); break - case "function": - console.log("[*] HTMLElement_get_onpointerout 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onpointerover, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onpointerout 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerover = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onpointerover, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onpointerout = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerout; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onpointerout, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onpointerout, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onpointerout, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onpointerout, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onpointerout = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerout = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onpointerout, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onpointerenter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerenter; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onpointerenter 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onpointerout, set object'); break - case "function": - console.log("[*] HTMLElement_get_onpointerenter 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onpointerout, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onpointerenter 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerout = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onpointerout, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onpointerenter = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerenter; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onpointerenter, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onpointerenter, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onpointerenter, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onpointerenter, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onpointerenter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerenter = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onpointerenter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onpointerleave = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerleave; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onpointerleave 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onpointerenter, set object'); break - case "function": - console.log("[*] HTMLElement_get_onpointerleave 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onpointerenter, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onpointerleave 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerenter = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onpointerenter, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onpointerleave = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerleave; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onpointerleave, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onpointerleave, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onpointerleave, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onpointerleave, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onpointerleave = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerleave = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onpointerleave, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onselectstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onselectstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onselectstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onpointerleave, set object'); break - case "function": - console.log("[*] HTMLElement_get_onselectstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onpointerleave, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onselectstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerleave = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onpointerleave, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onselectstart = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onselectstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onselectstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onselectstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onselectstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onselectstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onselectstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onselectstart = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onselectstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onselectionchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onselectionchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onselectionchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onselectstart, set object'); break - case "function": - console.log("[*] HTMLElement_get_onselectionchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onselectstart, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onselectionchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onselectstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onselectstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onselectionchange = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onselectionchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onselectionchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onselectionchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onselectionchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onselectionchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onselectionchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onselectionchange = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onselectionchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onanimationend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onanimationend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onanimationend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onselectionchange, set object'); break - case "function": - console.log("[*] HTMLElement_get_onanimationend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onselectionchange, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onanimationend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onselectionchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onselectionchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onanimationend = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onanimationend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onanimationend, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onanimationend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onanimationend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onanimationend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onanimationend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onanimationend = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onanimationend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onanimationiteration = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onanimationiteration; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onanimationiteration 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onanimationend, set object'); break - case "function": - console.log("[*] HTMLElement_get_onanimationiteration 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onanimationend, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onanimationiteration 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onanimationend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onanimationend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onanimationiteration = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onanimationiteration; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onanimationiteration, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onanimationiteration, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onanimationiteration, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onanimationiteration, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onanimationiteration = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onanimationiteration = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onanimationiteration, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onanimationstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onanimationstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onanimationstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onanimationiteration, set object'); break - case "function": - console.log("[*] HTMLElement_get_onanimationstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onanimationiteration, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onanimationstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onanimationiteration = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onanimationiteration, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onanimationstart = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onanimationstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onanimationstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onanimationstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onanimationstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onanimationstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onanimationstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onanimationstart = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onanimationstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ontransitionrun = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontransitionrun; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ontransitionrun 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onanimationstart, set object'); break - case "function": - console.log("[*] HTMLElement_get_ontransitionrun 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onanimationstart, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ontransitionrun 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onanimationstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onanimationstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ontransitionrun = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontransitionrun; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ontransitionrun, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ontransitionrun, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ontransitionrun, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ontransitionrun, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ontransitionrun = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontransitionrun = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ontransitionrun, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ontransitionstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontransitionstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ontransitionstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ontransitionrun, set object'); break - case "function": - console.log("[*] HTMLElement_get_ontransitionstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ontransitionrun, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ontransitionstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontransitionrun = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ontransitionrun, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ontransitionstart = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontransitionstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ontransitionstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ontransitionstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ontransitionstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ontransitionstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ontransitionstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontransitionstart = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ontransitionstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ontransitionend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontransitionend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ontransitionend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ontransitionstart, set object'); break - case "function": - console.log("[*] HTMLElement_get_ontransitionend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ontransitionstart, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ontransitionend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontransitionstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ontransitionstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ontransitionend = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontransitionend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ontransitionend, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ontransitionend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ontransitionend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ontransitionend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ontransitionend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontransitionend = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ontransitionend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_ontransitioncancel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontransitioncancel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_ontransitioncancel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ontransitionend, set object'); break - case "function": - console.log("[*] HTMLElement_get_ontransitioncancel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ontransitionend, set function'); break default: - // string number - console.log("[*] HTMLElement_get_ontransitioncancel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontransitionend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ontransitionend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_ontransitioncancel = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontransitioncancel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_ontransitioncancel, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_ontransitioncancel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_ontransitioncancel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_ontransitioncancel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_ontransitioncancel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontransitioncancel = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_ontransitioncancel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_oncopy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncopy; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_oncopy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_ontransitioncancel, set object'); break - case "function": - console.log("[*] HTMLElement_get_oncopy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_ontransitioncancel, set function'); break default: - // string number - console.log("[*] HTMLElement_get_oncopy 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontransitioncancel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_ontransitioncancel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_oncopy = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncopy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_oncopy, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_oncopy, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_oncopy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_oncopy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_oncopy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncopy = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_oncopy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_oncut = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncut; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_oncut 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_oncopy, set object'); break - case "function": - console.log("[*] HTMLElement_get_oncut 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_oncopy, set function'); break default: - // string number - console.log("[*] HTMLElement_get_oncut 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncopy = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_oncopy, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_oncut = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncut; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_oncut, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_oncut, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_oncut, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_oncut, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_oncut = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncut = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_oncut, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onpaste = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpaste; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onpaste 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_oncut, set object'); break - case "function": - console.log("[*] HTMLElement_get_onpaste 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_oncut, set function'); break default: - // string number - console.log("[*] HTMLElement_get_onpaste 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncut = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_oncut, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onpaste = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpaste; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onpaste, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onpaste, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onpaste, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onpaste, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_onpaste = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpaste = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onpaste, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_dataset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.dataset; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_dataset 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_onpaste, set object'); break - case "function": - console.log("[*] HTMLElement_get_dataset 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_onpaste, set function'); break default: - // string number - console.log("[*] HTMLElement_get_dataset 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpaste = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onpaste, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_dataset = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.dataset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_dataset, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_dataset, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_dataset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_dataset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLElement_get_nonce = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.nonce; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_nonce 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_nonce, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_nonce 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_nonce, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_nonce 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_nonce, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_nonce, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_nonce = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.nonce = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_nonce, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_autofocus = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.autofocus; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_autofocus 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_nonce, set object'); break - case "function": - console.log("[*] HTMLElement_get_autofocus 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_nonce, set function'); break default: - // string number - console.log("[*] HTMLElement_get_autofocus 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.nonce = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_nonce, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_autofocus = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.autofocus; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_autofocus, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_autofocus, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_autofocus, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_autofocus, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_autofocus = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.autofocus = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_autofocus, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_tabIndex = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.tabIndex; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_tabIndex 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_autofocus, set object'); break - case "function": - console.log("[*] HTMLElement_get_tabIndex 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_autofocus, set function'); break default: - // string number - console.log("[*] HTMLElement_get_tabIndex 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.autofocus = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_autofocus, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_tabIndex = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.tabIndex; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_tabIndex, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_tabIndex, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_tabIndex, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_tabIndex, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_tabIndex = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.tabIndex = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_tabIndex, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_style = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.style; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_style 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_tabIndex, set object'); break - case "function": - console.log("[*] HTMLElement_get_style 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_tabIndex, set function'); break default: - // string number - console.log("[*] HTMLElement_get_style 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.tabIndex = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_tabIndex, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_style = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.style; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_style, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_style, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_style, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_style, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLElement_set_style = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.style = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_style, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_attributeStyleMap = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.attributeStyleMap; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_attributeStyleMap 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_style, set object'); break - case "function": - console.log("[*] HTMLElement_get_attributeStyleMap 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_style, set function'); break default: - // string number - console.log("[*] HTMLElement_get_attributeStyleMap 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.style = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_attributeStyleMap, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_style, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } this.HTMLElement_attachInternals = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.attachInternals.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLElement_attachInternals 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLElement_attachInternals 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLElement_attachInternals 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_attachInternals, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.attachInternals.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_attachInternals, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLElement_attachInternals, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_attachInternals, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLElement_blur = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.blur.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLElement_blur 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLElement_blur 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLElement_blur 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_blur, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.blur.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_blur, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLElement_blur, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_blur, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLElement_click = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.click.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLElement_click 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLElement_click 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLElement_click 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_click, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.click.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_click, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLElement_click, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_click, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLElement_focus = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.focus.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLElement_focus 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLElement_focus 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLElement_focus 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_focus, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLElement_hidePopover = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hidePopover.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLElement_hidePopover 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLElement_hidePopover 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLElement_hidePopover 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_hidePopover, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLElement_showPopover = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.showPopover.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLElement_showPopover 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLElement_showPopover 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLElement_showPopover 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_showPopover, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLElement_togglePopover = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.togglePopover.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLElement_togglePopover 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLElement_togglePopover 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLElement_togglePopover 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_togglePopover, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLElement_get_writingSuggestions = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.writingSuggestions; - let type = typeof result; - switch (type) { + let result = dom_element.focus.apply(dom_element, arguments); + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_writingSuggestions 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_focus, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_writingSuggestions 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_focus, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_writingSuggestions 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_writingSuggestions, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_focus, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.HTMLElement_set_writingSuggestions = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.writingSuggestions = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_writingSuggestions, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_onscrollend = function () { - // 非法调用 + +this.HTMLElement_get_inert = function () { let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onscrollend; - let type = typeof result; - switch (type) { + let result = dom_element.inert; + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_onscrollend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_get_inert, 返回object'); break - case "function": - console.log("[*] HTMLElement_get_onscrollend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_get_inert, 返回function'); break default: - // string number - console.log("[*] HTMLElement_get_onscrollend 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_onscrollend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_inert, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.HTMLElement_set_onscrollend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onscrollend = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_onscrollend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLElement_get_editContext = function () { - // 非法调用 +this.HTMLElement_set_inert = function (val) { let r = cbb_wf.checkIllegal(this, "HTMLElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.editContext; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLElement_get_editContext 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLElement_set_inert, set object'); break - case "function": - console.log("[*] HTMLElement_get_editContext 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLElement_set_inert, set function'); break default: - // string number - console.log("[*] HTMLElement_get_editContext 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.inert = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_inert, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_enterKeyHint = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.enterKeyHint; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_enterKeyHint, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_enterKeyHint, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLElement_get_editContext, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_enterKeyHint, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.HTMLElement_set_editContext = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.editContext = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLElement_set_editContext, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } +this.HTMLElement_set_enterKeyHint = function (val) { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLElement_set_enterKeyHint, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLElement_set_enterKeyHint, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.enterKeyHint = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_enterKeyHint, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_virtualKeyboardPolicy = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.virtualKeyboardPolicy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_virtualKeyboardPolicy, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_virtualKeyboardPolicy, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_virtualKeyboardPolicy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.HTMLElement_set_virtualKeyboardPolicy = function (val) { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLElement_set_virtualKeyboardPolicy, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLElement_set_virtualKeyboardPolicy, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.virtualKeyboardPolicy = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_virtualKeyboardPolicy, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onpointerrawupdate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerrawupdate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onpointerrawupdate, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onpointerrawupdate, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onpointerrawupdate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.HTMLElement_set_onpointerrawupdate = function (val) { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLElement_set_onpointerrawupdate, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLElement_set_onpointerrawupdate, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerrawupdate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onpointerrawupdate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLElement_get_onbeforematch = function () { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onbeforematch; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLElement_get_onbeforematch, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLElement_get_onbeforematch, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_get_onbeforematch, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.HTMLElement_set_onbeforematch = function (val) { + let r = cbb_wf.checkIllegal(this, "HTMLElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLElement_set_onbeforematch, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLElement_set_onbeforematch, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforematch = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLElement_set_onbeforematch, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLDivElement_get_align = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLDivElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.align; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLDivElement_get_align 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLDivElement_get_align, 返回object'); break - case "function": - console.log("[*] HTMLDivElement_get_align 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLDivElement_get_align, 返回function'); break default: - // string number - console.log("[*] HTMLDivElement_get_align 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLDivElement_get_align, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDivElement_get_align, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLDivElement_set_align = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLDivElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.align = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLDivElement_set_align, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLDivElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLDivElement_set_align, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLDivElement_set_align, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.align = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDivElement_set_align, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLDirectoryElement_get_compact = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLDirectoryElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.compact; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLDirectoryElement_get_compact 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLDirectoryElement_get_compact, 返回object'); break - case "function": - console.log("[*] HTMLDirectoryElement_get_compact 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLDirectoryElement_get_compact, 返回function'); break default: - // string number - console.log("[*] HTMLDirectoryElement_get_compact 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLDirectoryElement_get_compact, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDirectoryElement_get_compact, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLDirectoryElement_set_compact = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLDirectoryElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.compact = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLDirectoryElement_set_compact, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLDirectoryElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLDirectoryElement_set_compact, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLDirectoryElement_set_compact, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.compact = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDirectoryElement_set_compact, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLDialogElement_get_open = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLDialogElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.open; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLDialogElement_get_open 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLDialogElement_get_open, 返回object'); break - case "function": - console.log("[*] HTMLDialogElement_get_open 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLDialogElement_get_open, 返回function'); break default: - // string number - console.log("[*] HTMLDialogElement_get_open 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLDialogElement_get_open, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDialogElement_get_open, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLDialogElement_set_open = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLDialogElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.open = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLDialogElement_set_open, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLDialogElement_get_returnValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLDialogElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.returnValue; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLDialogElement_get_returnValue 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLDialogElement_set_open, set object'); break - case "function": - console.log("[*] HTMLDialogElement_get_returnValue 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLDialogElement_set_open, set function'); break default: - // string number - console.log("[*] HTMLDialogElement_get_returnValue 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.open = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDialogElement_set_open, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLDialogElement_get_returnValue = function () { + let r = cbb_wf.checkIllegal(this, "HTMLDialogElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.returnValue; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLDialogElement_get_returnValue, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLDialogElement_get_returnValue, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLDialogElement_get_returnValue, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDialogElement_get_returnValue, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLDialogElement_set_returnValue = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLDialogElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.returnValue = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLDialogElement_set_returnValue, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLDialogElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLDialogElement_set_returnValue, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLDialogElement_set_returnValue, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.returnValue = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDialogElement_set_returnValue, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLDialogElement_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLDialogElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.close.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLDialogElement_close 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLDialogElement_close 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLDialogElement_close 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLDialogElement_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLDialogElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.close.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLDialogElement_close, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLDialogElement_close, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDialogElement_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLDialogElement_show = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLDialogElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.show.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLDialogElement_show 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLDialogElement_show 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLDialogElement_show 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLDialogElement_show, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLDialogElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.show.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLDialogElement_show, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLDialogElement_show, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDialogElement_show, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLDialogElement_showModal = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLDialogElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.showModal.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLDialogElement_showModal 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLDialogElement_showModal 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLDialogElement_showModal 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLDialogElement_showModal, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLDialogElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.showModal.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLDialogElement_showModal, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLDialogElement_showModal, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDialogElement_showModal, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLDetailsElement_get_open = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLDetailsElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.open; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLDetailsElement_get_open 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLDetailsElement_get_open, 返回object'); break - case "function": - console.log("[*] HTMLDetailsElement_get_open 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLDetailsElement_get_open, 返回function'); break default: - // string number - console.log("[*] HTMLDetailsElement_get_open 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLDetailsElement_get_open, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDetailsElement_get_open, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLDetailsElement_set_open = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLDetailsElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.open = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLDetailsElement_set_open, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLDetailsElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLDetailsElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLDetailsElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLDetailsElement_set_open, set object'); break - case "function": - console.log("[*] HTMLDetailsElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLDetailsElement_set_open, set function'); break default: - // string number - console.log("[*] HTMLDetailsElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.open = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLDetailsElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDetailsElement_set_open, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.HTMLDetailsElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLDetailsElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLDetailsElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLDataListElement_get_options = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLDataListElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.options; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLDataListElement_get_options 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLDataListElement_get_options, 返回object'); break - case "function": - console.log("[*] HTMLDataListElement_get_options 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLDataListElement_get_options, 返回function'); break default: - // string number - console.log("[*] HTMLDataListElement_get_options 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLDataListElement_get_options, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDataListElement_get_options, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLDataElement_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLDataElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLDataElement_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLDataElement_get_value, 返回object'); break - case "function": - console.log("[*] HTMLDataElement_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLDataElement_get_value, 返回function'); break default: - // string number - console.log("[*] HTMLDataElement_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLDataElement_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDataElement_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLDataElement_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLDataElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLDataElement_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLDataElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLDataElement_set_value, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLDataElement_set_value, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDataElement_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLDListElement_get_compact = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLDListElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.compact; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLDListElement_get_compact 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLDListElement_get_compact, 返回object'); break - case "function": - console.log("[*] HTMLDListElement_get_compact 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLDListElement_get_compact, 返回function'); break default: - // string number - console.log("[*] HTMLDListElement_get_compact 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLDListElement_get_compact, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDListElement_get_compact, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLDListElement_set_compact = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLDListElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.compact = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLDListElement_set_compact, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLDListElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLDListElement_set_compact, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLDListElement_set_compact, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.compact = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLDListElement_set_compact, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLCollection_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLCollection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.length; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLCollection_get_length 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLCollection_get_length, 返回object'); break - case "function": - console.log("[*] HTMLCollection_get_length 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLCollection_get_length, 返回function'); break default: - // string number - console.log("[*] HTMLCollection_get_length 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLCollection_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLCollection_get_length, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLCollection_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLCollection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.item.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLCollection_item 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLCollection_item 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLCollection_item 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLCollection_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLCollection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.item.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLCollection_item, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLCollection_item, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLCollection_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLCollection_namedItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLCollection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.namedItem.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLCollection_namedItem 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLCollection_namedItem 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLCollection_namedItem 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLCollection_namedItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLCollection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.namedItem.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLCollection_namedItem, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLCollection_namedItem, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLCollection_namedItem, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLCanvasElement_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.width; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLCanvasElement_get_width 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLCanvasElement_get_width, 返回object'); break - case "function": - console.log("[*] HTMLCanvasElement_get_width 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLCanvasElement_get_width, 返回function'); break default: - // string number - console.log("[*] HTMLCanvasElement_get_width 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLCanvasElement_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLCanvasElement_get_width, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLCanvasElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.width = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLCanvasElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLCanvasElement_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.height; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLCanvasElement_get_height 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLCanvasElement_set_width, set object'); break - case "function": - console.log("[*] HTMLCanvasElement_get_height 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLCanvasElement_set_width, set function'); break default: - // string number - console.log("[*] HTMLCanvasElement_get_height 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.width = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLCanvasElement_set_width, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLCanvasElement_get_height = function () { + let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.height; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLCanvasElement_get_height, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLCanvasElement_get_height, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLCanvasElement_get_height, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLCanvasElement_get_height, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLCanvasElement_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.height = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLCanvasElement_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLCanvasElement_set_height, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLCanvasElement_set_height, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.height = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLCanvasElement_set_height, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLCanvasElement_captureStream = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.captureStream.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLCanvasElement_captureStream 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLCanvasElement_captureStream 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLCanvasElement_captureStream 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLCanvasElement_captureStream, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.captureStream.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLCanvasElement_captureStream, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLCanvasElement_captureStream, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLCanvasElement_captureStream, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLCanvasElement_getContext = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getContext.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLCanvasElement_getContext 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLCanvasElement_getContext 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLCanvasElement_getContext 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLCanvasElement_getContext, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getContext.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLCanvasElement_getContext, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLCanvasElement_getContext, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLCanvasElement_getContext, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLCanvasElement_toBlob = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.toBlob.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLCanvasElement_toBlob 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLCanvasElement_toBlob 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLCanvasElement_toBlob 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLCanvasElement_toBlob, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.toBlob.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLCanvasElement_toBlob, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLCanvasElement_toBlob, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLCanvasElement_toBlob, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLCanvasElement_toDataURL = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.toDataURL.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLCanvasElement_toDataURL 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLCanvasElement_toDataURL 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLCanvasElement_toDataURL 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLCanvasElement_toDataURL, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.toDataURL.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLCanvasElement_toDataURL, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLCanvasElement_toDataURL, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLCanvasElement_toDataURL, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLCanvasElement_transferControlToOffscreen = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.transferControlToOffscreen.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLCanvasElement_transferControlToOffscreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLCanvasElement_transferControlToOffscreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLCanvasElement_transferControlToOffscreen 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLCanvasElement_transferControlToOffscreen, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLCanvasElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.transferControlToOffscreen.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLCanvasElement_transferControlToOffscreen, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLCanvasElement_transferControlToOffscreen, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLCanvasElement_transferControlToOffscreen, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLButtonElement_get_disabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.disabled; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_disabled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLButtonElement_get_disabled, 返回object'); break - case "function": - console.log("[*] HTMLButtonElement_get_disabled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLButtonElement_get_disabled, 返回function'); break default: - // string number - console.log("[*] HTMLButtonElement_get_disabled 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_disabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_get_disabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLButtonElement_set_disabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.disabled = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLButtonElement_set_disabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLButtonElement_get_form = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.form; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_form 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLButtonElement_set_disabled, set object'); break - case "function": - console.log("[*] HTMLButtonElement_get_form 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLButtonElement_set_disabled, set function'); break default: - // string number - console.log("[*] HTMLButtonElement_get_form 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.disabled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_set_disabled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLButtonElement_get_form = function () { + let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.form; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLButtonElement_get_form, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLButtonElement_get_form, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_form, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_get_form, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLButtonElement_get_formAction = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.formAction; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_formAction 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLButtonElement_get_formAction, 返回object'); break - case "function": - console.log("[*] HTMLButtonElement_get_formAction 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLButtonElement_get_formAction, 返回function'); break default: - // string number - console.log("[*] HTMLButtonElement_get_formAction 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_formAction, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_get_formAction, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLButtonElement_set_formAction = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.formAction = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLButtonElement_set_formAction, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLButtonElement_get_formEnctype = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.formEnctype; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_formEnctype 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLButtonElement_set_formAction, set object'); break - case "function": - console.log("[*] HTMLButtonElement_get_formEnctype 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLButtonElement_set_formAction, set function'); break default: - // string number - console.log("[*] HTMLButtonElement_get_formEnctype 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.formAction = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_set_formAction, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLButtonElement_get_formEnctype = function () { + let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.formEnctype; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLButtonElement_get_formEnctype, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLButtonElement_get_formEnctype, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_formEnctype, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_get_formEnctype, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLButtonElement_set_formEnctype = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.formEnctype = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLButtonElement_set_formEnctype, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLButtonElement_get_formMethod = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.formMethod; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_formMethod 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLButtonElement_set_formEnctype, set object'); break - case "function": - console.log("[*] HTMLButtonElement_get_formMethod 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLButtonElement_set_formEnctype, set function'); break default: - // string number - console.log("[*] HTMLButtonElement_get_formMethod 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.formEnctype = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_set_formEnctype, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLButtonElement_get_formMethod = function () { + let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.formMethod; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLButtonElement_get_formMethod, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLButtonElement_get_formMethod, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_formMethod, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_get_formMethod, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLButtonElement_set_formMethod = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.formMethod = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLButtonElement_set_formMethod, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLButtonElement_get_formNoValidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.formNoValidate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_formNoValidate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLButtonElement_set_formMethod, set object'); break - case "function": - console.log("[*] HTMLButtonElement_get_formNoValidate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLButtonElement_set_formMethod, set function'); break default: - // string number - console.log("[*] HTMLButtonElement_get_formNoValidate 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.formMethod = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_set_formMethod, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLButtonElement_get_formNoValidate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.formNoValidate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLButtonElement_get_formNoValidate, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLButtonElement_get_formNoValidate, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_formNoValidate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_get_formNoValidate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLButtonElement_set_formNoValidate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.formNoValidate = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLButtonElement_set_formNoValidate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLButtonElement_get_formTarget = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.formTarget; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_formTarget 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLButtonElement_set_formNoValidate, set object'); break - case "function": - console.log("[*] HTMLButtonElement_get_formTarget 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLButtonElement_set_formNoValidate, set function'); break default: - // string number - console.log("[*] HTMLButtonElement_get_formTarget 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.formNoValidate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_set_formNoValidate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLButtonElement_get_formTarget = function () { + let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.formTarget; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLButtonElement_get_formTarget, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLButtonElement_get_formTarget, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_formTarget, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_get_formTarget, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLButtonElement_set_formTarget = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.formTarget = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLButtonElement_set_formTarget, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLButtonElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLButtonElement_set_formTarget, set object'); break - case "function": - console.log("[*] HTMLButtonElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLButtonElement_set_formTarget, set function'); break default: - // string number - console.log("[*] HTMLButtonElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.formTarget = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_set_formTarget, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLButtonElement_get_name = function () { + let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.name; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLButtonElement_get_name, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLButtonElement_get_name, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLButtonElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLButtonElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLButtonElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLButtonElement_set_name, set object'); break - case "function": - console.log("[*] HTMLButtonElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLButtonElement_set_name, set function'); break default: - // string number - console.log("[*] HTMLButtonElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLButtonElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLButtonElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLButtonElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLButtonElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.type = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLButtonElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLButtonElement_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLButtonElement_set_type, set object'); break - case "function": - console.log("[*] HTMLButtonElement_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLButtonElement_set_type, set function'); break default: - // string number - console.log("[*] HTMLButtonElement_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLButtonElement_get_value = function () { + let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.value; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLButtonElement_get_value, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLButtonElement_get_value, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLButtonElement_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLButtonElement_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLButtonElement_get_willValidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLButtonElement_set_value, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLButtonElement_set_value, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLButtonElement_get_willValidate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.willValidate; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_willValidate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLButtonElement_get_willValidate, 返回object'); break - case "function": - console.log("[*] HTMLButtonElement_get_willValidate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLButtonElement_get_willValidate, 返回function'); break default: - // string number - console.log("[*] HTMLButtonElement_get_willValidate 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_willValidate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_get_willValidate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLButtonElement_get_validity = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.validity; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_validity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLButtonElement_get_validity, 返回object'); break - case "function": - console.log("[*] HTMLButtonElement_get_validity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLButtonElement_get_validity, 返回function'); break default: - // string number - console.log("[*] HTMLButtonElement_get_validity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_validity, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_get_validity, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLButtonElement_get_validationMessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.validationMessage; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_validationMessage 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLButtonElement_get_validationMessage, 返回object'); break - case "function": - console.log("[*] HTMLButtonElement_get_validationMessage 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLButtonElement_get_validationMessage, 返回function'); break default: - // string number - console.log("[*] HTMLButtonElement_get_validationMessage 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_validationMessage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_get_validationMessage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLButtonElement_get_labels = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.labels; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_labels 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLButtonElement_get_labels, 返回object'); break - case "function": - console.log("[*] HTMLButtonElement_get_labels 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLButtonElement_get_labels, 返回function'); break default: - // string number - console.log("[*] HTMLButtonElement_get_labels 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_labels, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_get_labels, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.HTMLButtonElement_get_popoverTargetElement = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.popoverTargetElement; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_popoverTargetElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] HTMLButtonElement_get_popoverTargetElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLButtonElement_get_popoverTargetElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_popoverTargetElement, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLButtonElement_set_popoverTargetElement = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.popoverTargetElement = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLButtonElement_set_popoverTargetElement, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLButtonElement_get_popoverTargetAction = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.popoverTargetAction; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLButtonElement_get_popoverTargetAction 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLButtonElement_get_popoverTargetAction 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLButtonElement_get_popoverTargetAction 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_get_popoverTargetAction, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLButtonElement_set_popoverTargetAction = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.popoverTargetAction = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLButtonElement_set_popoverTargetAction, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.HTMLButtonElement_checkValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.checkValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLButtonElement_checkValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLButtonElement_checkValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLButtonElement_checkValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_checkValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.checkValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLButtonElement_checkValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLButtonElement_checkValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_checkValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLButtonElement_reportValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.reportValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLButtonElement_reportValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLButtonElement_reportValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLButtonElement_reportValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_reportValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.reportValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLButtonElement_reportValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLButtonElement_reportValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_reportValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLButtonElement_setCustomValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setCustomValidity.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLButtonElement_setCustomValidity 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLButtonElement_setCustomValidity 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLButtonElement_setCustomValidity 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLButtonElement_setCustomValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLButtonElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setCustomValidity.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLButtonElement_setCustomValidity, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLButtonElement_setCustomValidity, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLButtonElement_setCustomValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLBodyElement_get_text = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.text; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_text 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_get_text, 返回object'); break - case "function": - console.log("[*] HTMLBodyElement_get_text 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_get_text, 返回function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_text 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_text, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_text, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_text = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.text = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_text, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_link = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.link; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_link 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_text, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_link 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_text, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_link 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.text = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_text, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_link = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.link; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_link, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_link, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_link, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_link, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_link = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.link = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_link, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_vLink = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.vLink; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_vLink 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_link, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_vLink 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_link, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_vLink 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.link = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_link, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_vLink = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.vLink; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_vLink, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_vLink, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_vLink, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_vLink, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_vLink = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.vLink = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_vLink, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_aLink = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.aLink; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_aLink 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_vLink, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_aLink 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_vLink, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_aLink 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.vLink = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_vLink, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_aLink = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.aLink; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_aLink, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_aLink, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_aLink, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_aLink, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_aLink = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.aLink = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_aLink, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_bgColor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.bgColor; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_bgColor 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_aLink, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_bgColor 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_aLink, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_bgColor 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.aLink = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_aLink, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_bgColor = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.bgColor; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_bgColor, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_bgColor, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_bgColor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_bgColor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_bgColor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.bgColor = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_bgColor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_background = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.background; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_background 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_bgColor, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_background 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_bgColor, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_background 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.bgColor = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_bgColor, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_background = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.background; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_background, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_background, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_background, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_background, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_background = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.background = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_background, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onblur = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onblur; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onblur 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_background, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onblur 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_background, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onblur 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.background = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_background, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onblur = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onblur; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onblur, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onblur, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onblur, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onblur, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onblur = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onblur = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onblur, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onerror; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onerror 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onblur, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onerror 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onblur, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onerror 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onblur = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onblur, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onerror = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onerror; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onerror, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onerror, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onerror, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onerror, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onerror = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onfocus = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onfocus; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onfocus 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onerror, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onfocus 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onerror, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onfocus 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onerror = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onerror, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onfocus = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onfocus; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onfocus, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onfocus, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onfocus, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onfocus, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onfocus = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onfocus = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onfocus, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onload = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onload; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onload 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onfocus, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onload 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onfocus, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onload 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onfocus = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onfocus, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onload = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onload; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onload, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onload, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onload, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onload, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onload = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onload = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onload, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onresize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onresize; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onresize 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onload, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onresize 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onload, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onresize 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onload = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onload, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onresize = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onresize; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onresize, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onresize, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onresize, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onresize, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onresize = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onresize = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onresize, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onscroll = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onscroll; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onscroll 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onresize, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onscroll 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onresize, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onscroll 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onresize = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onresize, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onscroll = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onscroll; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onscroll, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onscroll, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onscroll, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onscroll, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onscroll = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onscroll = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onscroll, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onafterprint = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onafterprint; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onafterprint 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onscroll, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onafterprint 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onscroll, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onafterprint 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onscroll = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onscroll, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onafterprint = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onafterprint; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onafterprint, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onafterprint, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onafterprint, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onafterprint, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onafterprint = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onafterprint = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onafterprint, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onbeforeprint = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforeprint; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onbeforeprint 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onafterprint, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onbeforeprint 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onafterprint, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onbeforeprint 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onafterprint = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onafterprint, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onbeforeprint = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onbeforeprint; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onbeforeprint, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onbeforeprint, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onbeforeprint, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onbeforeprint, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onbeforeprint = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforeprint = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onbeforeprint, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onbeforeunload = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforeunload; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onbeforeunload 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onbeforeprint, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onbeforeunload 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onbeforeprint, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onbeforeunload 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforeprint = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onbeforeprint, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onbeforeunload = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onbeforeunload; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onbeforeunload, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onbeforeunload, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onbeforeunload, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onbeforeunload, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onbeforeunload = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforeunload = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onbeforeunload, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onhashchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onhashchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onhashchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onbeforeunload, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onhashchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onbeforeunload, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onhashchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforeunload = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onbeforeunload, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onhashchange = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onhashchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onhashchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onhashchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onhashchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onhashchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onhashchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onhashchange = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onhashchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onlanguagechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onlanguagechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onlanguagechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onhashchange, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onlanguagechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onhashchange, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onlanguagechange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onhashchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onhashchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onlanguagechange = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onlanguagechange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onlanguagechange, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onlanguagechange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onlanguagechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onlanguagechange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onlanguagechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onlanguagechange = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onlanguagechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onmessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmessage; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onmessage 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onlanguagechange, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onmessage 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onlanguagechange, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onmessage 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onlanguagechange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onlanguagechange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onmessage = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmessage; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onmessage, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onmessage, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onmessage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onmessage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onmessage = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmessage = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onmessage, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onmessageerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmessageerror; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onmessageerror 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onmessage, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onmessageerror 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onmessage, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onmessageerror 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmessage = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onmessage, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onmessageerror = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmessageerror; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onmessageerror, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onmessageerror, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onmessageerror, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onmessageerror, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onmessageerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmessageerror = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onmessageerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onoffline = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onoffline; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onoffline 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onmessageerror, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onoffline 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onmessageerror, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onoffline 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmessageerror = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onmessageerror, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onoffline = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onoffline; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onoffline, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onoffline, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onoffline, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onoffline, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onoffline = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onoffline = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onoffline, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_ononline = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ononline; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_ononline 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onoffline, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_ononline 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onoffline, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_ononline 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onoffline = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onoffline, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_ononline = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ononline; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_ononline, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_ononline, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_ononline, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_ononline, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_ononline = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ononline = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_ononline, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onpagehide = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpagehide; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onpagehide 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_ononline, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onpagehide 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_ononline, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onpagehide 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ononline = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_ononline, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onpagehide = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpagehide; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onpagehide, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onpagehide, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onpagehide, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onpagehide, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onpagehide = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpagehide = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onpagehide, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onpageshow = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpageshow; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onpageshow 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onpagehide, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onpageshow 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onpagehide, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onpageshow 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpagehide = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onpagehide, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onpageshow = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpageshow; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onpageshow, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onpageshow, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onpageshow, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onpageshow, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onpageshow = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpageshow = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onpageshow, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onpopstate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpopstate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onpopstate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onpageshow, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onpopstate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onpageshow, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onpopstate 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpageshow = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onpageshow, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onpopstate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpopstate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onpopstate, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onpopstate, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onpopstate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onpopstate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onpopstate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpopstate = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onpopstate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onrejectionhandled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onrejectionhandled; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onrejectionhandled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onpopstate, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onrejectionhandled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onpopstate, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onrejectionhandled 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpopstate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onpopstate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onrejectionhandled = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onrejectionhandled; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onrejectionhandled, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onrejectionhandled, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onrejectionhandled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onrejectionhandled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onrejectionhandled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onrejectionhandled = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onrejectionhandled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onstorage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onstorage; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onstorage 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onrejectionhandled, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onstorage 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onrejectionhandled, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onstorage 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onrejectionhandled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onrejectionhandled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onstorage = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onstorage; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onstorage, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onstorage, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onstorage, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onstorage, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onstorage = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onstorage = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onstorage, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onunhandledrejection = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onunhandledrejection; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onunhandledrejection 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onstorage, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onunhandledrejection 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onstorage, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onunhandledrejection 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onstorage = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onstorage, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onunhandledrejection = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onunhandledrejection; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onunhandledrejection, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onunhandledrejection, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onunhandledrejection, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onunhandledrejection, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onunhandledrejection = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onunhandledrejection = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onunhandledrejection, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBodyElement_get_onunload = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onunload; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBodyElement_get_onunload 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBodyElement_set_onunhandledrejection, set object'); break - case "function": - console.log("[*] HTMLBodyElement_get_onunload 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBodyElement_set_onunhandledrejection, set function'); break default: - // string number - console.log("[*] HTMLBodyElement_get_onunload 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onunhandledrejection = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onunhandledrejection, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBodyElement_get_onunload = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onunload; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_get_onunload, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_get_onunload, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBodyElement_get_onunload, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_get_onunload, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBodyElement_set_onunload = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onunload = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBodyElement_set_onunload, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLBodyElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLBodyElement_set_onunload, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLBodyElement_set_onunload, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onunload = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBodyElement_set_onunload, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLBaseElement_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBaseElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.href; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBaseElement_get_href 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBaseElement_get_href, 返回object'); break - case "function": - console.log("[*] HTMLBaseElement_get_href 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBaseElement_get_href, 返回function'); break default: - // string number - console.log("[*] HTMLBaseElement_get_href 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBaseElement_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBaseElement_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBaseElement_set_href = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBaseElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.href = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBaseElement_set_href, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLBaseElement_get_target = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBaseElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.target; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBaseElement_get_target 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBaseElement_set_href, set object'); break - case "function": - console.log("[*] HTMLBaseElement_get_target 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBaseElement_set_href, set function'); break default: - // string number - console.log("[*] HTMLBaseElement_get_target 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.href = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBaseElement_set_href, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLBaseElement_get_target = function () { + let r = cbb_wf.checkIllegal(this, "HTMLBaseElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.target; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLBaseElement_get_target, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLBaseElement_get_target, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBaseElement_get_target, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBaseElement_get_target, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBaseElement_set_target = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBaseElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.target = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBaseElement_set_target, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLBaseElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLBaseElement_set_target, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLBaseElement_set_target, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.target = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBaseElement_set_target, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLBRElement_get_clear = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLBRElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.clear; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLBRElement_get_clear 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLBRElement_get_clear, 返回object'); break - case "function": - console.log("[*] HTMLBRElement_get_clear 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLBRElement_get_clear, 返回function'); break default: - // string number - console.log("[*] HTMLBRElement_get_clear 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLBRElement_get_clear, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBRElement_get_clear, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLBRElement_set_clear = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLBRElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.clear = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLBRElement_set_clear, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLBRElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLBRElement_set_clear, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLBRElement_set_clear, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.clear = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLBRElement_set_clear, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLAreaElement_get_alt = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.alt; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_alt 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_get_alt, 返回object'); break - case "function": - console.log("[*] HTMLAreaElement_get_alt 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_get_alt, 返回function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_alt 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_alt, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_alt, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_alt = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.alt = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_alt, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_coords = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.coords; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_coords 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_alt, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_coords 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_alt, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_coords 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.alt = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_alt, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_coords = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.coords; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_coords, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_coords, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_coords, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_coords, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_coords = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.coords = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_coords, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_download = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.download; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_download 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_coords, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_download 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_coords, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_download 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.coords = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_coords, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_download = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.download; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_download, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_download, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_download, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_download, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_download = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.download = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_download, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_shape = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.shape; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_shape 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_download, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_shape 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_download, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_shape 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.download = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_download, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_shape = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.shape; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_shape, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_shape, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_shape, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_shape, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_shape = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.shape = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_shape, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_target = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.target; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_target 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_shape, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_target 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_shape, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_target 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.shape = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_shape, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_target = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.target; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_target, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_target, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_target, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_target, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_target = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.target = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_target, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_ping = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ping; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_ping 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_target, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_ping 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_target, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_ping 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.target = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_target, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_ping = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ping; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_ping, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_ping, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_ping, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_ping, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_ping = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ping = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_ping, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_rel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.rel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_rel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_ping, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_rel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_ping, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_rel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ping = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_ping, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_rel = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_rel, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_rel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_rel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_rel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_rel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.rel = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_rel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_relList = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.relList; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_relList 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_rel, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_relList 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_rel, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_relList 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.rel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_rel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_relList = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.relList; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_relList, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_relList, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_relList, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_relList, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_relList = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.relList = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_relList, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_referrerPolicy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.referrerPolicy; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_referrerPolicy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_relList, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_referrerPolicy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_relList, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_referrerPolicy 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.relList = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_relList, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_referrerPolicy = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.referrerPolicy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_referrerPolicy, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_referrerPolicy, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_referrerPolicy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_referrerPolicy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_referrerPolicy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.referrerPolicy = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_referrerPolicy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_noHref = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.noHref; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_noHref 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_referrerPolicy, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_noHref 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_referrerPolicy, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_noHref 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.referrerPolicy = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_referrerPolicy, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_noHref = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.noHref; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_noHref, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_noHref, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_noHref, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_noHref, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_noHref = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.noHref = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_noHref, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_origin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.origin; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_origin 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_noHref, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_origin 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_noHref, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_origin 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.noHref = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_noHref, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_origin = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.origin; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_origin, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_origin, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_origin, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_origin, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLAreaElement_get_protocol = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.protocol; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_protocol 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_get_protocol, 返回object'); break - case "function": - console.log("[*] HTMLAreaElement_get_protocol 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_get_protocol, 返回function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_protocol 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_protocol, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_protocol, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_protocol = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.protocol = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_protocol, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_username = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.username; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_username 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_protocol, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_username 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_protocol, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_username 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.protocol = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_protocol, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_username = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.username; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_username, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_username, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_username, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_username, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_username = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.username = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_username, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_password = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.password; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_password 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_username, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_password 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_username, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_password 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.username = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_username, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_password = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.password; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_password, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_password, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_password, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_password, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_password = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.password = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_password, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_host = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.host; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_host 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_password, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_host 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_password, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_host 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.password = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_password, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_host = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.host; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_host, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_host, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_host, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_host, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_host = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.host = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_host, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_hostname = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hostname; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_hostname 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_host, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_hostname 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_host, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_hostname 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.host = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_host, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_hostname = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hostname; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_hostname, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_hostname, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_hostname, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_hostname, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_hostname = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.hostname = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_hostname, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_port = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.port; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_port 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_hostname, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_port 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_hostname, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_port 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.hostname = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_hostname, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_port = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.port; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_port, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_port, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_port, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_port, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_port = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.port = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_port, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_pathname = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.pathname; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_pathname 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_port, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_pathname 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_port, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_pathname 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.port = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_port, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_pathname = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.pathname; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_pathname, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_pathname, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_pathname, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_pathname, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_pathname = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.pathname = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_pathname, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_search = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.search; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_search 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_pathname, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_search 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_pathname, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_search 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.pathname = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_pathname, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_search = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.search; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_search, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_search, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_search, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_search, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_search = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.search = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_search, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_hash = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hash; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_hash 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_search, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_hash 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_search, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_hash 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.search = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_search, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_hash = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hash; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_hash, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_hash, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_hash, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_hash, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_hash = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.hash = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_hash, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAreaElement_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.href; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAreaElement_get_href 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAreaElement_set_hash, set object'); break - case "function": - console.log("[*] HTMLAreaElement_get_href 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAreaElement_set_hash, set function'); break default: - // string number - console.log("[*] HTMLAreaElement_get_href 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.hash = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_hash, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAreaElement_get_href = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_get_href, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_get_href, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAreaElement_set_href = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.href = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAreaElement_set_href, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_set_href, set object'); + break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_set_href, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.href = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_set_href, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.HTMLAreaElement_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.toString.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLAreaElement_toString 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLAreaElement_toString 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLAreaElement_toString 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAreaElement_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "HTMLAreaElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.toString.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAreaElement_toString, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLAreaElement_toString, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAreaElement_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.HTMLAnchorElement_get_target = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.target; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_target 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_get_target, 返回object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_target 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_get_target, 返回function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_target 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_target, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_target, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_target = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.target = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_target, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_download = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.download; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_download 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_target, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_download 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_target, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_download 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.target = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_target, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_download = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.download; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_download, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_download, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_download, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_download, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_download = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.download = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_download, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_ping = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ping; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_ping 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_download, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_ping 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_download, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_ping 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.download = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_download, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_ping = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ping; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_ping, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_ping, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_ping, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_ping, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_ping = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ping = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_ping, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_rel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.rel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_rel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_ping, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_rel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_ping, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_rel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ping = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_ping, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_rel = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_rel, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_rel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_rel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_rel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_rel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.rel = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_rel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_relList = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.relList; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_relList 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_rel, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_relList 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_rel, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_relList 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.rel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_rel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_relList = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.relList; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_relList, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_relList, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_relList, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_relList, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_relList = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.relList = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_relList, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_hreflang = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hreflang; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_hreflang 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_relList, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_hreflang 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_relList, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_hreflang 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.relList = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_relList, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_hreflang = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hreflang; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_hreflang, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_hreflang, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_hreflang, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_hreflang, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_hreflang = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.hreflang = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_hreflang, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.type; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_type 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_hreflang, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_type 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_hreflang, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_type 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.hreflang = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_hreflang, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_type = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_type, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_type, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.type = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_referrerPolicy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.referrerPolicy; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_referrerPolicy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_type, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_referrerPolicy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_type, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_referrerPolicy 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.type = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_type, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_referrerPolicy = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.referrerPolicy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_referrerPolicy, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_referrerPolicy, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_referrerPolicy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_referrerPolicy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_referrerPolicy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.referrerPolicy = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_referrerPolicy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_text = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.text; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_text 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_referrerPolicy, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_text 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_referrerPolicy, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_text 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.referrerPolicy = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_referrerPolicy, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_text = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.text; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_text, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_text, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_text, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_text, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_text = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.text = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_text, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_coords = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.coords; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_coords 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_text, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_coords 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_text, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_coords 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.text = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_text, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_coords = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.coords; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_coords, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_coords, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_coords, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_coords, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_coords = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.coords = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_coords, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_charset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.charset; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_charset 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_coords, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_charset 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_coords, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_charset 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.coords = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_coords, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_charset = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.charset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_charset, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_charset, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_charset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_charset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_charset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.charset = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_charset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_charset, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_charset, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.charset = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_charset, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_name = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.name; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_name, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_name, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.name = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_rev = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.rev; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_rev 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_name, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_rev 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_name, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_rev 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.name = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_name, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_rev = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rev; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_rev, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_rev, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_rev, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_rev, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_rev = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.rev = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_rev, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_shape = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.shape; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_shape 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_rev, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_shape 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_rev, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_shape 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.rev = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_rev, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_shape = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.shape; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_shape, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_shape, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_shape, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_shape, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_shape = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.shape = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_shape, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_origin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.origin; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_origin 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_shape, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_origin 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_shape, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_origin 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.shape = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_shape, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_origin = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.origin; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_origin, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_origin, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_origin, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_origin, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.HTMLAnchorElement_get_protocol = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.protocol; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_protocol 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_get_protocol, 返回object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_protocol 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_get_protocol, 返回function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_protocol 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_protocol, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_protocol, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_protocol = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.protocol = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_protocol, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_username = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.username; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_username 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_protocol, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_username 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_protocol, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_username 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.protocol = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_protocol, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_username = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.username; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_username, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_username, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_username, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_username, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_username = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.username = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_username, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_password = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.password; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_password 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_username, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_password 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_username, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_password 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.username = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_username, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_password = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.password; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_password, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_password, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_password, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_password, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_password = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.password = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_password, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_host = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.host; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_host 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_password, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_host 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_password, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_host 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.password = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_password, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_host = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.host; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_host, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_host, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_host, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_host, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_host = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.host = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_host, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_hostname = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hostname; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_hostname 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_host, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_hostname 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_host, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_hostname 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.host = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_host, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_hostname = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hostname; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_hostname, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_hostname, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_hostname, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_hostname, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_hostname = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.hostname = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_hostname, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_port = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.port; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_port 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_hostname, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_port 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_hostname, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_port 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.hostname = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_hostname, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_port = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.port; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_port, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_port, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_port, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_port, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_port = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.port = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_port, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_pathname = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.pathname; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_pathname 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_port, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_pathname 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_port, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_pathname 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.port = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_port, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_pathname = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.pathname; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_pathname, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_pathname, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_pathname, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_pathname, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_pathname = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.pathname = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_pathname, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_search = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.search; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_search 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_pathname, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_search 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_pathname, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_search 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.pathname = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_pathname, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_search = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.search; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_search, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_search, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_search, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_search, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_search = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.search = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_search, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_hash = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hash; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_hash 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_search, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_hash 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_search, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_hash 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.search = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_search, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_hash = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hash; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_hash, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_hash, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_hash, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_hash, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_hash = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.hash = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_hash, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.href; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_href 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_hash, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_href 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_hash, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_href 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.hash = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_hash, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_get_href = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_href, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_href, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_href = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.href = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_href, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.toString.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] HTMLAnchorElement_toString 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] HTMLAnchorElement_toString 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] HTMLAnchorElement_toString 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.HTMLAnchorElement_get_hrefTranslate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hrefTranslate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_hrefTranslate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_href, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_hrefTranslate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_href, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_hrefTranslate 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.href = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_href, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.HTMLAnchorElement_toString = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.toString.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_toString, 返回object'); break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_toString, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_hrefTranslate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.HTMLAnchorElement_get_hrefTranslate = function () { + let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hrefTranslate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] HTMLAnchorElement_get_hrefTranslate, 返回object'); + break + case "function": + cbb_wf.console.log('[*] HTMLAnchorElement_get_hrefTranslate, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_get_hrefTranslate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.HTMLAnchorElement_set_hrefTranslate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.hrefTranslate = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_hrefTranslate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAnchorElement_get_attributionSrc = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.attributionSrc; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] HTMLAnchorElement_get_attributionSrc 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] HTMLAnchorElement_set_hrefTranslate, set object'); break - case "function": - console.log("[*] HTMLAnchorElement_get_attributionSrc 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] HTMLAnchorElement_set_hrefTranslate, set function'); break default: - // string number - console.log("[*] HTMLAnchorElement_get_attributionSrc 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.hrefTranslate = val; } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAnchorElement_get_attributionSrc, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLAnchorElement_set_attributionSrc = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAnchorElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.attributionSrc = val; - if (cbb_wf.is_log) { - console.log("[*] HTMLAnchorElement_set_attributionSrc, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.HTMLAllCollection_get_length = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAllCollection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "length"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLAllCollection_get_length, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.HTMLAllCollection_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAllCollection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HTMLAllCollection_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.HTMLAllCollection_namedItem = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLAllCollection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HTMLAllCollection_namedItem, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HTMLAnchorElement_set_hrefTranslate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } +} this.GeolocationPositionError_get_code = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GeolocationPositionError"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "code"); + + let result = cbb_wf.getValue(this, 'code'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GeolocationPositionError_get_code, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GeolocationPositionError_get_code, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GeolocationPositionError_get_message = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GeolocationPositionError"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "message"); + + let result = cbb_wf.getValue(this, 'message'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GeolocationPositionError_get_message, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GeolocationPositionError_get_message, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GeolocationPosition_get_coords = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GeolocationPosition"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "coords"); + + let result = cbb_wf.getValue(this, 'coords'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GeolocationPosition_get_coords, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GeolocationPosition_get_coords, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GeolocationPosition_get_timestamp = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GeolocationPosition"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "timestamp"); + + let result = cbb_wf.getValue(this, 'timestamp'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GeolocationPosition_get_timestamp, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GeolocationPosition_get_timestamp, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GeolocationCoordinates_get_latitude = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GeolocationCoordinates"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "latitude"); + + let result = cbb_wf.getValue(this, 'latitude'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GeolocationCoordinates_get_latitude, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GeolocationCoordinates_get_latitude, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GeolocationCoordinates_get_longitude = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GeolocationCoordinates"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "longitude"); + + let result = cbb_wf.getValue(this, 'longitude'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GeolocationCoordinates_get_longitude, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GeolocationCoordinates_get_longitude, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GeolocationCoordinates_get_altitude = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GeolocationCoordinates"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "altitude"); + + let result = cbb_wf.getValue(this, 'altitude'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GeolocationCoordinates_get_altitude, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GeolocationCoordinates_get_altitude, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GeolocationCoordinates_get_accuracy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GeolocationCoordinates"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "accuracy"); + + let result = cbb_wf.getValue(this, 'accuracy'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GeolocationCoordinates_get_accuracy, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GeolocationCoordinates_get_accuracy, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GeolocationCoordinates_get_altitudeAccuracy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GeolocationCoordinates"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "altitudeAccuracy"); + + let result = cbb_wf.getValue(this, 'altitudeAccuracy'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GeolocationCoordinates_get_altitudeAccuracy, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GeolocationCoordinates_get_altitudeAccuracy, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GeolocationCoordinates_get_heading = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GeolocationCoordinates"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "heading"); + + let result = cbb_wf.getValue(this, 'heading'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GeolocationCoordinates_get_heading, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GeolocationCoordinates_get_heading, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GeolocationCoordinates_get_speed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GeolocationCoordinates"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "speed"); + + let result = cbb_wf.getValue(this, 'speed'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GeolocationCoordinates_get_speed, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GeolocationCoordinates_get_speed, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Geolocation_clearWatch = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Geolocation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Geolocation_clearWatch, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Geolocation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Geolocation_clearWatch, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Geolocation_getCurrentPosition = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Geolocation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Geolocation_getCurrentPosition, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Geolocation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Geolocation_getCurrentPosition, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Geolocation_watchPosition = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Geolocation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Geolocation_watchPosition, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Geolocation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Geolocation_watchPosition, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.GamepadHapticActuator_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GamepadHapticActuator"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GamepadHapticActuator_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GamepadHapticActuator_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GamepadHapticActuator_playEffect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GamepadHapticActuator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GamepadHapticActuator_playEffect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "GamepadHapticActuator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GamepadHapticActuator_playEffect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.GamepadHapticActuator_reset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GamepadHapticActuator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GamepadHapticActuator_reset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "GamepadHapticActuator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GamepadHapticActuator_reset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.GamepadEvent_get_gamepad = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GamepadEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "gamepad"); + + let result = cbb_wf.getValue(this, 'gamepad'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GamepadEvent_get_gamepad, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GamepadEvent_get_gamepad, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GamepadButton_get_pressed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GamepadButton"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pressed"); + + let result = cbb_wf.getValue(this, 'pressed'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GamepadButton_get_pressed, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GamepadButton_get_pressed, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GamepadButton_get_touched = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GamepadButton"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "touched"); + + let result = cbb_wf.getValue(this, 'touched'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GamepadButton_get_touched, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GamepadButton_get_touched, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GamepadButton_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GamepadButton"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "value"); + + let result = cbb_wf.getValue(this, 'value'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GamepadButton_get_value, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GamepadButton_get_value, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Gamepad_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Gamepad"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "id"); + + let result = cbb_wf.getValue(this, 'id'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Gamepad_get_id, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Gamepad_get_id, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Gamepad_get_index = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Gamepad"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "index"); + + let result = cbb_wf.getValue(this, 'index'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Gamepad_get_index, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Gamepad_get_index, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Gamepad_get_connected = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Gamepad"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "connected"); + + let result = cbb_wf.getValue(this, 'connected'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Gamepad_get_connected, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Gamepad_get_connected, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Gamepad_get_timestamp = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Gamepad"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "timestamp"); + + let result = cbb_wf.getValue(this, 'timestamp'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Gamepad_get_timestamp, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Gamepad_get_timestamp, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Gamepad_get_mapping = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Gamepad"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mapping"); + + let result = cbb_wf.getValue(this, 'mapping'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Gamepad_get_mapping, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Gamepad_get_mapping, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Gamepad_get_axes = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Gamepad"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "axes"); + + let result = cbb_wf.getValue(this, 'axes'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Gamepad_get_axes, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Gamepad_get_axes, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Gamepad_get_buttons = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Gamepad"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "buttons"); + + let result = cbb_wf.getValue(this, 'buttons'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Gamepad_get_buttons, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Gamepad_get_buttons, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Gamepad_get_vibrationActuator = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Gamepad"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "vibrationActuator"); + + let result = cbb_wf.getValue(this, 'vibrationActuator'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Gamepad_get_vibrationActuator, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Gamepad_get_vibrationActuator, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.GainNode_get_gain = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "GainNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "gain"); + + let result = cbb_wf.getValue(this, 'gain'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GainNode_get_gain, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "GainNode_get_gain, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FormDataEvent_get_formData = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FormDataEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "formData"); + + let result = cbb_wf.getValue(this, 'formData'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FormDataEvent_get_formData, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FormDataEvent_get_formData, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.FormData_append = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FormData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FormData_append, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FormData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.append.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] FormData_append, 返回object'); + break + case "function": + cbb_wf.console.log('[*] FormData_append, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FormData_append, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.FormData_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FormData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FormData_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FormData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.delete.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] FormData_delete, 返回object'); + break + case "function": + cbb_wf.console.log('[*] FormData_delete, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FormData_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.FormData_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FormData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FormData_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FormData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.get.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] FormData_get, 返回object'); + break + case "function": + cbb_wf.console.log('[*] FormData_get, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FormData_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.FormData_getAll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FormData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FormData_getAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FormData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getAll.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] FormData_getAll, 返回object'); + break + case "function": + cbb_wf.console.log('[*] FormData_getAll, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FormData_getAll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.FormData_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FormData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FormData_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FormData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.has.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] FormData_has, 返回object'); + break + case "function": + cbb_wf.console.log('[*] FormData_has, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FormData_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.FormData_set = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FormData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FormData_set, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FormData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.set.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] FormData_set, 返回object'); + break + case "function": + cbb_wf.console.log('[*] FormData_set, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FormData_set, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.FormData_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FormData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FormData_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FormData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.entries.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] FormData_entries, 返回object'); + break + case "function": + cbb_wf.console.log('[*] FormData_entries, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FormData_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.FormData_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FormData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FormData_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FormData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.forEach.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] FormData_forEach, 返回object'); + break + case "function": + cbb_wf.console.log('[*] FormData_forEach, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FormData_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.FormData_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FormData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FormData_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FormData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.keys.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] FormData_keys, 返回object'); + break + case "function": + cbb_wf.console.log('[*] FormData_keys, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FormData_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.FormData_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FormData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FormData_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FormData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.values.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] FormData_values, 返回object'); + break + case "function": + cbb_wf.console.log('[*] FormData_values, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FormData_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FontFaceSetLoadEvent_get_fontfaces = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFaceSetLoadEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fontfaces"); + + let result = cbb_wf.getValue(this, 'fontfaces'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFaceSetLoadEvent_get_fontfaces, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFaceSetLoadEvent_get_fontfaces, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontFace_get_family = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "family"); + + let result = cbb_wf.getValue(this, 'family'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFace_get_family, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_get_family, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontFace_set_family = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FontFace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "family", val); - if (cbb_wf.is_log) { - console.log("[*] FontFace_set_family, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FontFace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'family', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_set_family, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FontFace_get_style = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "style"); + + let result = cbb_wf.getValue(this, 'style'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFace_get_style, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_get_style, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontFace_set_style = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FontFace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "style", val); - if (cbb_wf.is_log) { - console.log("[*] FontFace_set_style, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FontFace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'style', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_set_style, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FontFace_get_weight = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "weight"); + + let result = cbb_wf.getValue(this, 'weight'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFace_get_weight, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_get_weight, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontFace_set_weight = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FontFace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "weight", val); - if (cbb_wf.is_log) { - console.log("[*] FontFace_set_weight, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FontFace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'weight', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_set_weight, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FontFace_get_stretch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "stretch"); + + let result = cbb_wf.getValue(this, 'stretch'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFace_get_stretch, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_get_stretch, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontFace_set_stretch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FontFace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "stretch", val); - if (cbb_wf.is_log) { - console.log("[*] FontFace_set_stretch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FontFace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'stretch', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_set_stretch, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FontFace_get_unicodeRange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "unicodeRange"); + + let result = cbb_wf.getValue(this, 'unicodeRange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFace_get_unicodeRange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_get_unicodeRange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontFace_set_unicodeRange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FontFace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "unicodeRange", val); - if (cbb_wf.is_log) { - console.log("[*] FontFace_set_unicodeRange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FontFace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'unicodeRange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_set_unicodeRange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FontFace_get_variant = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "variant"); + + let result = cbb_wf.getValue(this, 'variant'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFace_get_variant, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_get_variant, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontFace_set_variant = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FontFace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "variant", val); - if (cbb_wf.is_log) { - console.log("[*] FontFace_set_variant, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FontFace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'variant', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_set_variant, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FontFace_get_featureSettings = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "featureSettings"); + + let result = cbb_wf.getValue(this, 'featureSettings'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFace_get_featureSettings, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_get_featureSettings, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontFace_set_featureSettings = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FontFace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "featureSettings", val); - if (cbb_wf.is_log) { - console.log("[*] FontFace_set_featureSettings, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FontFace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'featureSettings', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_set_featureSettings, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FontFace_get_display = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "display"); + + let result = cbb_wf.getValue(this, 'display'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFace_get_display, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_get_display, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontFace_set_display = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FontFace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "display", val); - if (cbb_wf.is_log) { - console.log("[*] FontFace_set_display, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FontFace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'display', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_set_display, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FontFace_get_ascentOverride = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ascentOverride"); + + let result = cbb_wf.getValue(this, 'ascentOverride'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFace_get_ascentOverride, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_get_ascentOverride, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontFace_set_ascentOverride = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FontFace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ascentOverride", val); - if (cbb_wf.is_log) { - console.log("[*] FontFace_set_ascentOverride, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FontFace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ascentOverride', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_set_ascentOverride, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FontFace_get_descentOverride = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "descentOverride"); + + let result = cbb_wf.getValue(this, 'descentOverride'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFace_get_descentOverride, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_get_descentOverride, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontFace_set_descentOverride = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FontFace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "descentOverride", val); - if (cbb_wf.is_log) { - console.log("[*] FontFace_set_descentOverride, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FontFace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'descentOverride', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_set_descentOverride, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FontFace_get_lineGapOverride = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lineGapOverride"); + + let result = cbb_wf.getValue(this, 'lineGapOverride'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFace_get_lineGapOverride, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_get_lineGapOverride, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontFace_set_lineGapOverride = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FontFace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "lineGapOverride", val); - if (cbb_wf.is_log) { - console.log("[*] FontFace_set_lineGapOverride, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.FontFace_get_sizeAdjust = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sizeAdjust"); + cbb_wf.setValue(this, 'lineGapOverride', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFace_get_sizeAdjust, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_set_lineGapOverride, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - -this.FontFace_set_sizeAdjust = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FontFace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "sizeAdjust", val); - if (cbb_wf.is_log) { - console.log("[*] FontFace_set_sizeAdjust, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } this.FontFace_get_status = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "status"); + + let result = cbb_wf.getValue(this, 'status'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFace_get_status, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_get_status, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontFace_get_loaded = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontFace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "loaded"); + + let result = cbb_wf.getValue(this, 'loaded'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontFace_get_loaded, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_get_loaded, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontFace_load = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FontFace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FontFace_load, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FontFace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_load, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FontFace_get_sizeAdjust = function () { + let r = cbb_wf.checkIllegal(this, "FontFace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'sizeAdjust'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_get_sizeAdjust, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.FontFace_set_sizeAdjust = function (val) { + let r = cbb_wf.checkIllegal(this, "FontFace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'sizeAdjust', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontFace_set_sizeAdjust, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FocusEvent_get_relatedTarget = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FocusEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "relatedTarget"); + + let result = cbb_wf.getValue(this, 'relatedTarget'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FocusEvent_get_relatedTarget, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FocusEvent_get_relatedTarget, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FileReader_get_readyState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FileReader"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "readyState"); + + let result = cbb_wf.getValue(this, 'readyState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FileReader_get_readyState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_get_readyState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FileReader_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FileReader"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + + let result = cbb_wf.getValue(this, 'result'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FileReader_get_result, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_get_result, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FileReader_get_error = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FileReader"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "error"); + + let result = cbb_wf.getValue(this, 'error'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FileReader_get_error, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_get_error, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FileReader_get_onloadstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FileReader"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onloadstart"); + + let result = cbb_wf.getValue(this, 'onloadstart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FileReader_get_onloadstart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_get_onloadstart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FileReader_set_onloadstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onloadstart", val); - if (cbb_wf.is_log) { - console.log("[*] FileReader_set_onloadstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FileReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onloadstart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_set_onloadstart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FileReader_get_onprogress = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FileReader"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onprogress"); + + let result = cbb_wf.getValue(this, 'onprogress'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FileReader_get_onprogress, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_get_onprogress, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FileReader_set_onprogress = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onprogress", val); - if (cbb_wf.is_log) { - console.log("[*] FileReader_set_onprogress, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FileReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onprogress', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_set_onprogress, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FileReader_get_onload = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FileReader"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onload"); + + let result = cbb_wf.getValue(this, 'onload'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FileReader_get_onload, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_get_onload, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FileReader_set_onload = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onload", val); - if (cbb_wf.is_log) { - console.log("[*] FileReader_set_onload, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FileReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onload', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_set_onload, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FileReader_get_onabort = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FileReader"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onabort"); + + let result = cbb_wf.getValue(this, 'onabort'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FileReader_get_onabort, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_get_onabort, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FileReader_set_onabort = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onabort", val); - if (cbb_wf.is_log) { - console.log("[*] FileReader_set_onabort, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FileReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onabort', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_set_onabort, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FileReader_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FileReader"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + + let result = cbb_wf.getValue(this, 'onerror'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FileReader_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FileReader_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] FileReader_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.FileReader_get_onloadend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FileReader"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onloadend"); + cbb_wf.setValue(this, 'onerror', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FileReader_get_onloadend, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.FileReader_get_onloadend = function () { + let r = cbb_wf.checkIllegal(this, "FileReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onloadend'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_get_onloadend, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FileReader_set_onloadend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onloadend", val); - if (cbb_wf.is_log) { - console.log("[*] FileReader_set_onloadend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "FileReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onloadend', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_set_onloadend, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.FileReader_abort = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileReader_abort, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_abort, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FileReader_readAsArrayBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileReader_readAsArrayBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_readAsArrayBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FileReader_readAsBinaryString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileReader_readAsBinaryString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_readAsBinaryString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FileReader_readAsDataURL = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileReader_readAsDataURL, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_readAsDataURL, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FileReader_readAsText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileReader"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileReader_readAsText, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileReader"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileReader_readAsText, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FileList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FileList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FileList_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FileList_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileList_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileList_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.File_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "File"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] File_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "File_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.File_get_lastModified = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "File"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lastModified"); + + let result = cbb_wf.getValue(this, 'lastModified'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] File_get_lastModified, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "File_get_lastModified, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.File_get_lastModifiedDate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "File"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lastModifiedDate"); + + let result = cbb_wf.getValue(this, 'lastModifiedDate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] File_get_lastModifiedDate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "File_get_lastModifiedDate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.File_get_webkitRelativePath = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "File"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "webkitRelativePath"); + + let result = cbb_wf.getValue(this, 'webkitRelativePath'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] File_get_webkitRelativePath, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "File_get_webkitRelativePath, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FeaturePolicy_allowedFeatures = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FeaturePolicy"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FeaturePolicy_allowedFeatures, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FeaturePolicy"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FeaturePolicy_allowedFeatures, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FeaturePolicy_allowsFeature = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FeaturePolicy"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FeaturePolicy_allowsFeature, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FeaturePolicy"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FeaturePolicy_allowsFeature, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FeaturePolicy_features = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FeaturePolicy"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FeaturePolicy_features, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FeaturePolicy"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FeaturePolicy_features, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FeaturePolicy_getAllowlistForFeature = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FeaturePolicy"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FeaturePolicy_getAllowlistForFeature, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FeaturePolicy"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FeaturePolicy_getAllowlistForFeature, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.External_AddSearchProvider = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "External"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] External_AddSearchProvider, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "External"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "External_AddSearchProvider, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.External_IsSearchProviderInstalled = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "External"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] External_IsSearchProviderInstalled, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "External"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "External_IsSearchProviderInstalled, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.EventTarget_addEventListener = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EventTarget"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.addEventListener.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] EventTarget_addEventListener 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] EventTarget_addEventListener 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] EventTarget_addEventListener 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EventTarget_addEventListener, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "EventTarget"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventTarget_addEventListener, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.EventTarget_dispatchEvent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EventTarget"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.dispatchEvent.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] EventTarget_dispatchEvent 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] EventTarget_dispatchEvent 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] EventTarget_dispatchEvent 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EventTarget_dispatchEvent, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "EventTarget"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventTarget_dispatchEvent, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.EventTarget_removeEventListener = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EventTarget"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.removeEventListener.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] EventTarget_removeEventListener 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] EventTarget_removeEventListener 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] EventTarget_removeEventListener 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EventTarget_removeEventListener, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "EventTarget"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventTarget_removeEventListener, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.EventSource_get_url = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "EventSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "url"); + + let result = cbb_wf.getValue(this, 'url'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EventSource_get_url, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventSource_get_url, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.EventSource_get_withCredentials = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "EventSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "withCredentials"); + + let result = cbb_wf.getValue(this, 'withCredentials'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EventSource_get_withCredentials, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventSource_get_withCredentials, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.EventSource_get_readyState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "EventSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "readyState"); + + let result = cbb_wf.getValue(this, 'readyState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EventSource_get_readyState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventSource_get_readyState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.EventSource_get_onopen = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "EventSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onopen"); + + let result = cbb_wf.getValue(this, 'onopen'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EventSource_get_onopen, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventSource_get_onopen, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.EventSource_set_onopen = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EventSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onopen", val); - if (cbb_wf.is_log) { - console.log("[*] EventSource_set_onopen, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "EventSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onopen', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventSource_set_onopen, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.EventSource_get_onmessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "EventSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmessage"); + + let result = cbb_wf.getValue(this, 'onmessage'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EventSource_get_onmessage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventSource_get_onmessage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.EventSource_set_onmessage = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EventSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmessage", val); - if (cbb_wf.is_log) { - console.log("[*] EventSource_set_onmessage, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.EventSource_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "EventSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + cbb_wf.setValue(this, 'onmessage', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EventSource_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventSource_set_onmessage, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.EventSource_get_onerror = function () { + let r = cbb_wf.checkIllegal(this, "EventSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onerror'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventSource_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.EventSource_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EventSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] EventSource_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "EventSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventSource_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.EventSource_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EventSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EventSource_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "EventSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventSource_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.EventCounts_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "EventCounts"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + + let result = cbb_wf.getValue(this, 'size'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EventCounts_get_size, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventCounts_get_size, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.EventCounts_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EventCounts"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EventCounts_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "EventCounts"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventCounts_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.EventCounts_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EventCounts"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EventCounts_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "EventCounts"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventCounts_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.EventCounts_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EventCounts"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EventCounts_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "EventCounts"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventCounts_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.EventCounts_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EventCounts"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EventCounts_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "EventCounts"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventCounts_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.EventCounts_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EventCounts"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EventCounts_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "EventCounts"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventCounts_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.EventCounts_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EventCounts"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EventCounts_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "EventCounts"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EventCounts_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Event_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Event"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Event_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Event_get_target = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Event"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "target"); + + let result = cbb_wf.getValue(this, 'target'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Event_get_target, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_get_target, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Event_get_currentTarget = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Event"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "currentTarget"); + + let result = cbb_wf.getValue(this, 'currentTarget'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Event_get_currentTarget, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_get_currentTarget, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Event_get_eventPhase = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Event"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "eventPhase"); + + let result = cbb_wf.getValue(this, 'eventPhase'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Event_get_eventPhase, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_get_eventPhase, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Event_get_bubbles = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Event"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "bubbles"); + + let result = cbb_wf.getValue(this, 'bubbles'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Event_get_bubbles, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_get_bubbles, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Event_get_cancelable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Event"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cancelable"); + + let result = cbb_wf.getValue(this, 'cancelable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Event_get_cancelable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_get_cancelable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Event_get_defaultPrevented = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Event"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "defaultPrevented"); + + let result = cbb_wf.getValue(this, 'defaultPrevented'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Event_get_defaultPrevented, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_get_defaultPrevented, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Event_get_composed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Event"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "composed"); + + let result = cbb_wf.getValue(this, 'composed'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Event_get_composed, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_get_composed, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Event_get_timeStamp = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Event"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "timeStamp"); + + let result = cbb_wf.getValue(this, 'timeStamp'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Event_get_timeStamp, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_get_timeStamp, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Event_get_srcElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Event"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "srcElement"); + + let result = cbb_wf.getValue(this, 'srcElement'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Event_get_srcElement, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_get_srcElement, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Event_get_returnValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Event"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "returnValue"); + + let result = cbb_wf.getValue(this, 'returnValue'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Event_get_returnValue, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_get_returnValue, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Event_set_returnValue = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Event"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "returnValue", val); - if (cbb_wf.is_log) { - console.log("[*] Event_set_returnValue, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Event_get_cancelBubble = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Event"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cancelBubble"); + cbb_wf.setValue(this, 'returnValue', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Event_get_cancelBubble, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_set_returnValue, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.Event_get_cancelBubble = function () { + let r = cbb_wf.checkIllegal(this, "Event"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'cancelBubble'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_get_cancelBubble, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Event_set_cancelBubble = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Event"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "cancelBubble", val); - if (cbb_wf.is_log) { - console.log("[*] Event_set_cancelBubble, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "Event"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'cancelBubble', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_set_cancelBubble, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Event_composedPath = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Event"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Event_composedPath, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Event"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_composedPath, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Event_initEvent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Event"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Event_initEvent, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Event"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_initEvent, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Event_preventDefault = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Event"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Event_preventDefault, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Event"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_preventDefault, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Event_stopImmediatePropagation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Event"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Event_stopImmediatePropagation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Event"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_stopImmediatePropagation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Event_stopPropagation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Event"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Event_stopPropagation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Event"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_stopPropagation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Event_get_path = function () { + let r = cbb_wf.checkIllegal(this, "Event"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'path'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Event_get_path, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.ErrorEvent_get_message = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ErrorEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "message"); + + let result = cbb_wf.getValue(this, 'message'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ErrorEvent_get_message, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ErrorEvent_get_message, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ErrorEvent_get_filename = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ErrorEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "filename"); + + let result = cbb_wf.getValue(this, 'filename'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ErrorEvent_get_filename, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ErrorEvent_get_filename, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ErrorEvent_get_lineno = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ErrorEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lineno"); + + let result = cbb_wf.getValue(this, 'lineno'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ErrorEvent_get_lineno, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ErrorEvent_get_lineno, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ErrorEvent_get_colno = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ErrorEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "colno"); + + let result = cbb_wf.getValue(this, 'colno'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ErrorEvent_get_colno, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ErrorEvent_get_colno, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ErrorEvent_get_error = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ErrorEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "error"); + + let result = cbb_wf.getValue(this, 'error'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ErrorEvent_get_error, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ErrorEvent_get_error, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.EncodedVideoChunk_get_type = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EncodedVideoChunk"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "type"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EncodedVideoChunk_get_type, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EncodedVideoChunk_get_timestamp = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EncodedVideoChunk"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "timestamp"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EncodedVideoChunk_get_timestamp, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EncodedVideoChunk_get_duration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EncodedVideoChunk"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "duration"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EncodedVideoChunk_get_duration, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EncodedVideoChunk_get_byteLength = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EncodedVideoChunk"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "byteLength"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EncodedVideoChunk_get_byteLength, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EncodedVideoChunk_copyTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EncodedVideoChunk"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EncodedVideoChunk_copyTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.EncodedAudioChunk_get_type = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EncodedAudioChunk"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "type"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EncodedAudioChunk_get_type, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EncodedAudioChunk_get_timestamp = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EncodedAudioChunk"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "timestamp"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EncodedAudioChunk_get_timestamp, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EncodedAudioChunk_get_byteLength = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EncodedAudioChunk"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "byteLength"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EncodedAudioChunk_get_byteLength, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EncodedAudioChunk_get_duration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EncodedAudioChunk"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "duration"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EncodedAudioChunk_get_duration, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EncodedAudioChunk_copyTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EncodedAudioChunk"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EncodedAudioChunk_copyTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.ElementInternals_get_form = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "form"); + + let result = cbb_wf.getValue(this, 'form'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_form, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_form, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_get_willValidate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "willValidate"); + + let result = cbb_wf.getValue(this, 'willValidate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_willValidate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_willValidate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_get_validity = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "validity"); + + let result = cbb_wf.getValue(this, 'validity'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_validity, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_validity, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_get_validationMessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "validationMessage"); + + let result = cbb_wf.getValue(this, 'validationMessage'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_validationMessage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_validationMessage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_get_labels = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "labels"); + + let result = cbb_wf.getValue(this, 'labels'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_labels, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_labels, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.ElementInternals_get_states = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "states"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_states, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.ElementInternals_get_shadowRoot = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shadowRoot"); + + let result = cbb_wf.getValue(this, 'shadowRoot'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_shadowRoot, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_shadowRoot, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_get_role = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "role"); + + let result = cbb_wf.getValue(this, 'role'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_role, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_role, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_role = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "role", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_role, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'role', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_role, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaAtomic = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaAtomic"); + + let result = cbb_wf.getValue(this, 'ariaAtomic'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaAtomic, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaAtomic, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaAtomic = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaAtomic", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaAtomic, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaAtomic', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaAtomic, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaAutoComplete = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaAutoComplete"); + + let result = cbb_wf.getValue(this, 'ariaAutoComplete'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaAutoComplete, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaAutoComplete, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaAutoComplete = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaAutoComplete", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaAutoComplete, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaAutoComplete', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaAutoComplete, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaBusy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaBusy"); + + let result = cbb_wf.getValue(this, 'ariaBusy'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaBusy, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaBusy, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaBusy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaBusy", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaBusy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.ElementInternals_get_ariaBrailleLabel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaBrailleLabel"); + cbb_wf.setValue(this, 'ariaBusy', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaBrailleLabel, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaBusy, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - -this.ElementInternals_set_ariaBrailleLabel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaBrailleLabel", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaBrailleLabel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.ElementInternals_get_ariaBrailleRoleDescription = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ariaBrailleRoleDescription"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaBrailleRoleDescription, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ElementInternals_set_ariaBrailleRoleDescription = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaBrailleRoleDescription", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaBrailleRoleDescription, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } this.ElementInternals_get_ariaChecked = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaChecked"); + + let result = cbb_wf.getValue(this, 'ariaChecked'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaChecked, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaChecked, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaChecked = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaChecked", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaChecked, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaChecked', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaChecked, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaColCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaColCount"); + + let result = cbb_wf.getValue(this, 'ariaColCount'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaColCount, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaColCount, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaColCount = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaColCount", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaColCount, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaColCount', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaColCount, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaColIndex = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaColIndex"); + + let result = cbb_wf.getValue(this, 'ariaColIndex'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaColIndex, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaColIndex, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaColIndex = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaColIndex", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaColIndex, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaColIndex', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaColIndex, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaColSpan = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaColSpan"); + + let result = cbb_wf.getValue(this, 'ariaColSpan'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaColSpan, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaColSpan, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaColSpan = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaColSpan", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaColSpan, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaColSpan', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaColSpan, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaCurrent = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaCurrent"); + + let result = cbb_wf.getValue(this, 'ariaCurrent'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaCurrent, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaCurrent, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaCurrent = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaCurrent", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaCurrent, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaCurrent', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaCurrent, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaDescription = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaDescription"); + + let result = cbb_wf.getValue(this, 'ariaDescription'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaDescription, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaDescription, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaDescription = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaDescription", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaDescription, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaDescription', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaDescription, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaDisabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaDisabled"); + + let result = cbb_wf.getValue(this, 'ariaDisabled'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaDisabled, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaDisabled, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaDisabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaDisabled", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaDisabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaDisabled', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaDisabled, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaExpanded = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaExpanded"); + + let result = cbb_wf.getValue(this, 'ariaExpanded'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaExpanded, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaExpanded, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaExpanded = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaExpanded", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaExpanded, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaExpanded', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaExpanded, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaHasPopup = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaHasPopup"); + + let result = cbb_wf.getValue(this, 'ariaHasPopup'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaHasPopup, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaHasPopup, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaHasPopup = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaHasPopup", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaHasPopup, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaHasPopup', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaHasPopup, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaHidden = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaHidden"); + + let result = cbb_wf.getValue(this, 'ariaHidden'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaHidden, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaHidden, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaHidden = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaHidden", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaHidden, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaHidden', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaHidden, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaInvalid = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaInvalid"); + + let result = cbb_wf.getValue(this, 'ariaInvalid'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaInvalid, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaInvalid, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaInvalid = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaInvalid", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaInvalid, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaInvalid', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaInvalid, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaKeyShortcuts = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaKeyShortcuts"); + + let result = cbb_wf.getValue(this, 'ariaKeyShortcuts'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaKeyShortcuts, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaKeyShortcuts, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaKeyShortcuts = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaKeyShortcuts", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaKeyShortcuts, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaKeyShortcuts', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaKeyShortcuts, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaLabel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaLabel"); + + let result = cbb_wf.getValue(this, 'ariaLabel'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaLabel, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaLabel, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaLabel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaLabel", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaLabel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaLabel', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaLabel, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaLevel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaLevel"); + + let result = cbb_wf.getValue(this, 'ariaLevel'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaLevel, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaLevel, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaLevel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaLevel", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaLevel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaLevel', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaLevel, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaLive = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaLive"); + + let result = cbb_wf.getValue(this, 'ariaLive'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaLive, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaLive, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaLive = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaLive", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaLive, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaLive', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaLive, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaModal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaModal"); + + let result = cbb_wf.getValue(this, 'ariaModal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaModal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaModal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaModal = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaModal", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaModal, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaModal', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaModal, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaMultiLine = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaMultiLine"); + + let result = cbb_wf.getValue(this, 'ariaMultiLine'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaMultiLine, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaMultiLine, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaMultiLine = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaMultiLine", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaMultiLine, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaMultiLine', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaMultiLine, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaMultiSelectable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaMultiSelectable"); + + let result = cbb_wf.getValue(this, 'ariaMultiSelectable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaMultiSelectable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaMultiSelectable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaMultiSelectable = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaMultiSelectable", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaMultiSelectable, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaMultiSelectable', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaMultiSelectable, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaOrientation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaOrientation"); + + let result = cbb_wf.getValue(this, 'ariaOrientation'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaOrientation, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaOrientation, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaOrientation = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaOrientation", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaOrientation, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaOrientation', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaOrientation, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaPlaceholder = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaPlaceholder"); + + let result = cbb_wf.getValue(this, 'ariaPlaceholder'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaPlaceholder, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaPlaceholder, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaPlaceholder = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaPlaceholder", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaPlaceholder, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaPlaceholder', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaPlaceholder, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaPosInSet = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaPosInSet"); + + let result = cbb_wf.getValue(this, 'ariaPosInSet'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaPosInSet, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaPosInSet, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaPosInSet = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaPosInSet", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaPosInSet, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaPosInSet', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaPosInSet, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaPressed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaPressed"); + + let result = cbb_wf.getValue(this, 'ariaPressed'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaPressed, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaPressed, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaPressed = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaPressed", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaPressed, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaPressed', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaPressed, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaReadOnly = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaReadOnly"); + + let result = cbb_wf.getValue(this, 'ariaReadOnly'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaReadOnly, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaReadOnly, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaReadOnly = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaReadOnly", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaReadOnly, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaReadOnly', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaReadOnly, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaRelevant = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaRelevant"); + + let result = cbb_wf.getValue(this, 'ariaRelevant'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaRelevant, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaRelevant, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaRelevant = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaRelevant", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaRelevant, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaRelevant', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaRelevant, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaRequired = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaRequired"); + + let result = cbb_wf.getValue(this, 'ariaRequired'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaRequired, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaRequired, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaRequired = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaRequired", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaRequired, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaRequired', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaRequired, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaRoleDescription = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaRoleDescription"); + + let result = cbb_wf.getValue(this, 'ariaRoleDescription'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaRoleDescription, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaRoleDescription, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaRoleDescription = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaRoleDescription", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaRoleDescription, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaRoleDescription', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaRoleDescription, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaRowCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaRowCount"); + + let result = cbb_wf.getValue(this, 'ariaRowCount'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaRowCount, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaRowCount, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaRowCount = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaRowCount", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaRowCount, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaRowCount', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaRowCount, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaRowIndex = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaRowIndex"); + + let result = cbb_wf.getValue(this, 'ariaRowIndex'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaRowIndex, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaRowIndex, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaRowIndex = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaRowIndex", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaRowIndex, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaRowIndex', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaRowIndex, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaRowSpan = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaRowSpan"); + + let result = cbb_wf.getValue(this, 'ariaRowSpan'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaRowSpan, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaRowSpan, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaRowSpan = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaRowSpan", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaRowSpan, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaRowSpan', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaRowSpan, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaSelected = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaSelected"); + + let result = cbb_wf.getValue(this, 'ariaSelected'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaSelected, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaSelected, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaSelected = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaSelected", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaSelected, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaSelected', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaSelected, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaSetSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaSetSize"); + + let result = cbb_wf.getValue(this, 'ariaSetSize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaSetSize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaSetSize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaSetSize = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaSetSize", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaSetSize, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaSetSize', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaSetSize, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaSort = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaSort"); + + let result = cbb_wf.getValue(this, 'ariaSort'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaSort, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaSort, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaSort = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaSort", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaSort, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaSort', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaSort, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaValueMax = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaValueMax"); + + let result = cbb_wf.getValue(this, 'ariaValueMax'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaValueMax, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaValueMax, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaValueMax = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaValueMax", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaValueMax, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaValueMax', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaValueMax, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaValueMin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaValueMin"); + + let result = cbb_wf.getValue(this, 'ariaValueMin'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaValueMin, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaValueMin, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaValueMin = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaValueMin", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaValueMin, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ariaValueMin', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaValueMin, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ElementInternals_get_ariaValueNow = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaValueNow"); + + let result = cbb_wf.getValue(this, 'ariaValueNow'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaValueNow, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaValueNow, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ElementInternals_set_ariaValueNow = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaValueNow", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaValueNow, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.ElementInternals_get_ariaValueText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ElementInternals"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ariaValueText"); + cbb_wf.setValue(this, 'ariaValueNow', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ElementInternals_get_ariaValueText, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaValueNow, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.ElementInternals_get_ariaValueText = function () { + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ariaValueText'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_ariaValueText, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ElementInternals_set_ariaValueText = function (val) { + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'ariaValueText', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_set_ariaValueText, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.ElementInternals_checkValidity = function () { + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_checkValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ElementInternals_reportValidity = function () { + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_reportValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ElementInternals_setFormValue = function () { + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_setFormValue, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ElementInternals_setValidity = function () { + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_setValidity, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ElementInternals_get_states = function () { + let r = cbb_wf.checkIllegal(this, "ElementInternals"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'states'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ElementInternals_get_states, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } -this.ElementInternals_set_ariaValueText = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ariaValueText", val); - if (cbb_wf.is_log) { - console.log("[*] ElementInternals_set_ariaValueText, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.ElementInternals_checkValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ElementInternals_checkValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ElementInternals_reportValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ElementInternals_reportValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ElementInternals_setFormValue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ElementInternals_setFormValue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ElementInternals_setValidity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ElementInternals"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ElementInternals_setValidity, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.Element_get_namespaceURI = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.namespaceURI; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_namespaceURI 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_namespaceURI, 返回object'); break - case "function": - console.log("[*] Element_get_namespaceURI 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_namespaceURI, 返回function'); break default: - // string number - console.log("[*] Element_get_namespaceURI 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_namespaceURI, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_namespaceURI, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_prefix = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.prefix; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_prefix 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_prefix, 返回object'); break - case "function": - console.log("[*] Element_get_prefix 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_prefix, 返回function'); break default: - // string number - console.log("[*] Element_get_prefix 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_prefix, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_prefix, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_localName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.localName; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_localName 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_localName, 返回object'); break - case "function": - console.log("[*] Element_get_localName 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_localName, 返回function'); break default: - // string number - console.log("[*] Element_get_localName 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_localName, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_localName, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_tagName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.tagName; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_tagName 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_tagName, 返回object'); break - case "function": - console.log("[*] Element_get_tagName 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_tagName, 返回function'); break default: - // string number - console.log("[*] Element_get_tagName 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_tagName, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_tagName, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.id; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_id 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_id, 返回object'); break - case "function": - console.log("[*] Element_get_id 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_id, 返回function'); break default: - // string number - console.log("[*] Element_get_id 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_id, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_id, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_id = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.id = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_id, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_className = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.className; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_className 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_id, set object'); break - case "function": - console.log("[*] Element_get_className 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_id, set function'); break default: - // string number - console.log("[*] Element_get_className 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.id = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_id, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_className = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.className; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_className, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_className, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_className, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_className, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_className = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.className = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_className, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_classList = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.classList; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_classList 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_className, set object'); break - case "function": - console.log("[*] Element_get_classList 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_className, set function'); break default: - // string number - console.log("[*] Element_get_classList 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.className = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_className, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_classList = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.classList; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_classList, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_classList, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_classList, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_classList, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_classList = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.classList = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_classList, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_slot = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.slot; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_slot 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_classList, set object'); break - case "function": - console.log("[*] Element_get_slot 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_classList, set function'); break default: - // string number - console.log("[*] Element_get_slot 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.classList = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_classList, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_slot = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.slot; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_slot, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_slot, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_slot, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_slot, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_slot = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.slot = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_slot, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_attributes = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Element_set_slot, set object'); + break + case "function": + cbb_wf.console.log('[*] Element_set_slot, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.slot = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_slot, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_attributes = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.attributes; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_attributes 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_attributes, 返回object'); break - case "function": - console.log("[*] Element_get_attributes 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_attributes, 返回function'); break default: - // string number - console.log("[*] Element_get_attributes 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_attributes, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_attributes, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_shadowRoot = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.shadowRoot; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_shadowRoot 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_shadowRoot, 返回object'); break - case "function": - console.log("[*] Element_get_shadowRoot 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_shadowRoot, 返回function'); break default: - // string number - console.log("[*] Element_get_shadowRoot 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_shadowRoot, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_shadowRoot, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_part = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.part; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_part 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_part, 返回object'); break - case "function": - console.log("[*] Element_get_part 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_part, 返回function'); break default: - // string number - console.log("[*] Element_get_part 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_part, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_part, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_part = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.part = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_part, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_assignedSlot = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.assignedSlot; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_assignedSlot 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_part, set object'); break - case "function": - console.log("[*] Element_get_assignedSlot 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_part, set function'); break default: - // string number - console.log("[*] Element_get_assignedSlot 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.part = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_part, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_assignedSlot = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.assignedSlot; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_assignedSlot, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_assignedSlot, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_assignedSlot, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_assignedSlot, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_innerHTML = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.innerHTML; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_innerHTML 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_innerHTML, 返回object'); break - case "function": - console.log("[*] Element_get_innerHTML 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_innerHTML, 返回function'); break default: - // string number - console.log("[*] Element_get_innerHTML 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_innerHTML, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_innerHTML, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_innerHTML = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.innerHTML = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_innerHTML, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_outerHTML = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.outerHTML; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_outerHTML 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_innerHTML, set object'); break - case "function": - console.log("[*] Element_get_outerHTML 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_innerHTML, set function'); break default: - // string number - console.log("[*] Element_get_outerHTML 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.innerHTML = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_innerHTML, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_outerHTML = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.outerHTML; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_outerHTML, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_outerHTML, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_outerHTML, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_outerHTML, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_outerHTML = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.outerHTML = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_outerHTML, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_scrollTop = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.scrollTop; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_scrollTop 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_outerHTML, set object'); break - case "function": - console.log("[*] Element_get_scrollTop 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_outerHTML, set function'); break default: - // string number - console.log("[*] Element_get_scrollTop 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.outerHTML = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_outerHTML, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_scrollTop = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.scrollTop; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_scrollTop, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_scrollTop, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_scrollTop, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_scrollTop, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_scrollTop = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.scrollTop = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_scrollTop, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_scrollLeft = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.scrollLeft; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_scrollLeft 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_scrollTop, set object'); break - case "function": - console.log("[*] Element_get_scrollLeft 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_scrollTop, set function'); break default: - // string number - console.log("[*] Element_get_scrollLeft 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.scrollTop = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_scrollTop, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_scrollLeft = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.scrollLeft; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_scrollLeft, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_scrollLeft, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_scrollLeft, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_scrollLeft, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_scrollLeft = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.scrollLeft = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_scrollLeft, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_scrollWidth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Element_set_scrollLeft, set object'); + break + case "function": + cbb_wf.console.log('[*] Element_set_scrollLeft, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.scrollLeft = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_scrollLeft, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_scrollWidth = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.scrollWidth; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_scrollWidth 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_scrollWidth, 返回object'); break - case "function": - console.log("[*] Element_get_scrollWidth 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_scrollWidth, 返回function'); break default: - // string number - console.log("[*] Element_get_scrollWidth 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_scrollWidth, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_scrollWidth, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_scrollHeight = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.scrollHeight; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_scrollHeight 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_scrollHeight, 返回object'); break - case "function": - console.log("[*] Element_get_scrollHeight 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_scrollHeight, 返回function'); break default: - // string number - console.log("[*] Element_get_scrollHeight 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_scrollHeight, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_scrollHeight, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_clientTop = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.clientTop; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_clientTop 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_clientTop, 返回object'); break - case "function": - console.log("[*] Element_get_clientTop 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_clientTop, 返回function'); break default: - // string number - console.log("[*] Element_get_clientTop 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_clientTop, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_clientTop, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_clientLeft = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.clientLeft; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_clientLeft 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_clientLeft, 返回object'); break - case "function": - console.log("[*] Element_get_clientLeft 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_clientLeft, 返回function'); break default: - // string number - console.log("[*] Element_get_clientLeft 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_clientLeft, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_clientLeft, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_clientWidth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.clientWidth; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_clientWidth 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_clientWidth, 返回object'); break - case "function": - console.log("[*] Element_get_clientWidth 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_clientWidth, 返回function'); break default: - // string number - console.log("[*] Element_get_clientWidth 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_clientWidth, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_clientWidth, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_clientHeight = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.clientHeight; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_clientHeight 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_clientHeight, 返回object'); break - case "function": - console.log("[*] Element_get_clientHeight 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_clientHeight, 返回function'); break default: - // string number - console.log("[*] Element_get_clientHeight 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_clientHeight, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_clientHeight, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.Element_get_onbeforecopy = function () { - // 非法调用 + +this.Element_get_attributeStyleMap = function () { let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforecopy; - let type = typeof result; - switch (type) { + let result = dom_element.attributeStyleMap; + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_onbeforecopy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_attributeStyleMap, 返回object'); break - case "function": - console.log("[*] Element_get_onbeforecopy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_attributeStyleMap, 返回function'); break default: - // string number - console.log("[*] Element_get_onbeforecopy 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_onbeforecopy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_attributeStyleMap, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} + +this.Element_get_onbeforecopy = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onbeforecopy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_onbeforecopy, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_get_onbeforecopy, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_onbeforecopy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_onbeforecopy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforecopy = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_onbeforecopy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_onbeforecut = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforecut; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_onbeforecut 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_onbeforecopy, set object'); break - case "function": - console.log("[*] Element_get_onbeforecut 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_onbeforecopy, set function'); break default: - // string number - console.log("[*] Element_get_onbeforecut 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforecopy = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_onbeforecopy, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_onbeforecut = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onbeforecut; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_onbeforecut, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_onbeforecut, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_onbeforecut, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_onbeforecut, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_onbeforecut = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforecut = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_onbeforecut, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_onbeforepaste = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforepaste; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_onbeforepaste 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_onbeforecut, set object'); break - case "function": - console.log("[*] Element_get_onbeforepaste 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_onbeforecut, set function'); break default: - // string number - console.log("[*] Element_get_onbeforepaste 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforecut = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_onbeforecut, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_onbeforepaste = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onbeforepaste; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_onbeforepaste, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_onbeforepaste, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_onbeforepaste, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_onbeforepaste, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_onbeforepaste = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforepaste = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_onbeforepaste, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_onsearch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onsearch; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_onsearch 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_onbeforepaste, set object'); break - case "function": - console.log("[*] Element_get_onsearch 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_onbeforepaste, set function'); break default: - // string number - console.log("[*] Element_get_onsearch 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforepaste = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_onbeforepaste, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_onsearch = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onsearch; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_onsearch, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_onsearch, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_onsearch, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_onsearch, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_onsearch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onsearch = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_onsearch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_elementTiming = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.elementTiming; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_elementTiming 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_onsearch, set object'); break - case "function": - console.log("[*] Element_get_elementTiming 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_onsearch, set function'); break default: - // string number - console.log("[*] Element_get_elementTiming 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onsearch = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_onsearch, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_elementTiming = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.elementTiming; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_elementTiming, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_elementTiming, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_elementTiming, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_elementTiming, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_elementTiming = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.elementTiming = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_elementTiming, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_onfullscreenchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onfullscreenchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_onfullscreenchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_elementTiming, set object'); break - case "function": - console.log("[*] Element_get_onfullscreenchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_elementTiming, set function'); break default: - // string number - console.log("[*] Element_get_onfullscreenchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.elementTiming = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_elementTiming, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_onfullscreenchange = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onfullscreenchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_onfullscreenchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_onfullscreenchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_onfullscreenchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_onfullscreenchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_onfullscreenchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onfullscreenchange = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_onfullscreenchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_onfullscreenerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onfullscreenerror; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_onfullscreenerror 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_onfullscreenchange, set object'); break - case "function": - console.log("[*] Element_get_onfullscreenerror 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_onfullscreenchange, set function'); break default: - // string number - console.log("[*] Element_get_onfullscreenerror 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onfullscreenchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_onfullscreenchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_onfullscreenerror = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onfullscreenerror; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_onfullscreenerror, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_onfullscreenerror, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_onfullscreenerror, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_onfullscreenerror, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_onfullscreenerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onfullscreenerror = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_onfullscreenerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_onwebkitfullscreenchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkitfullscreenchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_onwebkitfullscreenchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_onfullscreenerror, set object'); break - case "function": - console.log("[*] Element_get_onwebkitfullscreenchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_onfullscreenerror, set function'); break default: - // string number - console.log("[*] Element_get_onwebkitfullscreenchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onfullscreenerror = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_onfullscreenerror, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_onwebkitfullscreenchange = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkitfullscreenchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_onwebkitfullscreenchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_onwebkitfullscreenchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_onwebkitfullscreenchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_onwebkitfullscreenchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_onwebkitfullscreenchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkitfullscreenchange = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_onwebkitfullscreenchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_onwebkitfullscreenerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkitfullscreenerror; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_onwebkitfullscreenerror 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_onwebkitfullscreenchange, set object'); break - case "function": - console.log("[*] Element_get_onwebkitfullscreenerror 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_onwebkitfullscreenchange, set function'); break default: - // string number - console.log("[*] Element_get_onwebkitfullscreenerror 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkitfullscreenchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_onwebkitfullscreenchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_onwebkitfullscreenerror = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkitfullscreenerror; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_onwebkitfullscreenerror, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_onwebkitfullscreenerror, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_onwebkitfullscreenerror, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_onwebkitfullscreenerror, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_onwebkitfullscreenerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkitfullscreenerror = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_onwebkitfullscreenerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_role = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.role; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_role 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_onwebkitfullscreenerror, set object'); break - case "function": - console.log("[*] Element_get_role 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_onwebkitfullscreenerror, set function'); break default: - // string number - console.log("[*] Element_get_role 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkitfullscreenerror = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_onwebkitfullscreenerror, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_role = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.role; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_role, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_role, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_role, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_role, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_role = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.role = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_role, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaAtomic = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaAtomic; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaAtomic 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_role, set object'); break - case "function": - console.log("[*] Element_get_ariaAtomic 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_role, set function'); break default: - // string number - console.log("[*] Element_get_ariaAtomic 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.role = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_role, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaAtomic = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaAtomic; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaAtomic, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaAtomic, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaAtomic, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaAtomic, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaAtomic = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaAtomic = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaAtomic, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaAutoComplete = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaAutoComplete; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaAutoComplete 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaAtomic, set object'); break - case "function": - console.log("[*] Element_get_ariaAutoComplete 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaAtomic, set function'); break default: - // string number - console.log("[*] Element_get_ariaAutoComplete 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaAtomic = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaAtomic, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaAutoComplete = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaAutoComplete; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaAutoComplete, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaAutoComplete, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaAutoComplete, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaAutoComplete, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaAutoComplete = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaAutoComplete = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaAutoComplete, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaBusy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaBusy; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaBusy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaAutoComplete, set object'); break - case "function": - console.log("[*] Element_get_ariaBusy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaAutoComplete, set function'); break default: - // string number - console.log("[*] Element_get_ariaBusy 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaAutoComplete = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaAutoComplete, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaBusy = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaBusy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaBusy, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaBusy, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaBusy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaBusy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaBusy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaBusy = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaBusy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaBrailleLabel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaBrailleLabel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaBrailleLabel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaBusy, set object'); break - case "function": - console.log("[*] Element_get_ariaBrailleLabel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaBusy, set function'); break default: - // string number - console.log("[*] Element_get_ariaBrailleLabel 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaBusy = val; } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaBrailleLabel, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.Element_set_ariaBrailleLabel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaBrailleLabel = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaBrailleLabel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaBrailleRoleDescription = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaBrailleRoleDescription; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaBrailleRoleDescription 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] Element_get_ariaBrailleRoleDescription 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_get_ariaBrailleRoleDescription 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaBrailleRoleDescription, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaBusy, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.Element_set_ariaBrailleRoleDescription = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaBrailleRoleDescription = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaBrailleRoleDescription, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.Element_get_ariaChecked = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.ariaChecked; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaChecked 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_ariaChecked, 返回object'); break - case "function": - console.log("[*] Element_get_ariaChecked 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_ariaChecked, 返回function'); break default: - // string number - console.log("[*] Element_get_ariaChecked 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaChecked, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaChecked, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaChecked = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaChecked = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaChecked, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaColCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaColCount; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaColCount 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaChecked, set object'); break - case "function": - console.log("[*] Element_get_ariaColCount 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaChecked, set function'); break default: - // string number - console.log("[*] Element_get_ariaColCount 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaChecked = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaChecked, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaColCount = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaColCount; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaColCount, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaColCount, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaColCount, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaColCount, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaColCount = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaColCount = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaColCount, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaColIndex = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaColIndex; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaColIndex 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaColCount, set object'); break - case "function": - console.log("[*] Element_get_ariaColIndex 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaColCount, set function'); break default: - // string number - console.log("[*] Element_get_ariaColIndex 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaColCount = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaColCount, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaColIndex = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaColIndex; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaColIndex, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaColIndex, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaColIndex, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaColIndex, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaColIndex = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaColIndex = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaColIndex, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaColSpan = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaColSpan; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaColSpan 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaColIndex, set object'); break - case "function": - console.log("[*] Element_get_ariaColSpan 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaColIndex, set function'); break default: - // string number - console.log("[*] Element_get_ariaColSpan 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaColIndex = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaColIndex, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaColSpan = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaColSpan; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaColSpan, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaColSpan, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaColSpan, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaColSpan, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaColSpan = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaColSpan = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaColSpan, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaCurrent = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaCurrent; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaCurrent 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaColSpan, set object'); break - case "function": - console.log("[*] Element_get_ariaCurrent 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaColSpan, set function'); break default: - // string number - console.log("[*] Element_get_ariaCurrent 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaColSpan = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaColSpan, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaCurrent = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaCurrent; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaCurrent, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaCurrent, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaCurrent, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaCurrent, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaCurrent = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaCurrent = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaCurrent, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaDescription = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaDescription; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaDescription 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaCurrent, set object'); break - case "function": - console.log("[*] Element_get_ariaDescription 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaCurrent, set function'); break default: - // string number - console.log("[*] Element_get_ariaDescription 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaCurrent = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaCurrent, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaDescription = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaDescription; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaDescription, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaDescription, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaDescription, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaDescription, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaDescription = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaDescription = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaDescription, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaDisabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaDisabled; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaDisabled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaDescription, set object'); break - case "function": - console.log("[*] Element_get_ariaDisabled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaDescription, set function'); break default: - // string number - console.log("[*] Element_get_ariaDisabled 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaDescription = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaDescription, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaDisabled = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaDisabled; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaDisabled, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaDisabled, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaDisabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaDisabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaDisabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaDisabled = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaDisabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaExpanded = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaExpanded; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaExpanded 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaDisabled, set object'); break - case "function": - console.log("[*] Element_get_ariaExpanded 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaDisabled, set function'); break default: - // string number - console.log("[*] Element_get_ariaExpanded 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaDisabled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaDisabled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaExpanded = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaExpanded; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaExpanded, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaExpanded, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaExpanded, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaExpanded, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaExpanded = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaExpanded = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaExpanded, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaHasPopup = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaHasPopup; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaHasPopup 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaExpanded, set object'); break - case "function": - console.log("[*] Element_get_ariaHasPopup 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaExpanded, set function'); break default: - // string number - console.log("[*] Element_get_ariaHasPopup 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaExpanded = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaExpanded, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaHasPopup = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaHasPopup; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaHasPopup, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaHasPopup, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaHasPopup, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaHasPopup, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaHasPopup = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaHasPopup = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaHasPopup, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaHidden = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaHidden; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaHidden 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaHasPopup, set object'); break - case "function": - console.log("[*] Element_get_ariaHidden 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaHasPopup, set function'); break default: - // string number - console.log("[*] Element_get_ariaHidden 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaHasPopup = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaHasPopup, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaHidden = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaHidden; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaHidden, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaHidden, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaHidden, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaHidden, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaHidden = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaHidden = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaHidden, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaInvalid = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaInvalid; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaInvalid 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaHidden, set object'); break - case "function": - console.log("[*] Element_get_ariaInvalid 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaHidden, set function'); break default: - // string number - console.log("[*] Element_get_ariaInvalid 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaHidden = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaHidden, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaInvalid = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaInvalid; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaInvalid, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaInvalid, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaInvalid, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaInvalid, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaInvalid = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaInvalid = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaInvalid, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaKeyShortcuts = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaKeyShortcuts; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaKeyShortcuts 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaInvalid, set object'); break - case "function": - console.log("[*] Element_get_ariaKeyShortcuts 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaInvalid, set function'); break default: - // string number - console.log("[*] Element_get_ariaKeyShortcuts 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaInvalid = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaInvalid, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaKeyShortcuts = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaKeyShortcuts; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaKeyShortcuts, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaKeyShortcuts, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaKeyShortcuts, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaKeyShortcuts, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaKeyShortcuts = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaKeyShortcuts = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaKeyShortcuts, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaLabel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaLabel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaLabel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaKeyShortcuts, set object'); break - case "function": - console.log("[*] Element_get_ariaLabel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaKeyShortcuts, set function'); break default: - // string number - console.log("[*] Element_get_ariaLabel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaKeyShortcuts = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaKeyShortcuts, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaLabel = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaLabel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaLabel, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaLabel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaLabel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaLabel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaLabel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaLabel = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaLabel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaLevel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaLevel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaLevel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaLabel, set object'); break - case "function": - console.log("[*] Element_get_ariaLevel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaLabel, set function'); break default: - // string number - console.log("[*] Element_get_ariaLevel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaLabel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaLabel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaLevel = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaLevel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaLevel, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaLevel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaLevel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaLevel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaLevel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaLevel = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaLevel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaLive = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaLive; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaLive 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaLevel, set object'); break - case "function": - console.log("[*] Element_get_ariaLive 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaLevel, set function'); break default: - // string number - console.log("[*] Element_get_ariaLive 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaLevel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaLevel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaLive = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaLive; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaLive, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaLive, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaLive, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaLive, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaLive = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaLive = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaLive, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaModal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaModal; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaModal 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaLive, set object'); break - case "function": - console.log("[*] Element_get_ariaModal 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaLive, set function'); break default: - // string number - console.log("[*] Element_get_ariaModal 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaLive = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaLive, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaModal = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaModal; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaModal, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaModal, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaModal, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaModal, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaModal = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaModal = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaModal, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaMultiLine = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaMultiLine; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaMultiLine 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaModal, set object'); break - case "function": - console.log("[*] Element_get_ariaMultiLine 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaModal, set function'); break default: - // string number - console.log("[*] Element_get_ariaMultiLine 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaModal = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaModal, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaMultiLine = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaMultiLine; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaMultiLine, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaMultiLine, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaMultiLine, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaMultiLine, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaMultiLine = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaMultiLine = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaMultiLine, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaMultiSelectable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaMultiSelectable; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaMultiSelectable 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaMultiLine, set object'); break - case "function": - console.log("[*] Element_get_ariaMultiSelectable 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaMultiLine, set function'); break default: - // string number - console.log("[*] Element_get_ariaMultiSelectable 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaMultiLine = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaMultiLine, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaMultiSelectable = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaMultiSelectable; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaMultiSelectable, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaMultiSelectable, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaMultiSelectable, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaMultiSelectable, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaMultiSelectable = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaMultiSelectable = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaMultiSelectable, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaOrientation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaOrientation; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaOrientation 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaMultiSelectable, set object'); break - case "function": - console.log("[*] Element_get_ariaOrientation 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaMultiSelectable, set function'); break default: - // string number - console.log("[*] Element_get_ariaOrientation 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaMultiSelectable = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaMultiSelectable, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaOrientation = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaOrientation; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaOrientation, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaOrientation, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaOrientation, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaOrientation, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaOrientation = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaOrientation = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaOrientation, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaPlaceholder = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaPlaceholder; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaPlaceholder 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaOrientation, set object'); break - case "function": - console.log("[*] Element_get_ariaPlaceholder 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaOrientation, set function'); break default: - // string number - console.log("[*] Element_get_ariaPlaceholder 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaOrientation = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaOrientation, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaPlaceholder = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaPlaceholder; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaPlaceholder, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaPlaceholder, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaPlaceholder, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaPlaceholder, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaPlaceholder = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaPlaceholder = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaPlaceholder, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaPosInSet = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaPosInSet; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaPosInSet 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaPlaceholder, set object'); break - case "function": - console.log("[*] Element_get_ariaPosInSet 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaPlaceholder, set function'); break default: - // string number - console.log("[*] Element_get_ariaPosInSet 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaPlaceholder = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaPlaceholder, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaPosInSet = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaPosInSet; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaPosInSet, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaPosInSet, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaPosInSet, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaPosInSet, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaPosInSet = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaPosInSet = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaPosInSet, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaPressed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaPressed; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaPressed 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaPosInSet, set object'); break - case "function": - console.log("[*] Element_get_ariaPressed 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaPosInSet, set function'); break default: - // string number - console.log("[*] Element_get_ariaPressed 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaPosInSet = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaPosInSet, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaPressed = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaPressed; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaPressed, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaPressed, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaPressed, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaPressed, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaPressed = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaPressed = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaPressed, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaReadOnly = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaReadOnly; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaReadOnly 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaPressed, set object'); break - case "function": - console.log("[*] Element_get_ariaReadOnly 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaPressed, set function'); break default: - // string number - console.log("[*] Element_get_ariaReadOnly 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaPressed = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaPressed, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaReadOnly = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaReadOnly; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaReadOnly, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaReadOnly, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaReadOnly, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaReadOnly, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaReadOnly = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaReadOnly = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaReadOnly, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaRelevant = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaRelevant; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaRelevant 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaReadOnly, set object'); break - case "function": - console.log("[*] Element_get_ariaRelevant 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaReadOnly, set function'); break default: - // string number - console.log("[*] Element_get_ariaRelevant 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaReadOnly = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaReadOnly, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaRelevant = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaRelevant; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaRelevant, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaRelevant, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaRelevant, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaRelevant, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaRelevant = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaRelevant = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaRelevant, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaRequired = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaRequired; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaRequired 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaRelevant, set object'); break - case "function": - console.log("[*] Element_get_ariaRequired 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaRelevant, set function'); break default: - // string number - console.log("[*] Element_get_ariaRequired 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaRelevant = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaRelevant, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaRequired = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaRequired; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaRequired, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaRequired, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaRequired, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaRequired, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaRequired = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaRequired = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaRequired, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaRoleDescription = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaRoleDescription; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaRoleDescription 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaRequired, set object'); break - case "function": - console.log("[*] Element_get_ariaRoleDescription 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaRequired, set function'); break default: - // string number - console.log("[*] Element_get_ariaRoleDescription 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaRequired = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaRequired, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaRoleDescription = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaRoleDescription; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaRoleDescription, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaRoleDescription, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaRoleDescription, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaRoleDescription, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaRoleDescription = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaRoleDescription = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaRoleDescription, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaRowCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaRowCount; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaRowCount 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaRoleDescription, set object'); break - case "function": - console.log("[*] Element_get_ariaRowCount 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaRoleDescription, set function'); break default: - // string number - console.log("[*] Element_get_ariaRowCount 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaRoleDescription = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaRoleDescription, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaRowCount = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaRowCount; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaRowCount, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaRowCount, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaRowCount, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaRowCount, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaRowCount = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaRowCount = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaRowCount, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaRowIndex = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaRowIndex; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaRowIndex 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaRowCount, set object'); break - case "function": - console.log("[*] Element_get_ariaRowIndex 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaRowCount, set function'); break default: - // string number - console.log("[*] Element_get_ariaRowIndex 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaRowCount = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaRowCount, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaRowIndex = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaRowIndex; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaRowIndex, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaRowIndex, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaRowIndex, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaRowIndex, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaRowIndex = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaRowIndex = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaRowIndex, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaRowSpan = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaRowSpan; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaRowSpan 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaRowIndex, set object'); break - case "function": - console.log("[*] Element_get_ariaRowSpan 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaRowIndex, set function'); break default: - // string number - console.log("[*] Element_get_ariaRowSpan 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaRowIndex = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaRowIndex, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaRowSpan = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaRowSpan; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaRowSpan, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaRowSpan, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaRowSpan, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaRowSpan, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaRowSpan = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaRowSpan = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaRowSpan, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaSelected = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaSelected; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaSelected 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaRowSpan, set object'); break - case "function": - console.log("[*] Element_get_ariaSelected 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaRowSpan, set function'); break default: - // string number - console.log("[*] Element_get_ariaSelected 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaRowSpan = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaRowSpan, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaSelected = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaSelected; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaSelected, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaSelected, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaSelected, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaSelected, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaSelected = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaSelected = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaSelected, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaSetSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaSetSize; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaSetSize 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaSelected, set object'); break - case "function": - console.log("[*] Element_get_ariaSetSize 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaSelected, set function'); break default: - // string number - console.log("[*] Element_get_ariaSetSize 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaSelected = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaSelected, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaSetSize = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaSetSize; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaSetSize, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaSetSize, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaSetSize, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaSetSize, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaSetSize = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaSetSize = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaSetSize, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaSort = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaSort; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaSort 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaSetSize, set object'); break - case "function": - console.log("[*] Element_get_ariaSort 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaSetSize, set function'); break default: - // string number - console.log("[*] Element_get_ariaSort 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaSetSize = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaSetSize, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaSort = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaSort; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaSort, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaSort, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaSort, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaSort, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaSort = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaSort = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaSort, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaValueMax = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaValueMax; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaValueMax 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaSort, set object'); break - case "function": - console.log("[*] Element_get_ariaValueMax 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaSort, set function'); break default: - // string number - console.log("[*] Element_get_ariaValueMax 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaSort = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaSort, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaValueMax = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaValueMax; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaValueMax, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaValueMax, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaValueMax, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaValueMax, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaValueMax = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaValueMax = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaValueMax, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaValueMin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaValueMin; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaValueMin 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaValueMax, set object'); break - case "function": - console.log("[*] Element_get_ariaValueMin 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaValueMax, set function'); break default: - // string number - console.log("[*] Element_get_ariaValueMin 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaValueMax = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaValueMax, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaValueMin = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaValueMin; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaValueMin, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaValueMin, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaValueMin, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaValueMin, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaValueMin = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaValueMin = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaValueMin, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaValueNow = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaValueNow; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaValueNow 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaValueMin, set object'); break - case "function": - console.log("[*] Element_get_ariaValueNow 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaValueMin, set function'); break default: - // string number - console.log("[*] Element_get_ariaValueNow 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaValueMin = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaValueMin, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaValueNow = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaValueNow; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaValueNow, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaValueNow, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaValueNow, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaValueNow, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaValueNow = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaValueNow = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaValueNow, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_ariaValueText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ariaValueText; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_ariaValueText 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_set_ariaValueNow, set object'); break - case "function": - console.log("[*] Element_get_ariaValueText 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_set_ariaValueNow, set function'); break default: - // string number - console.log("[*] Element_get_ariaValueText 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaValueNow = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaValueNow, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_ariaValueText = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ariaValueText; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_get_ariaValueText, 返回object'); break + case "function": + cbb_wf.console.log('[*] Element_get_ariaValueText, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_ariaValueText, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_ariaValueText, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Element_set_ariaValueText = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ariaValueText = val; - if (cbb_wf.is_log) { - console.log("[*] Element_set_ariaValueText, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Element_get_children = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Element_set_ariaValueText, set object'); + break + case "function": + cbb_wf.console.log('[*] Element_set_ariaValueText, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ariaValueText = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_set_ariaValueText, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Element_get_children = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.children; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_children 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_children, 返回object'); break - case "function": - console.log("[*] Element_get_children 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_children, 返回function'); break default: - // string number - console.log("[*] Element_get_children 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_children, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_children, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_firstElementChild = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.firstElementChild; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_firstElementChild 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_firstElementChild, 返回object'); break - case "function": - console.log("[*] Element_get_firstElementChild 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_firstElementChild, 返回function'); break default: - // string number - console.log("[*] Element_get_firstElementChild 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_firstElementChild, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_firstElementChild, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_lastElementChild = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.lastElementChild; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_lastElementChild 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_lastElementChild, 返回object'); break - case "function": - console.log("[*] Element_get_lastElementChild 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_lastElementChild, 返回function'); break default: - // string number - console.log("[*] Element_get_lastElementChild 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_lastElementChild, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_lastElementChild, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_childElementCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.childElementCount; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_childElementCount 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_childElementCount, 返回object'); break - case "function": - console.log("[*] Element_get_childElementCount 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_childElementCount, 返回function'); break default: - // string number - console.log("[*] Element_get_childElementCount 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_childElementCount, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_childElementCount, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_previousElementSibling = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.previousElementSibling; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_previousElementSibling 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_previousElementSibling, 返回object'); break - case "function": - console.log("[*] Element_get_previousElementSibling 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_previousElementSibling, 返回function'); break default: - // string number - console.log("[*] Element_get_previousElementSibling 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_previousElementSibling, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_previousElementSibling, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_get_nextElementSibling = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Element"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.nextElementSibling; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Element_get_nextElementSibling 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Element_get_nextElementSibling, 返回object'); break - case "function": - console.log("[*] Element_get_nextElementSibling 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Element_get_nextElementSibling, 返回function'); break default: - // string number - console.log("[*] Element_get_nextElementSibling 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_get_nextElementSibling, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_get_nextElementSibling, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Element_after = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.after.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_after 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_after 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_after 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_after, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.after.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_after, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_after, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_after, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_animate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.animate.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_animate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_animate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_animate 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_animate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.animate.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_animate, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_animate, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_animate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_append = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.append.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_append 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_append 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_append 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_append, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.append.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_append, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_append, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_append, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_attachShadow = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.attachShadow.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_attachShadow 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_attachShadow 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_attachShadow 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_attachShadow, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.attachShadow.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_attachShadow, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_attachShadow, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_attachShadow, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_before = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.before.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_before 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_before 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_before 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_before, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - -this.Element_checkVisibility = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.checkVisibility.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_checkVisibility 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_checkVisibility 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_checkVisibility 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_checkVisibility, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.before.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_before, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_before, 返回function'); + break + default: + } - + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_before, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_closest = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.closest.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_closest 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_closest 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_closest 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_closest, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + cbb_wf.console.log(arguments); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.closest.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_closest, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_closest, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_closest, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_computedStyleMap = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.computedStyleMap.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_computedStyleMap 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_computedStyleMap 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_computedStyleMap 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_computedStyleMap, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - -this.Element_getAnimations = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getAnimations.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_getAnimations 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_getAnimations 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_getAnimations 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_getAnimations, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.computedStyleMap.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_computedStyleMap, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_computedStyleMap, 返回function'); + break + default: + } - + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_computedStyleMap, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_getAttribute = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getAttribute.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_getAttribute 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_getAttribute 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_getAttribute 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_getAttribute, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getAttribute.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_getAttribute, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_getAttribute, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_getAttribute, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_getAttributeNS = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getAttributeNS.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_getAttributeNS 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_getAttributeNS 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_getAttributeNS 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_getAttributeNS, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getAttributeNS.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_getAttributeNS, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_getAttributeNS, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_getAttributeNS, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_getAttributeNames = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getAttributeNames.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_getAttributeNames 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_getAttributeNames 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_getAttributeNames 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_getAttributeNames, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getAttributeNames.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_getAttributeNames, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_getAttributeNames, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_getAttributeNames, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_getAttributeNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getAttributeNode.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_getAttributeNode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_getAttributeNode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_getAttributeNode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_getAttributeNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getAttributeNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_getAttributeNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_getAttributeNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_getAttributeNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_getAttributeNodeNS = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getAttributeNodeNS.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_getAttributeNodeNS 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_getAttributeNodeNS 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_getAttributeNodeNS 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_getAttributeNodeNS, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getAttributeNodeNS.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_getAttributeNodeNS, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_getAttributeNodeNS, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_getAttributeNodeNS, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_getBoundingClientRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getBoundingClientRect.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_getBoundingClientRect 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_getBoundingClientRect 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_getBoundingClientRect 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_getBoundingClientRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getBoundingClientRect.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_getBoundingClientRect, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_getBoundingClientRect, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_getBoundingClientRect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_getClientRects = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getClientRects.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_getClientRects 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_getClientRects 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_getClientRects 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_getClientRects, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getClientRects.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_getClientRects, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_getClientRects, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_getClientRects, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_getElementsByClassName = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getElementsByClassName.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_getElementsByClassName 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_getElementsByClassName 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_getElementsByClassName 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_getElementsByClassName, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getElementsByClassName.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_getElementsByClassName, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_getElementsByClassName, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_getElementsByClassName, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_getElementsByTagName = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getElementsByTagName.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_getElementsByTagName 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_getElementsByTagName 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_getElementsByTagName 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_getElementsByTagName, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getElementsByTagName.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_getElementsByTagName, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_getElementsByTagName, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_getElementsByTagName, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Element_getElementsByTagNameNS = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getElementsByTagNameNS.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_getElementsByTagNameNS 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_getElementsByTagNameNS 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_getElementsByTagNameNS 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_getElementsByTagNameNS, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - -this.Element_hasAttribute = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hasAttribute.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_hasAttribute 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_hasAttribute 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_hasAttribute 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_hasAttribute, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getElementsByTagNameNS.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_getElementsByTagNameNS, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_getElementsByTagNameNS, 返回function'); + break + default: + } - -this.Element_hasAttributeNS = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hasAttributeNS.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_hasAttributeNS 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_hasAttributeNS 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_hasAttributeNS 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_hasAttributeNS, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_getElementsByTagNameNS, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } - -this.Element_hasAttributes = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hasAttributes.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_hasAttributes 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_hasAttributes 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_hasAttributes 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_hasAttributes, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_hasPointerCapture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hasPointerCapture.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_hasPointerCapture 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_hasPointerCapture 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_hasPointerCapture 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_hasPointerCapture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_insertAdjacentElement = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.insertAdjacentElement.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_insertAdjacentElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_insertAdjacentElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_insertAdjacentElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_insertAdjacentElement, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_insertAdjacentHTML = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.insertAdjacentHTML.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_insertAdjacentHTML 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_insertAdjacentHTML 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_insertAdjacentHTML 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_insertAdjacentHTML, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_insertAdjacentText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.insertAdjacentText.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_insertAdjacentText 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_insertAdjacentText 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_insertAdjacentText 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_insertAdjacentText, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_matches = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.matches.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_matches 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_matches 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_matches 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_matches, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_prepend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.prepend.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_prepend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_prepend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_prepend 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_prepend, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_querySelector = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.querySelector.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_querySelector 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_querySelector 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_querySelector 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_querySelector, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_querySelectorAll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.querySelectorAll.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_querySelectorAll 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_querySelectorAll 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_querySelectorAll 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_querySelectorAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_releasePointerCapture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.releasePointerCapture.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_releasePointerCapture 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_releasePointerCapture 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_releasePointerCapture 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_releasePointerCapture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_remove = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.remove.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_remove 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_remove 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_remove 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_remove, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_removeAttribute = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.removeAttribute.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_removeAttribute 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_removeAttribute 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_removeAttribute 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_removeAttribute, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_removeAttributeNS = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.removeAttributeNS.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_removeAttributeNS 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_removeAttributeNS 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_removeAttributeNS 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_removeAttributeNS, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_removeAttributeNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.removeAttributeNode.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_removeAttributeNode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_removeAttributeNode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_removeAttributeNode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_removeAttributeNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_replaceChildren = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.replaceChildren.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_replaceChildren 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_replaceChildren 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_replaceChildren 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_replaceChildren, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_replaceWith = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.replaceWith.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_replaceWith 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_replaceWith 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_replaceWith 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_replaceWith, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_requestFullscreen = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.requestFullscreen.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_requestFullscreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_requestFullscreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_requestFullscreen 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_requestFullscreen, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_requestPointerLock = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.requestPointerLock.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_requestPointerLock 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_requestPointerLock 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_requestPointerLock 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_requestPointerLock, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_scroll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.scroll.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_scroll 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_scroll 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_scroll 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_scroll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_scrollBy = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.scrollBy.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_scrollBy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_scrollBy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_scrollBy 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_scrollBy, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_scrollIntoView = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.scrollIntoView.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_scrollIntoView 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_scrollIntoView 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_scrollIntoView 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_scrollIntoView, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_scrollIntoViewIfNeeded = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.scrollIntoViewIfNeeded.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_scrollIntoViewIfNeeded 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_scrollIntoViewIfNeeded 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_scrollIntoViewIfNeeded 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_scrollIntoViewIfNeeded, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_scrollTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.scrollTo.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_scrollTo 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_scrollTo 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_scrollTo 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_scrollTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_setAttribute = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setAttribute.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_setAttribute 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_setAttribute 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_setAttribute 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_setAttribute, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_setAttributeNS = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setAttributeNS.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_setAttributeNS 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_setAttributeNS 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_setAttributeNS 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_setAttributeNS, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_setAttributeNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setAttributeNode.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_setAttributeNode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_setAttributeNode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_setAttributeNode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_setAttributeNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_setAttributeNodeNS = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setAttributeNodeNS.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_setAttributeNodeNS 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_setAttributeNodeNS 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_setAttributeNodeNS 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_setAttributeNodeNS, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_setPointerCapture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setPointerCapture.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_setPointerCapture 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_setPointerCapture 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_setPointerCapture 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_setPointerCapture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_toggleAttribute = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.toggleAttribute.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_toggleAttribute 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_toggleAttribute 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_toggleAttribute 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_toggleAttribute, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_webkitMatchesSelector = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.webkitMatchesSelector.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_webkitMatchesSelector 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_webkitMatchesSelector 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_webkitMatchesSelector 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_webkitMatchesSelector, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_webkitRequestFullScreen = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.webkitRequestFullScreen.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_webkitRequestFullScreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_webkitRequestFullScreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_webkitRequestFullScreen 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_webkitRequestFullScreen, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Element_webkitRequestFullscreen = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.webkitRequestFullscreen.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_webkitRequestFullscreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_webkitRequestFullscreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_webkitRequestFullscreen 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_webkitRequestFullscreen, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - + return result; +} + this.Element_getInnerHTML = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getInnerHTML.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_getInnerHTML 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_getInnerHTML 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_getInnerHTML 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_getInnerHTML, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - -this.Element_setHTMLUnsafe = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Element"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.setHTMLUnsafe.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Element_setHTMLUnsafe 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Element_setHTMLUnsafe 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Element_setHTMLUnsafe 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Element_setHTMLUnsafe, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getInnerHTML.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_getInnerHTML, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_getInnerHTML, 返回function'); + break + default: + } - + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_getInnerHTML, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_hasAttribute = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hasAttribute.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_hasAttribute, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_hasAttribute, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_hasAttribute, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_hasAttributeNS = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hasAttributeNS.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_hasAttributeNS, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_hasAttributeNS, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_hasAttributeNS, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_hasAttributes = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hasAttributes.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_hasAttributes, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_hasAttributes, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_hasAttributes, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_hasPointerCapture = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hasPointerCapture.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_hasPointerCapture, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_hasPointerCapture, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_hasPointerCapture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_insertAdjacentElement = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.insertAdjacentElement.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_insertAdjacentElement, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_insertAdjacentElement, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_insertAdjacentElement, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_insertAdjacentHTML = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.insertAdjacentHTML.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_insertAdjacentHTML, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_insertAdjacentHTML, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_insertAdjacentHTML, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_insertAdjacentText = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.insertAdjacentText.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_insertAdjacentText, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_insertAdjacentText, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_insertAdjacentText, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_matches = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.matches.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_matches, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_matches, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_matches, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_prepend = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.prepend.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_prepend, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_prepend, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_prepend, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_querySelector = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.querySelector.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_querySelector, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_querySelector, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_querySelector, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_querySelectorAll = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.querySelectorAll.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_querySelectorAll, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_querySelectorAll, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_querySelectorAll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_releasePointerCapture = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.releasePointerCapture.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_releasePointerCapture, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_releasePointerCapture, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_releasePointerCapture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_remove = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.remove.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_remove, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_remove, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_remove, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_removeAttribute = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.removeAttribute.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_removeAttribute, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_removeAttribute, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_removeAttribute, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_removeAttributeNS = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.removeAttributeNS.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_removeAttributeNS, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_removeAttributeNS, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_removeAttributeNS, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_removeAttributeNode = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.removeAttributeNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_removeAttributeNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_removeAttributeNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_removeAttributeNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_replaceChildren = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.replaceChildren.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_replaceChildren, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_replaceChildren, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_replaceChildren, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_replaceWith = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.replaceWith.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_replaceWith, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_replaceWith, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_replaceWith, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_requestFullscreen = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.requestFullscreen.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_requestFullscreen, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_requestFullscreen, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_requestFullscreen, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_requestPointerLock = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.requestPointerLock.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_requestPointerLock, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_requestPointerLock, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_requestPointerLock, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_scroll = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.scroll.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_scroll, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_scroll, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_scroll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_scrollBy = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.scrollBy.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_scrollBy, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_scrollBy, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_scrollBy, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_scrollIntoView = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.scrollIntoView.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_scrollIntoView, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_scrollIntoView, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_scrollIntoView, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_scrollIntoViewIfNeeded = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.scrollIntoViewIfNeeded.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_scrollIntoViewIfNeeded, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_scrollIntoViewIfNeeded, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_scrollIntoViewIfNeeded, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_scrollTo = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.scrollTo.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_scrollTo, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_scrollTo, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_scrollTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_setAttribute = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setAttribute.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_setAttribute, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_setAttribute, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_setAttribute, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_setAttributeNS = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setAttributeNS.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_setAttributeNS, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_setAttributeNS, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_setAttributeNS, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_setAttributeNode = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setAttributeNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_setAttributeNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_setAttributeNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_setAttributeNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_setAttributeNodeNS = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setAttributeNodeNS.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_setAttributeNodeNS, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_setAttributeNodeNS, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_setAttributeNodeNS, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_setPointerCapture = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setPointerCapture.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_setPointerCapture, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_setPointerCapture, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_setPointerCapture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_toggleAttribute = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.toggleAttribute.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_toggleAttribute, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_toggleAttribute, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_toggleAttribute, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_webkitMatchesSelector = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.webkitMatchesSelector.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_webkitMatchesSelector, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_webkitMatchesSelector, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_webkitMatchesSelector, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_webkitRequestFullScreen = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.webkitRequestFullScreen.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_webkitRequestFullScreen, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_webkitRequestFullScreen, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_webkitRequestFullScreen, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_webkitRequestFullscreen = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.webkitRequestFullscreen.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_webkitRequestFullscreen, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_webkitRequestFullscreen, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_webkitRequestFullscreen, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Element_getAnimations = function () { + let r = cbb_wf.checkIllegal(this, "Element"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getAnimations.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Element_getAnimations, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Element_getAnimations, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Element_getAnimations, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DynamicsCompressorNode_get_threshold = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DynamicsCompressorNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "threshold"); + + let result = cbb_wf.getValue(this, 'threshold'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DynamicsCompressorNode_get_threshold, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DynamicsCompressorNode_get_threshold, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DynamicsCompressorNode_get_knee = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DynamicsCompressorNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "knee"); + + let result = cbb_wf.getValue(this, 'knee'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DynamicsCompressorNode_get_knee, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DynamicsCompressorNode_get_knee, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DynamicsCompressorNode_get_ratio = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DynamicsCompressorNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ratio"); + + let result = cbb_wf.getValue(this, 'ratio'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DynamicsCompressorNode_get_ratio, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DynamicsCompressorNode_get_ratio, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DynamicsCompressorNode_get_reduction = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DynamicsCompressorNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "reduction"); + + let result = cbb_wf.getValue(this, 'reduction'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DynamicsCompressorNode_get_reduction, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DynamicsCompressorNode_get_reduction, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DynamicsCompressorNode_get_attack = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DynamicsCompressorNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "attack"); + + let result = cbb_wf.getValue(this, 'attack'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DynamicsCompressorNode_get_attack, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DynamicsCompressorNode_get_attack, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DynamicsCompressorNode_get_release = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DynamicsCompressorNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "release"); + + let result = cbb_wf.getValue(this, 'release'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DynamicsCompressorNode_get_release, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DynamicsCompressorNode_get_release, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DragEvent_get_dataTransfer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DragEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "dataTransfer"); + + let result = cbb_wf.getValue(this, 'dataTransfer'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DragEvent_get_dataTransfer, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DragEvent_get_dataTransfer, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.DocumentType_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DocumentType"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] DocumentType_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] DocumentType_get_name, 返回object'); break - case "function": - console.log("[*] DocumentType_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] DocumentType_get_name, 返回function'); break default: - // string number - console.log("[*] DocumentType_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentType_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentType_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.DocumentType_get_publicId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DocumentType"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.publicId; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] DocumentType_get_publicId 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] DocumentType_get_publicId, 返回object'); break - case "function": - console.log("[*] DocumentType_get_publicId 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] DocumentType_get_publicId, 返回function'); break default: - // string number - console.log("[*] DocumentType_get_publicId 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentType_get_publicId, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentType_get_publicId, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.DocumentType_get_systemId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DocumentType"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.systemId; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] DocumentType_get_systemId 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] DocumentType_get_systemId, 返回object'); break - case "function": - console.log("[*] DocumentType_get_systemId 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] DocumentType_get_systemId, 返回function'); break default: - // string number - console.log("[*] DocumentType_get_systemId 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentType_get_systemId, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentType_get_systemId, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.DocumentType_after = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentType"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.after.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DocumentType_after 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DocumentType_after 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DocumentType_after 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentType_after, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DocumentType"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.after.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DocumentType_after, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DocumentType_after, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentType_after, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.DocumentType_before = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentType"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.before.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DocumentType_before 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DocumentType_before 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DocumentType_before 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentType_before, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DocumentType"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.before.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DocumentType_before, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DocumentType_before, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentType_before, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.DocumentType_remove = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentType"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.remove.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DocumentType_remove 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DocumentType_remove 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DocumentType_remove 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentType_remove, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DocumentType"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.remove.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DocumentType_remove, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DocumentType_remove, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentType_remove, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.DocumentType_replaceWith = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentType"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.replaceWith.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DocumentType_replaceWith 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DocumentType_replaceWith 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DocumentType_replaceWith 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentType_replaceWith, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DocumentType"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.replaceWith.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DocumentType_replaceWith, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DocumentType_replaceWith, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentType_replaceWith, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.DocumentFragment_get_children = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DocumentFragment"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.children; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] DocumentFragment_get_children 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] DocumentFragment_get_children, 返回object'); break - case "function": - console.log("[*] DocumentFragment_get_children 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] DocumentFragment_get_children, 返回function'); break default: - // string number - console.log("[*] DocumentFragment_get_children 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentFragment_get_children, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentFragment_get_children, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.DocumentFragment_get_firstElementChild = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DocumentFragment"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.firstElementChild; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] DocumentFragment_get_firstElementChild 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] DocumentFragment_get_firstElementChild, 返回object'); break - case "function": - console.log("[*] DocumentFragment_get_firstElementChild 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] DocumentFragment_get_firstElementChild, 返回function'); break default: - // string number - console.log("[*] DocumentFragment_get_firstElementChild 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentFragment_get_firstElementChild, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentFragment_get_firstElementChild, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.DocumentFragment_get_lastElementChild = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DocumentFragment"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.lastElementChild; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] DocumentFragment_get_lastElementChild 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] DocumentFragment_get_lastElementChild, 返回object'); break - case "function": - console.log("[*] DocumentFragment_get_lastElementChild 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] DocumentFragment_get_lastElementChild, 返回function'); break default: - // string number - console.log("[*] DocumentFragment_get_lastElementChild 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentFragment_get_lastElementChild, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentFragment_get_lastElementChild, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.DocumentFragment_get_childElementCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DocumentFragment"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.childElementCount; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] DocumentFragment_get_childElementCount 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] DocumentFragment_get_childElementCount, 返回object'); break - case "function": - console.log("[*] DocumentFragment_get_childElementCount 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] DocumentFragment_get_childElementCount, 返回function'); break default: - // string number - console.log("[*] DocumentFragment_get_childElementCount 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentFragment_get_childElementCount, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentFragment_get_childElementCount, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.DocumentFragment_append = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentFragment"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.append.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DocumentFragment_append 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DocumentFragment_append 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DocumentFragment_append 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentFragment_append, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.DocumentFragment_getElementById = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentFragment"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getElementById.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DocumentFragment_getElementById 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DocumentFragment_getElementById 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DocumentFragment_getElementById 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentFragment_getElementById, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.DocumentFragment_prepend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentFragment"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.prepend.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DocumentFragment_prepend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DocumentFragment_prepend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DocumentFragment_prepend 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentFragment_prepend, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.DocumentFragment_querySelector = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentFragment"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.querySelector.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DocumentFragment_querySelector 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DocumentFragment_querySelector 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DocumentFragment_querySelector 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentFragment_querySelector, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.DocumentFragment_querySelectorAll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentFragment"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.querySelectorAll.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DocumentFragment_querySelectorAll 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DocumentFragment_querySelectorAll 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DocumentFragment_querySelectorAll 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentFragment_querySelectorAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.DocumentFragment_replaceChildren = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentFragment"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.replaceChildren.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DocumentFragment_replaceChildren 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DocumentFragment_replaceChildren 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DocumentFragment_replaceChildren 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentFragment_replaceChildren, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_parseHTMLUnsafe = function () { -let r = cbb_wf.checkIllegal(this, "Document"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_parseHTMLUnsafe, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; +this.DocumentFragment_append = function () { + let r = cbb_wf.checkIllegal(this, "DocumentFragment"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.append.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DocumentFragment_append, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DocumentFragment_append, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentFragment_append, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; } + +this.DocumentFragment_getElementById = function () { + let r = cbb_wf.checkIllegal(this, "DocumentFragment"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getElementById.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DocumentFragment_getElementById, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DocumentFragment_getElementById, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentFragment_getElementById, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.DocumentFragment_prepend = function () { + let r = cbb_wf.checkIllegal(this, "DocumentFragment"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.prepend.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DocumentFragment_prepend, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DocumentFragment_prepend, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentFragment_prepend, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.DocumentFragment_querySelector = function () { + let r = cbb_wf.checkIllegal(this, "DocumentFragment"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.querySelector.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DocumentFragment_querySelector, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DocumentFragment_querySelector, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentFragment_querySelector, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.DocumentFragment_querySelectorAll = function () { + let r = cbb_wf.checkIllegal(this, "DocumentFragment"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.querySelectorAll.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DocumentFragment_querySelectorAll, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DocumentFragment_querySelectorAll, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentFragment_querySelectorAll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.DocumentFragment_replaceChildren = function () { + let r = cbb_wf.checkIllegal(this, "DocumentFragment"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.replaceChildren.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DocumentFragment_replaceChildren, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DocumentFragment_replaceChildren, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DocumentFragment_replaceChildren, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.Document_get_implementation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.implementation; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_implementation 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_implementation, 返回object'); break - case "function": - console.log("[*] Document_get_implementation 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_implementation, 返回function'); break default: - // string number - console.log("[*] Document_get_implementation 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_implementation, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_implementation, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_URL = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.URL; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_URL 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_URL, 返回object'); break - case "function": - console.log("[*] Document_get_URL 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_URL, 返回function'); break default: - // string number - console.log("[*] Document_get_URL 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_URL, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_URL, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_documentURI = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.documentURI; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_documentURI 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_documentURI, 返回object'); break - case "function": - console.log("[*] Document_get_documentURI 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_documentURI, 返回function'); break default: - // string number - console.log("[*] Document_get_documentURI 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_documentURI, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_documentURI, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_compatMode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.compatMode; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_compatMode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_compatMode, 返回object'); break - case "function": - console.log("[*] Document_get_compatMode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_compatMode, 返回function'); break default: - // string number - console.log("[*] Document_get_compatMode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_compatMode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_compatMode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_characterSet = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.characterSet; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_characterSet 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_characterSet, 返回object'); break - case "function": - console.log("[*] Document_get_characterSet 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_characterSet, 返回function'); break default: - // string number - console.log("[*] Document_get_characterSet 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_characterSet, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_characterSet, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_charset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.charset; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_charset 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_charset, 返回object'); break - case "function": - console.log("[*] Document_get_charset 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_charset, 返回function'); break default: - // string number - console.log("[*] Document_get_charset 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_charset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_charset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_inputEncoding = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.inputEncoding; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_inputEncoding 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_inputEncoding, 返回object'); break - case "function": - console.log("[*] Document_get_inputEncoding 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_inputEncoding, 返回function'); break default: - // string number - console.log("[*] Document_get_inputEncoding 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_inputEncoding, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_inputEncoding, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_contentType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.contentType; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_contentType 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_contentType, 返回object'); break - case "function": - console.log("[*] Document_get_contentType 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_contentType, 返回function'); break default: - // string number - console.log("[*] Document_get_contentType 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_contentType, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_contentType, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_doctype = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.doctype; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_doctype 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_doctype, 返回object'); break - case "function": - console.log("[*] Document_get_doctype 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_doctype, 返回function'); break default: - // string number - console.log("[*] Document_get_doctype 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_doctype, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_doctype, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_documentElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.documentElement; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_documentElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_documentElement, 返回object'); break - case "function": - console.log("[*] Document_get_documentElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_documentElement, 返回function'); break default: - // string number - console.log("[*] Document_get_documentElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_documentElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_documentElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_xmlEncoding = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.xmlEncoding; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_xmlEncoding 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_xmlEncoding, 返回object'); break - case "function": - console.log("[*] Document_get_xmlEncoding 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_xmlEncoding, 返回function'); break default: - // string number - console.log("[*] Document_get_xmlEncoding 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_xmlEncoding, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_xmlEncoding, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_xmlVersion = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.xmlVersion; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_xmlVersion 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_xmlVersion, 返回object'); break - case "function": - console.log("[*] Document_get_xmlVersion 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_xmlVersion, 返回function'); break default: - // string number - console.log("[*] Document_get_xmlVersion 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_xmlVersion, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_xmlVersion, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_xmlVersion = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.xmlVersion = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_xmlVersion, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_xmlStandalone = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.xmlStandalone; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_xmlStandalone 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_xmlVersion, set object'); break - case "function": - console.log("[*] Document_get_xmlStandalone 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_xmlVersion, set function'); break default: - // string number - console.log("[*] Document_get_xmlStandalone 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.xmlVersion = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_xmlVersion, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_xmlStandalone = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.xmlStandalone; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_xmlStandalone, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_xmlStandalone, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_xmlStandalone, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_xmlStandalone, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_xmlStandalone = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.xmlStandalone = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_xmlStandalone, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_domain = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.domain; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_domain 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_xmlStandalone, set object'); break - case "function": - console.log("[*] Document_get_domain 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_xmlStandalone, set function'); break default: - // string number - console.log("[*] Document_get_domain 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.xmlStandalone = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_xmlStandalone, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_domain = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.domain; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_domain, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_domain, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_domain, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_domain, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_domain = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.domain = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_domain, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_referrer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.referrer; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_referrer 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_domain, set object'); break - case "function": - console.log("[*] Document_get_referrer 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_domain, set function'); break default: - // string number - console.log("[*] Document_get_referrer 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.domain = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_domain, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_referrer = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.referrer; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_referrer, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_referrer, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_referrer, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_referrer, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_cookie = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.cookie; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_cookie 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_cookie, 返回object'); break - case "function": - console.log("[*] Document_get_cookie 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_cookie, 返回function'); break default: - // string number - console.log("[*] Document_get_cookie 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_cookie, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_cookie, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_cookie = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.cookie = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_cookie, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_lastModified = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Document_set_cookie, set object'); + break + case "function": + cbb_wf.console.log('[*] Document_set_cookie, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.cookie = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_cookie, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_lastModified = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.lastModified; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_lastModified 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_lastModified, 返回object'); break - case "function": - console.log("[*] Document_get_lastModified 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_lastModified, 返回function'); break default: - // string number - console.log("[*] Document_get_lastModified 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_lastModified, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_lastModified, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_readyState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.readyState; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_readyState 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_readyState, 返回object'); break - case "function": - console.log("[*] Document_get_readyState 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_readyState, 返回function'); break default: - // string number - console.log("[*] Document_get_readyState 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_readyState, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_readyState, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_title = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.title; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_title 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_title, 返回object'); break - case "function": - console.log("[*] Document_get_title 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_title, 返回function'); break default: - // string number - console.log("[*] Document_get_title 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_title, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_title, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_title = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.title = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_title, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_dir = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.dir; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_dir 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_title, set object'); break - case "function": - console.log("[*] Document_get_dir 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_title, set function'); break default: - // string number - console.log("[*] Document_get_dir 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.title = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_title, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_dir = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.dir; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_dir, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_dir, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_dir, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_dir, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_dir = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.dir = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_dir, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_body = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.body; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_body 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_dir, set object'); break - case "function": - console.log("[*] Document_get_body 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_dir, set function'); break default: - // string number - console.log("[*] Document_get_body 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.dir = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_dir, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_body = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.body; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_body, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_body, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_body, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_body, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_body = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.body = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_body, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_head = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Document_set_body, set object'); + break + case "function": + cbb_wf.console.log('[*] Document_set_body, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.body = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_body, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_head = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.head; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_head 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_head, 返回object'); break - case "function": - console.log("[*] Document_get_head 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_head, 返回function'); break default: - // string number - console.log("[*] Document_get_head 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_head, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_head, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_images = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.images; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_images 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_images, 返回object'); break - case "function": - console.log("[*] Document_get_images 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_images, 返回function'); break default: - // string number - console.log("[*] Document_get_images 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_images, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_images, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_embeds = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.embeds; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_embeds 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_embeds, 返回object'); break - case "function": - console.log("[*] Document_get_embeds 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_embeds, 返回function'); break default: - // string number - console.log("[*] Document_get_embeds 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_embeds, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_embeds, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_plugins = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.plugins; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_plugins 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_plugins, 返回object'); break - case "function": - console.log("[*] Document_get_plugins 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_plugins, 返回function'); break default: - // string number - console.log("[*] Document_get_plugins 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_plugins, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_plugins, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_links = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.links; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_links 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_links, 返回object'); break - case "function": - console.log("[*] Document_get_links 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_links, 返回function'); break default: - // string number - console.log("[*] Document_get_links 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_links, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_links, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_forms = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.forms; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_forms 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_forms, 返回object'); break - case "function": - console.log("[*] Document_get_forms 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_forms, 返回function'); break default: - // string number - console.log("[*] Document_get_forms 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_forms, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_forms, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_scripts = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.scripts; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_scripts 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_scripts, 返回object'); break - case "function": - console.log("[*] Document_get_scripts 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_scripts, 返回function'); break default: - // string number - console.log("[*] Document_get_scripts 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_scripts, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_scripts, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_currentScript = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.currentScript; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_currentScript 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_currentScript, 返回object'); break - case "function": - console.log("[*] Document_get_currentScript 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_currentScript, 返回function'); break default: - // string number - console.log("[*] Document_get_currentScript 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_currentScript, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_currentScript, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_defaultView = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.defaultView; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_defaultView 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_defaultView, 返回object'); break - case "function": - console.log("[*] Document_get_defaultView 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_defaultView, 返回function'); break default: - // string number - console.log("[*] Document_get_defaultView 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_defaultView, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_defaultView, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_designMode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.designMode; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_designMode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_designMode, 返回object'); break - case "function": - console.log("[*] Document_get_designMode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_designMode, 返回function'); break default: - // string number - console.log("[*] Document_get_designMode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_designMode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_designMode, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_designMode = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.designMode = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_designMode, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onreadystatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onreadystatechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onreadystatechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_designMode, set object'); break - case "function": - console.log("[*] Document_get_onreadystatechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_designMode, set function'); break default: - // string number - console.log("[*] Document_get_onreadystatechange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.designMode = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_designMode, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onreadystatechange = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onreadystatechange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onreadystatechange, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onreadystatechange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onreadystatechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onreadystatechange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onreadystatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onreadystatechange = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onreadystatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_anchors = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Document_set_onreadystatechange, set object'); + break + case "function": + cbb_wf.console.log('[*] Document_set_onreadystatechange, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onreadystatechange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onreadystatechange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_anchors = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.anchors; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_anchors 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_anchors, 返回object'); break - case "function": - console.log("[*] Document_get_anchors 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_anchors, 返回function'); break default: - // string number - console.log("[*] Document_get_anchors 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_anchors, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_anchors, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_applets = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.applets; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_applets 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_applets, 返回object'); break - case "function": - console.log("[*] Document_get_applets 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_applets, 返回function'); break default: - // string number - console.log("[*] Document_get_applets 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_applets, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_applets, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_fgColor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.fgColor; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_fgColor 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_fgColor, 返回object'); break - case "function": - console.log("[*] Document_get_fgColor 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_fgColor, 返回function'); break default: - // string number - console.log("[*] Document_get_fgColor 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_fgColor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_fgColor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_fgColor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.fgColor = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_fgColor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_linkColor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.linkColor; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_linkColor 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_fgColor, set object'); break - case "function": - console.log("[*] Document_get_linkColor 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_fgColor, set function'); break default: - // string number - console.log("[*] Document_get_linkColor 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.fgColor = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_fgColor, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_linkColor = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.linkColor; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_linkColor, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_linkColor, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_linkColor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_linkColor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_linkColor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.linkColor = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_linkColor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_vlinkColor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.vlinkColor; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_vlinkColor 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_linkColor, set object'); break - case "function": - console.log("[*] Document_get_vlinkColor 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_linkColor, set function'); break default: - // string number - console.log("[*] Document_get_vlinkColor 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.linkColor = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_linkColor, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_vlinkColor = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.vlinkColor; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_vlinkColor, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_vlinkColor, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_vlinkColor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_vlinkColor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_vlinkColor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.vlinkColor = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_vlinkColor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_alinkColor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.alinkColor; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_alinkColor 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_vlinkColor, set object'); break - case "function": - console.log("[*] Document_get_alinkColor 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_vlinkColor, set function'); break default: - // string number - console.log("[*] Document_get_alinkColor 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.vlinkColor = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_vlinkColor, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_alinkColor = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.alinkColor; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_alinkColor, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_alinkColor, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_alinkColor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_alinkColor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_alinkColor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.alinkColor = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_alinkColor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_bgColor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.bgColor; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_bgColor 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_alinkColor, set object'); break - case "function": - console.log("[*] Document_get_bgColor 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_alinkColor, set function'); break default: - // string number - console.log("[*] Document_get_bgColor 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.alinkColor = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_alinkColor, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_bgColor = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.bgColor; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_bgColor, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_bgColor, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_bgColor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_bgColor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_bgColor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.bgColor = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_bgColor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_all = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Document_set_bgColor, set object'); + break + case "function": + cbb_wf.console.log('[*] Document_set_bgColor, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.bgColor = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_bgColor, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_all = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.all; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_all 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_all, 返回object'); break - case "function": - console.log("[*] Document_get_all 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_all, 返回function'); break default: - // string number - console.log("[*] Document_get_all 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_all, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_all, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_scrollingElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.scrollingElement; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_scrollingElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_scrollingElement, 返回object'); break - case "function": - console.log("[*] Document_get_scrollingElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_scrollingElement, 返回function'); break default: - // string number - console.log("[*] Document_get_scrollingElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_scrollingElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_scrollingElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_onpointerlockchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.onpointerlockchange; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onpointerlockchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_onpointerlockchange, 返回object'); break - case "function": - console.log("[*] Document_get_onpointerlockchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_onpointerlockchange, 返回function'); break default: - // string number - console.log("[*] Document_get_onpointerlockchange 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onpointerlockchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onpointerlockchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onpointerlockchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerlockchange = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onpointerlockchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onpointerlockerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerlockerror; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onpointerlockerror 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onpointerlockchange, set object'); break - case "function": - console.log("[*] Document_get_onpointerlockerror 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onpointerlockchange, set function'); break default: - // string number - console.log("[*] Document_get_onpointerlockerror 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerlockchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onpointerlockchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onpointerlockerror = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerlockerror; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onpointerlockerror, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onpointerlockerror, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onpointerlockerror, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onpointerlockerror, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onpointerlockerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerlockerror = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onpointerlockerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_hidden = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Document_set_onpointerlockerror, set object'); + break + case "function": + cbb_wf.console.log('[*] Document_set_onpointerlockerror, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerlockerror = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onpointerlockerror, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_hidden = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.hidden; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_hidden 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_hidden, 返回object'); break - case "function": - console.log("[*] Document_get_hidden 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_hidden, 返回function'); break default: - // string number - console.log("[*] Document_get_hidden 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_hidden, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_hidden, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_visibilityState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.visibilityState; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_visibilityState 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_visibilityState, 返回object'); break - case "function": - console.log("[*] Document_get_visibilityState 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_visibilityState, 返回function'); break default: - // string number - console.log("[*] Document_get_visibilityState 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_visibilityState, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_visibilityState, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_wasDiscarded = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.wasDiscarded; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_wasDiscarded 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_wasDiscarded, 返回object'); break - case "function": - console.log("[*] Document_get_wasDiscarded 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_wasDiscarded, 返回function'); break default: - // string number - console.log("[*] Document_get_wasDiscarded 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_wasDiscarded, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_wasDiscarded, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.Document_get_prerendering = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.prerendering; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_prerendering 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] Document_get_prerendering 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_get_prerendering 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_prerendering, this =>", this + '', ", result =>", result + '', info); - } - return result; -} this.Document_get_featurePolicy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.featurePolicy; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_featurePolicy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_featurePolicy, 返回object'); break - case "function": - console.log("[*] Document_get_featurePolicy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_featurePolicy, 返回function'); break default: - // string number - console.log("[*] Document_get_featurePolicy 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_featurePolicy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_featurePolicy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_webkitVisibilityState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.webkitVisibilityState; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_webkitVisibilityState 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_webkitVisibilityState, 返回object'); break - case "function": - console.log("[*] Document_get_webkitVisibilityState 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_webkitVisibilityState, 返回function'); break default: - // string number - console.log("[*] Document_get_webkitVisibilityState 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_webkitVisibilityState, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_webkitVisibilityState, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_webkitHidden = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.webkitHidden; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_webkitHidden 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_webkitHidden, 返回object'); break - case "function": - console.log("[*] Document_get_webkitHidden 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_webkitHidden, 返回function'); break default: - // string number - console.log("[*] Document_get_webkitHidden 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_webkitHidden, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_webkitHidden, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_onbeforecopy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.onbeforecopy; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onbeforecopy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_onbeforecopy, 返回object'); break - case "function": - console.log("[*] Document_get_onbeforecopy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_onbeforecopy, 返回function'); break default: - // string number - console.log("[*] Document_get_onbeforecopy 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onbeforecopy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onbeforecopy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onbeforecopy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforecopy = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onbeforecopy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onbeforecut = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforecut; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onbeforecut 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onbeforecopy, set object'); break - case "function": - console.log("[*] Document_get_onbeforecut 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onbeforecopy, set function'); break default: - // string number - console.log("[*] Document_get_onbeforecut 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforecopy = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onbeforecopy, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onbeforecut = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onbeforecut; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onbeforecut, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onbeforecut, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onbeforecut, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onbeforecut, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onbeforecut = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforecut = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onbeforecut, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onbeforepaste = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforepaste; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onbeforepaste 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onbeforecut, set object'); break - case "function": - console.log("[*] Document_get_onbeforepaste 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onbeforecut, set function'); break default: - // string number - console.log("[*] Document_get_onbeforepaste 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforecut = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onbeforecut, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onbeforepaste = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onbeforepaste; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onbeforepaste, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onbeforepaste, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onbeforepaste, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onbeforepaste, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onbeforepaste = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforepaste = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onbeforepaste, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onfreeze = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onfreeze; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onfreeze 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onbeforepaste, set object'); break - case "function": - console.log("[*] Document_get_onfreeze 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onbeforepaste, set function'); break default: - // string number - console.log("[*] Document_get_onfreeze 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforepaste = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onbeforepaste, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onfreeze = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onfreeze; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onfreeze, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onfreeze, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onfreeze, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onfreeze, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onfreeze = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onfreeze = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onfreeze, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onprerenderingchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onprerenderingchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onprerenderingchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onfreeze, set object'); break - case "function": - console.log("[*] Document_get_onprerenderingchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onfreeze, set function'); break default: - // string number - console.log("[*] Document_get_onprerenderingchange 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onfreeze = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onprerenderingchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onfreeze, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.Document_set_onprerenderingchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onprerenderingchange = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onprerenderingchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.Document_get_onresume = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.onresume; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onresume 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_onresume, 返回object'); break - case "function": - console.log("[*] Document_get_onresume 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_onresume, 返回function'); break default: - // string number - console.log("[*] Document_get_onresume 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onresume, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onresume, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onresume = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onresume = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onresume, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onsearch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onsearch; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onsearch 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onresume, set object'); break - case "function": - console.log("[*] Document_get_onsearch 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onresume, set function'); break default: - // string number - console.log("[*] Document_get_onsearch 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onresume = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onresume, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onsearch = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onsearch; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onsearch, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onsearch, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onsearch, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onsearch, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onsearch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onsearch = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onsearch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onvisibilitychange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onvisibilitychange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onvisibilitychange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onsearch, set object'); break - case "function": - console.log("[*] Document_get_onvisibilitychange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onsearch, set function'); break default: - // string number - console.log("[*] Document_get_onvisibilitychange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onsearch = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onsearch, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onvisibilitychange = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onvisibilitychange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onvisibilitychange, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onvisibilitychange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onvisibilitychange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onvisibilitychange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onvisibilitychange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onvisibilitychange = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onvisibilitychange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_timeline = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.timeline; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_timeline 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onvisibilitychange, set object'); break - case "function": - console.log("[*] Document_get_timeline 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onvisibilitychange, set function'); break default: - // string number - console.log("[*] Document_get_timeline 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onvisibilitychange = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_timeline, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onvisibilitychange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } this.Document_get_fullscreenEnabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.fullscreenEnabled; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_fullscreenEnabled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_fullscreenEnabled, 返回object'); break - case "function": - console.log("[*] Document_get_fullscreenEnabled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_fullscreenEnabled, 返回function'); break default: - // string number - console.log("[*] Document_get_fullscreenEnabled 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_fullscreenEnabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_fullscreenEnabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_fullscreenEnabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.fullscreenEnabled = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_fullscreenEnabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_fullscreen = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.fullscreen; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_fullscreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_fullscreenEnabled, set object'); break - case "function": - console.log("[*] Document_get_fullscreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_fullscreenEnabled, set function'); break default: - // string number - console.log("[*] Document_get_fullscreen 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.fullscreenEnabled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_fullscreenEnabled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_fullscreen = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fullscreen; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_fullscreen, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_fullscreen, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_fullscreen, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_fullscreen, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_fullscreen = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.fullscreen = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_fullscreen, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onfullscreenchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onfullscreenchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onfullscreenchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_fullscreen, set object'); break - case "function": - console.log("[*] Document_get_onfullscreenchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_fullscreen, set function'); break default: - // string number - console.log("[*] Document_get_onfullscreenchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.fullscreen = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_fullscreen, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onfullscreenchange = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onfullscreenchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onfullscreenchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onfullscreenchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onfullscreenchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onfullscreenchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onfullscreenchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onfullscreenchange = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onfullscreenchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onfullscreenerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onfullscreenerror; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onfullscreenerror 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onfullscreenchange, set object'); break - case "function": - console.log("[*] Document_get_onfullscreenerror 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onfullscreenchange, set function'); break default: - // string number - console.log("[*] Document_get_onfullscreenerror 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onfullscreenchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onfullscreenchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onfullscreenerror = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onfullscreenerror; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onfullscreenerror, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onfullscreenerror, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onfullscreenerror, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onfullscreenerror, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onfullscreenerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onfullscreenerror = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onfullscreenerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_webkitIsFullScreen = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Document_set_onfullscreenerror, set object'); + break + case "function": + cbb_wf.console.log('[*] Document_set_onfullscreenerror, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onfullscreenerror = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onfullscreenerror, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_webkitIsFullScreen = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.webkitIsFullScreen; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_webkitIsFullScreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_webkitIsFullScreen, 返回object'); break - case "function": - console.log("[*] Document_get_webkitIsFullScreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_webkitIsFullScreen, 返回function'); break default: - // string number - console.log("[*] Document_get_webkitIsFullScreen 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_webkitIsFullScreen, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_webkitIsFullScreen, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_webkitCurrentFullScreenElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.webkitCurrentFullScreenElement; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_webkitCurrentFullScreenElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_webkitCurrentFullScreenElement, 返回object'); break - case "function": - console.log("[*] Document_get_webkitCurrentFullScreenElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_webkitCurrentFullScreenElement, 返回function'); break default: - // string number - console.log("[*] Document_get_webkitCurrentFullScreenElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_webkitCurrentFullScreenElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_webkitCurrentFullScreenElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_webkitFullscreenEnabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.webkitFullscreenEnabled; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_webkitFullscreenEnabled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_webkitFullscreenEnabled, 返回object'); break - case "function": - console.log("[*] Document_get_webkitFullscreenEnabled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_webkitFullscreenEnabled, 返回function'); break default: - // string number - console.log("[*] Document_get_webkitFullscreenEnabled 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_webkitFullscreenEnabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_webkitFullscreenEnabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_webkitFullscreenElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.webkitFullscreenElement; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_webkitFullscreenElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_webkitFullscreenElement, 返回object'); break - case "function": - console.log("[*] Document_get_webkitFullscreenElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_webkitFullscreenElement, 返回function'); break default: - // string number - console.log("[*] Document_get_webkitFullscreenElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_webkitFullscreenElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_webkitFullscreenElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_onwebkitfullscreenchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.onwebkitfullscreenchange; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onwebkitfullscreenchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_onwebkitfullscreenchange, 返回object'); break - case "function": - console.log("[*] Document_get_onwebkitfullscreenchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_onwebkitfullscreenchange, 返回function'); break default: - // string number - console.log("[*] Document_get_onwebkitfullscreenchange 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onwebkitfullscreenchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onwebkitfullscreenchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onwebkitfullscreenchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkitfullscreenchange = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onwebkitfullscreenchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onwebkitfullscreenerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkitfullscreenerror; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onwebkitfullscreenerror 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onwebkitfullscreenchange, set object'); break - case "function": - console.log("[*] Document_get_onwebkitfullscreenerror 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onwebkitfullscreenchange, set function'); break default: - // string number - console.log("[*] Document_get_onwebkitfullscreenerror 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkitfullscreenchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onwebkitfullscreenchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onwebkitfullscreenerror = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkitfullscreenerror; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onwebkitfullscreenerror, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onwebkitfullscreenerror, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onwebkitfullscreenerror, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onwebkitfullscreenerror, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onwebkitfullscreenerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkitfullscreenerror = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onwebkitfullscreenerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_rootElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Document_set_onwebkitfullscreenerror, set object'); + break + case "function": + cbb_wf.console.log('[*] Document_set_onwebkitfullscreenerror, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkitfullscreenerror = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onwebkitfullscreenerror, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_rootElement = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.rootElement; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_rootElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_rootElement, 返回object'); break - case "function": - console.log("[*] Document_get_rootElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_rootElement, 返回function'); break default: - // string number - console.log("[*] Document_get_rootElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_rootElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_rootElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.Document_get_pictureInPictureEnabled = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.pictureInPictureEnabled; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_pictureInPictureEnabled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] Document_get_pictureInPictureEnabled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_get_pictureInPictureEnabled 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_pictureInPictureEnabled, this =>", this + '', ", result =>", result + '', info); - } - return result; -} this.Document_get_onbeforexrselect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.onbeforexrselect; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onbeforexrselect 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_onbeforexrselect, 返回object'); break - case "function": - console.log("[*] Document_get_onbeforexrselect 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_onbeforexrselect, 返回function'); break default: - // string number - console.log("[*] Document_get_onbeforexrselect 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onbeforexrselect, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onbeforexrselect, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onbeforexrselect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforexrselect = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onbeforexrselect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onabort = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onabort; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onabort 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onbeforexrselect, set object'); break - case "function": - console.log("[*] Document_get_onabort 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onbeforexrselect, set function'); break default: - // string number - console.log("[*] Document_get_onabort 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforexrselect = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onbeforexrselect, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onabort = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onabort; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onabort, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onabort, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onabort, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onabort, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onabort = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onabort = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onabort, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onbeforeinput = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforeinput; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onbeforeinput 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onabort, set object'); break - case "function": - console.log("[*] Document_get_onbeforeinput 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onabort, set function'); break default: - // string number - console.log("[*] Document_get_onbeforeinput 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onabort = val; } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onbeforeinput, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.Document_set_onbeforeinput = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforeinput = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onbeforeinput, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onbeforematch = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforematch; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onbeforematch 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] Document_get_onbeforematch 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_get_onbeforematch 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onbeforematch, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onabort, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.Document_set_onbeforematch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforematch = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onbeforematch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onbeforetoggle = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onbeforetoggle; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onbeforetoggle 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_get_onbeforetoggle 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_get_onbeforetoggle 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onbeforetoggle, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.Document_set_onbeforetoggle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onbeforetoggle = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onbeforetoggle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.Document_get_onblur = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.onblur; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onblur 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_onblur, 返回object'); break - case "function": - console.log("[*] Document_get_onblur 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_onblur, 返回function'); break default: - // string number - console.log("[*] Document_get_onblur 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onblur, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onblur, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onblur = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onblur = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onblur, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_oncancel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncancel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_oncancel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onblur, set object'); break - case "function": - console.log("[*] Document_get_oncancel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onblur, set function'); break default: - // string number - console.log("[*] Document_get_oncancel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onblur = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onblur, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_oncancel = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncancel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_oncancel, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_oncancel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_oncancel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_oncancel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_oncancel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncancel = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_oncancel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_oncanplay = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncanplay; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_oncanplay 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_oncancel, set object'); break - case "function": - console.log("[*] Document_get_oncanplay 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_oncancel, set function'); break default: - // string number - console.log("[*] Document_get_oncanplay 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncancel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_oncancel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_oncanplay = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncanplay; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_oncanplay, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_oncanplay, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_oncanplay, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_oncanplay, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_oncanplay = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncanplay = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_oncanplay, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_oncanplaythrough = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncanplaythrough; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_oncanplaythrough 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_oncanplay, set object'); break - case "function": - console.log("[*] Document_get_oncanplaythrough 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_oncanplay, set function'); break default: - // string number - console.log("[*] Document_get_oncanplaythrough 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncanplay = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_oncanplay, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_oncanplaythrough = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncanplaythrough; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_oncanplaythrough, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_oncanplaythrough, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_oncanplaythrough, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_oncanplaythrough, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_oncanplaythrough = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncanplaythrough = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_oncanplaythrough, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_oncanplaythrough, set object'); break - case "function": - console.log("[*] Document_get_onchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_oncanplaythrough, set function'); break default: - // string number - console.log("[*] Document_get_onchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncanplaythrough = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_oncanplaythrough, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onchange = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onchange = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onclick = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onclick; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onclick 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onchange, set object'); break - case "function": - console.log("[*] Document_get_onclick 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onchange, set function'); break default: - // string number - console.log("[*] Document_get_onclick 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onclick = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onclick; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onclick, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onclick, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onclick, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onclick, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onclick = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onclick = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onclick, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onclose = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onclose; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onclose 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onclick, set object'); break - case "function": - console.log("[*] Document_get_onclose 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onclick, set function'); break default: - // string number - console.log("[*] Document_get_onclose 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onclick = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onclick, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onclose = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onclose; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onclose, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onclose, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onclose, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onclose, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onclose = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onclose = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onclose, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_oncontentvisibilityautostatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncontentvisibilityautostatechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_oncontentvisibilityautostatechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onclose, set object'); break - case "function": - console.log("[*] Document_get_oncontentvisibilityautostatechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onclose, set function'); break default: - // string number - console.log("[*] Document_get_oncontentvisibilityautostatechange 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onclose = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_oncontentvisibilityautostatechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onclose, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.Document_set_oncontentvisibilityautostatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncontentvisibilityautostatechange = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_oncontentvisibilityautostatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.Document_get_oncontextlost = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.oncontextlost; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_oncontextlost 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_oncontextlost, 返回object'); break - case "function": - console.log("[*] Document_get_oncontextlost 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_oncontextlost, 返回function'); break default: - // string number - console.log("[*] Document_get_oncontextlost 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_oncontextlost, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_oncontextlost, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_oncontextlost = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncontextlost = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_oncontextlost, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_oncontextmenu = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncontextmenu; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_oncontextmenu 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_oncontextlost, set object'); break - case "function": - console.log("[*] Document_get_oncontextmenu 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_oncontextlost, set function'); break default: - // string number - console.log("[*] Document_get_oncontextmenu 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncontextlost = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_oncontextlost, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_oncontextmenu = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncontextmenu; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_oncontextmenu, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_oncontextmenu, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_oncontextmenu, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_oncontextmenu, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_oncontextmenu = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncontextmenu = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_oncontextmenu, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_oncontextrestored = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncontextrestored; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_oncontextrestored 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_oncontextmenu, set object'); break - case "function": - console.log("[*] Document_get_oncontextrestored 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_oncontextmenu, set function'); break default: - // string number - console.log("[*] Document_get_oncontextrestored 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncontextmenu = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_oncontextmenu, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_oncontextrestored = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncontextrestored; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_oncontextrestored, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_oncontextrestored, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_oncontextrestored, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_oncontextrestored, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_oncontextrestored = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncontextrestored = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_oncontextrestored, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_oncuechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncuechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_oncuechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_oncontextrestored, set object'); break - case "function": - console.log("[*] Document_get_oncuechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_oncontextrestored, set function'); break default: - // string number - console.log("[*] Document_get_oncuechange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncontextrestored = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_oncontextrestored, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_oncuechange = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncuechange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_oncuechange, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_oncuechange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_oncuechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_oncuechange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_oncuechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncuechange = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_oncuechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ondblclick = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondblclick; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ondblclick 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_oncuechange, set object'); break - case "function": - console.log("[*] Document_get_ondblclick 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_oncuechange, set function'); break default: - // string number - console.log("[*] Document_get_ondblclick 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncuechange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_oncuechange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ondblclick = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondblclick; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ondblclick, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ondblclick, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ondblclick, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ondblclick, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ondblclick = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondblclick = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ondblclick, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ondrag = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondrag; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ondrag 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ondblclick, set object'); break - case "function": - console.log("[*] Document_get_ondrag 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ondblclick, set function'); break default: - // string number - console.log("[*] Document_get_ondrag 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondblclick = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ondblclick, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ondrag = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondrag; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ondrag, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ondrag, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ondrag, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ondrag, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ondrag = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondrag = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ondrag, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ondragend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ondragend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ondrag, set object'); break - case "function": - console.log("[*] Document_get_ondragend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ondrag, set function'); break default: - // string number - console.log("[*] Document_get_ondragend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondrag = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ondrag, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ondragend = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ondragend, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ondragend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ondragend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ondragend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ondragend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragend = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ondragend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ondragenter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragenter; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ondragenter 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ondragend, set object'); break - case "function": - console.log("[*] Document_get_ondragenter 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ondragend, set function'); break default: - // string number - console.log("[*] Document_get_ondragenter 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ondragend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ondragenter = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragenter; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ondragenter, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ondragenter, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ondragenter, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ondragenter, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ondragenter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragenter = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ondragenter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ondragleave = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragleave; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ondragleave 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ondragenter, set object'); break - case "function": - console.log("[*] Document_get_ondragleave 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ondragenter, set function'); break default: - // string number - console.log("[*] Document_get_ondragleave 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragenter = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ondragenter, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ondragleave = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragleave; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ondragleave, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ondragleave, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ondragleave, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ondragleave, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ondragleave = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragleave = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ondragleave, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ondragover = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragover; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ondragover 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ondragleave, set object'); break - case "function": - console.log("[*] Document_get_ondragover 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ondragleave, set function'); break default: - // string number - console.log("[*] Document_get_ondragover 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragleave = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ondragleave, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ondragover = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragover; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ondragover, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ondragover, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ondragover, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ondragover, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ondragover = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragover = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ondragover, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ondragstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondragstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ondragstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ondragover, set object'); break - case "function": - console.log("[*] Document_get_ondragstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ondragover, set function'); break default: - // string number - console.log("[*] Document_get_ondragstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragover = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ondragover, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ondragstart = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondragstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ondragstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ondragstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ondragstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ondragstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ondragstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondragstart = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ondragstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ondrop = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondrop; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ondrop 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ondragstart, set object'); break - case "function": - console.log("[*] Document_get_ondrop 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ondragstart, set function'); break default: - // string number - console.log("[*] Document_get_ondrop 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondragstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ondragstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ondrop = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondrop; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ondrop, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ondrop, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ondrop, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ondrop, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ondrop = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondrop = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ondrop, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ondurationchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ondurationchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ondurationchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ondrop, set object'); break - case "function": - console.log("[*] Document_get_ondurationchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ondrop, set function'); break default: - // string number - console.log("[*] Document_get_ondurationchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondrop = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ondrop, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ondurationchange = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ondurationchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ondurationchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ondurationchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ondurationchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ondurationchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ondurationchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ondurationchange = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ondurationchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onemptied = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onemptied; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onemptied 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ondurationchange, set object'); break - case "function": - console.log("[*] Document_get_onemptied 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ondurationchange, set function'); break default: - // string number - console.log("[*] Document_get_onemptied 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ondurationchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ondurationchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onemptied = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onemptied; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onemptied, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onemptied, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onemptied, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onemptied, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onemptied = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onemptied = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onemptied, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onended = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onended; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onended 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onemptied, set object'); break - case "function": - console.log("[*] Document_get_onended 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onemptied, set function'); break default: - // string number - console.log("[*] Document_get_onended 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onemptied = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onemptied, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onended = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onended; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onended, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onended, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onended, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onended, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onended = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onended = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onended, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onerror; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onerror 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onended, set object'); break - case "function": - console.log("[*] Document_get_onerror 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onended, set function'); break default: - // string number - console.log("[*] Document_get_onerror 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onended = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onended, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onerror = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onerror; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onerror, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onerror, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onerror, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onerror, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onerror = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onfocus = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onfocus; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onfocus 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onerror, set object'); break - case "function": - console.log("[*] Document_get_onfocus 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onerror, set function'); break default: - // string number - console.log("[*] Document_get_onfocus 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onerror = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onerror, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onfocus = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onfocus; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onfocus, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onfocus, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onfocus, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onfocus, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onfocus = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onfocus = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onfocus, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onformdata = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onformdata; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onformdata 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onfocus, set object'); break - case "function": - console.log("[*] Document_get_onformdata 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onfocus, set function'); break default: - // string number - console.log("[*] Document_get_onformdata 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onfocus = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onfocus, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onformdata = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onformdata; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onformdata, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onformdata, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onformdata, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onformdata, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onformdata = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onformdata = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onformdata, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_oninput = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oninput; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_oninput 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onformdata, set object'); break - case "function": - console.log("[*] Document_get_oninput 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onformdata, set function'); break default: - // string number - console.log("[*] Document_get_oninput 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onformdata = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onformdata, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_oninput = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oninput; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_oninput, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_oninput, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_oninput, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_oninput, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_oninput = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oninput = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_oninput, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_oninvalid = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oninvalid; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_oninvalid 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_oninput, set object'); break - case "function": - console.log("[*] Document_get_oninvalid 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_oninput, set function'); break default: - // string number - console.log("[*] Document_get_oninvalid 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oninput = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_oninput, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_oninvalid = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oninvalid; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_oninvalid, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_oninvalid, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_oninvalid, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_oninvalid, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_oninvalid = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oninvalid = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_oninvalid, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onkeydown = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onkeydown; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onkeydown 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_oninvalid, set object'); break - case "function": - console.log("[*] Document_get_onkeydown 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_oninvalid, set function'); break default: - // string number - console.log("[*] Document_get_onkeydown 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oninvalid = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_oninvalid, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onkeydown = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onkeydown; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onkeydown, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onkeydown, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onkeydown, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onkeydown, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onkeydown = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onkeydown = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onkeydown, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onkeypress = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onkeypress; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onkeypress 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onkeydown, set object'); break - case "function": - console.log("[*] Document_get_onkeypress 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onkeydown, set function'); break default: - // string number - console.log("[*] Document_get_onkeypress 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onkeydown = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onkeydown, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onkeypress = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onkeypress; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onkeypress, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onkeypress, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onkeypress, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onkeypress, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onkeypress = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onkeypress = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onkeypress, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onkeyup = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onkeyup; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onkeyup 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onkeypress, set object'); break - case "function": - console.log("[*] Document_get_onkeyup 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onkeypress, set function'); break default: - // string number - console.log("[*] Document_get_onkeyup 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onkeypress = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onkeypress, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onkeyup = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onkeyup; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onkeyup, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onkeyup, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onkeyup, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onkeyup, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onkeyup = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onkeyup = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onkeyup, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onload = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onload; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onload 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onkeyup, set object'); break - case "function": - console.log("[*] Document_get_onload 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onkeyup, set function'); break default: - // string number - console.log("[*] Document_get_onload 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onkeyup = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onkeyup, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onload = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onload; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onload, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onload, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onload, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onload, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onload = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onload = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onload, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onloadeddata = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onloadeddata; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onloadeddata 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onload, set object'); break - case "function": - console.log("[*] Document_get_onloadeddata 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onload, set function'); break default: - // string number - console.log("[*] Document_get_onloadeddata 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onload = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onload, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onloadeddata = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onloadeddata; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onloadeddata, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onloadeddata, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onloadeddata, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onloadeddata, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onloadeddata = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onloadeddata = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onloadeddata, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onloadedmetadata = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onloadedmetadata; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onloadedmetadata 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onloadeddata, set object'); break - case "function": - console.log("[*] Document_get_onloadedmetadata 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onloadeddata, set function'); break default: - // string number - console.log("[*] Document_get_onloadedmetadata 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onloadeddata = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onloadeddata, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onloadedmetadata = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onloadedmetadata; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onloadedmetadata, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onloadedmetadata, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onloadedmetadata, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onloadedmetadata, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onloadedmetadata = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onloadedmetadata = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onloadedmetadata, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onloadstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onloadstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onloadstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onloadedmetadata, set object'); break - case "function": - console.log("[*] Document_get_onloadstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onloadedmetadata, set function'); break default: - // string number - console.log("[*] Document_get_onloadstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onloadedmetadata = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onloadedmetadata, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onloadstart = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onloadstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onloadstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onloadstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onloadstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onloadstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onloadstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onloadstart = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onloadstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onmousedown = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmousedown; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onmousedown 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onloadstart, set object'); break - case "function": - console.log("[*] Document_get_onmousedown 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onloadstart, set function'); break default: - // string number - console.log("[*] Document_get_onmousedown 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onloadstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onloadstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onmousedown = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmousedown; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onmousedown, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onmousedown, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onmousedown, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onmousedown, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onmousedown = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmousedown = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onmousedown, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onmouseenter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseenter; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onmouseenter 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onmousedown, set object'); break - case "function": - console.log("[*] Document_get_onmouseenter 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onmousedown, set function'); break default: - // string number - console.log("[*] Document_get_onmouseenter 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmousedown = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onmousedown, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onmouseenter = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseenter; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onmouseenter, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onmouseenter, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onmouseenter, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onmouseenter, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onmouseenter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseenter = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onmouseenter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onmouseleave = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseleave; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onmouseleave 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onmouseenter, set object'); break - case "function": - console.log("[*] Document_get_onmouseleave 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onmouseenter, set function'); break default: - // string number - console.log("[*] Document_get_onmouseleave 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseenter = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onmouseenter, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onmouseleave = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseleave; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onmouseleave, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onmouseleave, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onmouseleave, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onmouseleave, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onmouseleave = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseleave = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onmouseleave, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onmousemove = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmousemove; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onmousemove 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onmouseleave, set object'); break - case "function": - console.log("[*] Document_get_onmousemove 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onmouseleave, set function'); break default: - // string number - console.log("[*] Document_get_onmousemove 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseleave = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onmouseleave, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onmousemove = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmousemove; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onmousemove, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onmousemove, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onmousemove, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onmousemove, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onmousemove = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmousemove = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onmousemove, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onmouseout = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseout; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onmouseout 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onmousemove, set object'); break - case "function": - console.log("[*] Document_get_onmouseout 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onmousemove, set function'); break default: - // string number - console.log("[*] Document_get_onmouseout 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmousemove = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onmousemove, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onmouseout = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseout; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onmouseout, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onmouseout, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onmouseout, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onmouseout, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onmouseout = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseout = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onmouseout, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onmouseover = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseover; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onmouseover 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onmouseout, set object'); break - case "function": - console.log("[*] Document_get_onmouseover 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onmouseout, set function'); break default: - // string number - console.log("[*] Document_get_onmouseover 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseout = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onmouseout, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onmouseover = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseover; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onmouseover, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onmouseover, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onmouseover, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onmouseover, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onmouseover = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseover = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onmouseover, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onmouseup = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmouseup; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onmouseup 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onmouseover, set object'); break - case "function": - console.log("[*] Document_get_onmouseup 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onmouseover, set function'); break default: - // string number - console.log("[*] Document_get_onmouseup 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseover = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onmouseover, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onmouseup = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmouseup; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onmouseup, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onmouseup, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onmouseup, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onmouseup, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onmouseup = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmouseup = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onmouseup, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onmousewheel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onmousewheel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onmousewheel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onmouseup, set object'); break - case "function": - console.log("[*] Document_get_onmousewheel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onmouseup, set function'); break default: - // string number - console.log("[*] Document_get_onmousewheel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmouseup = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onmouseup, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onmousewheel = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onmousewheel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onmousewheel, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onmousewheel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onmousewheel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onmousewheel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onmousewheel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onmousewheel = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onmousewheel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onpause = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpause; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onpause 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onmousewheel, set object'); break - case "function": - console.log("[*] Document_get_onpause 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onmousewheel, set function'); break default: - // string number - console.log("[*] Document_get_onpause 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onmousewheel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onmousewheel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onpause = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpause; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onpause, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onpause, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onpause, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onpause, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onpause = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpause = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onpause, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onplay = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onplay; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onplay 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onpause, set object'); break - case "function": - console.log("[*] Document_get_onplay 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onpause, set function'); break default: - // string number - console.log("[*] Document_get_onplay 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpause = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onpause, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onplay = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onplay; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onplay, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onplay, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onplay, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onplay, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onplay = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onplay = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onplay, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onplaying = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onplaying; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onplaying 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onplay, set object'); break - case "function": - console.log("[*] Document_get_onplaying 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onplay, set function'); break default: - // string number - console.log("[*] Document_get_onplaying 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onplay = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onplay, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onplaying = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onplaying; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onplaying, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onplaying, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onplaying, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onplaying, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onplaying = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onplaying = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onplaying, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onprogress = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onprogress; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onprogress 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onplaying, set object'); break - case "function": - console.log("[*] Document_get_onprogress 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onplaying, set function'); break default: - // string number - console.log("[*] Document_get_onprogress 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onplaying = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onplaying, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onprogress = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onprogress; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onprogress, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onprogress, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onprogress, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onprogress, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onprogress = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onprogress = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onprogress, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onratechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onratechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onratechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onprogress, set object'); break - case "function": - console.log("[*] Document_get_onratechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onprogress, set function'); break default: - // string number - console.log("[*] Document_get_onratechange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onprogress = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onprogress, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onratechange = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onratechange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onratechange, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onratechange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onratechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onratechange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onratechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onratechange = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onratechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onreset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onreset; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onreset 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onratechange, set object'); break - case "function": - console.log("[*] Document_get_onreset 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onratechange, set function'); break default: - // string number - console.log("[*] Document_get_onreset 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onratechange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onratechange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onreset = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onreset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onreset, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onreset, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onreset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onreset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onreset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onreset = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onreset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onresize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onresize; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onresize 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onreset, set object'); break - case "function": - console.log("[*] Document_get_onresize 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onreset, set function'); break default: - // string number - console.log("[*] Document_get_onresize 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onreset = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onreset, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onresize = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onresize; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onresize, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onresize, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onresize, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onresize, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onresize = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onresize = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onresize, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onscroll = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onscroll; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onscroll 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onresize, set object'); break - case "function": - console.log("[*] Document_get_onscroll 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onresize, set function'); break default: - // string number - console.log("[*] Document_get_onscroll 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onresize = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onresize, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onscroll = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onscroll; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onscroll, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onscroll, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onscroll, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onscroll, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onscroll = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onscroll = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onscroll, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onsecuritypolicyviolation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onsecuritypolicyviolation; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onsecuritypolicyviolation 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onscroll, set object'); break - case "function": - console.log("[*] Document_get_onsecuritypolicyviolation 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onscroll, set function'); break default: - // string number - console.log("[*] Document_get_onsecuritypolicyviolation 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onscroll = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onscroll, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onsecuritypolicyviolation = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onsecuritypolicyviolation; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onsecuritypolicyviolation, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onsecuritypolicyviolation, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onsecuritypolicyviolation, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onsecuritypolicyviolation, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onsecuritypolicyviolation = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onsecuritypolicyviolation = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onsecuritypolicyviolation, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onseeked = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onseeked; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onseeked 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onsecuritypolicyviolation, set object'); break - case "function": - console.log("[*] Document_get_onseeked 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onsecuritypolicyviolation, set function'); break default: - // string number - console.log("[*] Document_get_onseeked 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onsecuritypolicyviolation = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onsecuritypolicyviolation, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onseeked = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onseeked; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onseeked, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onseeked, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onseeked, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onseeked, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onseeked = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onseeked = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onseeked, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onseeking = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onseeking; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onseeking 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onseeked, set object'); break - case "function": - console.log("[*] Document_get_onseeking 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onseeked, set function'); break default: - // string number - console.log("[*] Document_get_onseeking 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onseeked = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onseeked, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onseeking = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onseeking; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onseeking, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onseeking, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onseeking, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onseeking, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onseeking = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onseeking = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onseeking, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onselect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onselect; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onselect 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onseeking, set object'); break - case "function": - console.log("[*] Document_get_onselect 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onseeking, set function'); break default: - // string number - console.log("[*] Document_get_onselect 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onseeking = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onseeking, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onselect = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onselect; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onselect, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onselect, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onselect, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onselect, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onselect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onselect = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onselect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onslotchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onslotchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onslotchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onselect, set object'); break - case "function": - console.log("[*] Document_get_onslotchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onselect, set function'); break default: - // string number - console.log("[*] Document_get_onslotchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onselect = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onselect, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onslotchange = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onslotchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onslotchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onslotchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onslotchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onslotchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onslotchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onslotchange = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onslotchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onstalled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onstalled; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onstalled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onslotchange, set object'); break - case "function": - console.log("[*] Document_get_onstalled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onslotchange, set function'); break default: - // string number - console.log("[*] Document_get_onstalled 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onslotchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onslotchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onstalled = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onstalled; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onstalled, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onstalled, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onstalled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onstalled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onstalled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onstalled = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onstalled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onsubmit = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onsubmit; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onsubmit 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onstalled, set object'); break - case "function": - console.log("[*] Document_get_onsubmit 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onstalled, set function'); break default: - // string number - console.log("[*] Document_get_onsubmit 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onstalled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onstalled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onsubmit = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onsubmit; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onsubmit, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onsubmit, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onsubmit, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onsubmit, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onsubmit = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onsubmit = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onsubmit, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onsuspend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onsuspend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onsuspend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onsubmit, set object'); break - case "function": - console.log("[*] Document_get_onsuspend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onsubmit, set function'); break default: - // string number - console.log("[*] Document_get_onsuspend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onsubmit = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onsubmit, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onsuspend = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onsuspend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onsuspend, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onsuspend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onsuspend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onsuspend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onsuspend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onsuspend = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onsuspend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ontimeupdate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontimeupdate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ontimeupdate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onsuspend, set object'); break - case "function": - console.log("[*] Document_get_ontimeupdate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onsuspend, set function'); break default: - // string number - console.log("[*] Document_get_ontimeupdate 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onsuspend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onsuspend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ontimeupdate = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontimeupdate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ontimeupdate, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ontimeupdate, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ontimeupdate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ontimeupdate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ontimeupdate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontimeupdate = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ontimeupdate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ontoggle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontoggle; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ontoggle 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ontimeupdate, set object'); break - case "function": - console.log("[*] Document_get_ontoggle 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ontimeupdate, set function'); break default: - // string number - console.log("[*] Document_get_ontoggle 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontimeupdate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ontimeupdate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ontoggle = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontoggle; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ontoggle, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ontoggle, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ontoggle, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ontoggle, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ontoggle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontoggle = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ontoggle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onvolumechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onvolumechange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onvolumechange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ontoggle, set object'); break - case "function": - console.log("[*] Document_get_onvolumechange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ontoggle, set function'); break default: - // string number - console.log("[*] Document_get_onvolumechange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontoggle = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ontoggle, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onvolumechange = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onvolumechange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onvolumechange, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onvolumechange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onvolumechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onvolumechange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onvolumechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onvolumechange = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onvolumechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onwaiting = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwaiting; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onwaiting 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onvolumechange, set object'); break - case "function": - console.log("[*] Document_get_onwaiting 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onvolumechange, set function'); break default: - // string number - console.log("[*] Document_get_onwaiting 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onvolumechange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onvolumechange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onwaiting = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwaiting; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onwaiting, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onwaiting, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onwaiting, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onwaiting, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onwaiting = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwaiting = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onwaiting, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onwebkitanimationend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkitanimationend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onwebkitanimationend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onwaiting, set object'); break - case "function": - console.log("[*] Document_get_onwebkitanimationend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onwaiting, set function'); break default: - // string number - console.log("[*] Document_get_onwebkitanimationend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwaiting = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onwaiting, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onwebkitanimationend = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkitanimationend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onwebkitanimationend, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onwebkitanimationend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onwebkitanimationend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onwebkitanimationend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onwebkitanimationend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkitanimationend = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onwebkitanimationend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onwebkitanimationiteration = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkitanimationiteration; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onwebkitanimationiteration 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onwebkitanimationend, set object'); break - case "function": - console.log("[*] Document_get_onwebkitanimationiteration 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onwebkitanimationend, set function'); break default: - // string number - console.log("[*] Document_get_onwebkitanimationiteration 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkitanimationend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onwebkitanimationend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onwebkitanimationiteration = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkitanimationiteration; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onwebkitanimationiteration, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onwebkitanimationiteration, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onwebkitanimationiteration, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onwebkitanimationiteration, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onwebkitanimationiteration = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkitanimationiteration = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onwebkitanimationiteration, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onwebkitanimationstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkitanimationstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onwebkitanimationstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onwebkitanimationiteration, set object'); break - case "function": - console.log("[*] Document_get_onwebkitanimationstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onwebkitanimationiteration, set function'); break default: - // string number - console.log("[*] Document_get_onwebkitanimationstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkitanimationiteration = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onwebkitanimationiteration, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onwebkitanimationstart = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkitanimationstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onwebkitanimationstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onwebkitanimationstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onwebkitanimationstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onwebkitanimationstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onwebkitanimationstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkitanimationstart = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onwebkitanimationstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onwebkittransitionend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwebkittransitionend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onwebkittransitionend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onwebkitanimationstart, set object'); break - case "function": - console.log("[*] Document_get_onwebkittransitionend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onwebkitanimationstart, set function'); break default: - // string number - console.log("[*] Document_get_onwebkittransitionend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkitanimationstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onwebkitanimationstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onwebkittransitionend = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwebkittransitionend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onwebkittransitionend, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onwebkittransitionend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onwebkittransitionend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onwebkittransitionend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onwebkittransitionend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwebkittransitionend = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onwebkittransitionend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onwheel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onwheel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onwheel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onwebkittransitionend, set object'); break - case "function": - console.log("[*] Document_get_onwheel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onwebkittransitionend, set function'); break default: - // string number - console.log("[*] Document_get_onwheel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwebkittransitionend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onwebkittransitionend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onwheel = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onwheel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onwheel, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onwheel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onwheel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onwheel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onwheel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onwheel = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onwheel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onauxclick = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onauxclick; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onauxclick 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onwheel, set object'); break - case "function": - console.log("[*] Document_get_onauxclick 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onwheel, set function'); break default: - // string number - console.log("[*] Document_get_onauxclick 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onwheel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onwheel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onauxclick = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onauxclick; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onauxclick, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onauxclick, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onauxclick, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onauxclick, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onauxclick = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onauxclick = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onauxclick, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ongotpointercapture = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ongotpointercapture; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ongotpointercapture 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onauxclick, set object'); break - case "function": - console.log("[*] Document_get_ongotpointercapture 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onauxclick, set function'); break default: - // string number - console.log("[*] Document_get_ongotpointercapture 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onauxclick = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onauxclick, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ongotpointercapture = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ongotpointercapture; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ongotpointercapture, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ongotpointercapture, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ongotpointercapture, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ongotpointercapture, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ongotpointercapture = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ongotpointercapture = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ongotpointercapture, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onlostpointercapture = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onlostpointercapture; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onlostpointercapture 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ongotpointercapture, set object'); break - case "function": - console.log("[*] Document_get_onlostpointercapture 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ongotpointercapture, set function'); break default: - // string number - console.log("[*] Document_get_onlostpointercapture 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ongotpointercapture = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ongotpointercapture, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onlostpointercapture = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onlostpointercapture; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onlostpointercapture, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onlostpointercapture, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onlostpointercapture, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onlostpointercapture, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onlostpointercapture = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onlostpointercapture = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onlostpointercapture, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onpointerdown = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerdown; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onpointerdown 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onlostpointercapture, set object'); break - case "function": - console.log("[*] Document_get_onpointerdown 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onlostpointercapture, set function'); break default: - // string number - console.log("[*] Document_get_onpointerdown 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onlostpointercapture = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onlostpointercapture, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onpointerdown = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerdown; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onpointerdown, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onpointerdown, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onpointerdown, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onpointerdown, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onpointerdown = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerdown = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onpointerdown, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onpointermove = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointermove; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onpointermove 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onpointerdown, set object'); break - case "function": - console.log("[*] Document_get_onpointermove 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onpointerdown, set function'); break default: - // string number - console.log("[*] Document_get_onpointermove 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerdown = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onpointerdown, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onpointermove = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointermove; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onpointermove, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onpointermove, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onpointermove, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onpointermove, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onpointermove = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointermove = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onpointermove, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onpointerrawupdate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerrawupdate; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onpointerrawupdate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onpointermove, set object'); break - case "function": - console.log("[*] Document_get_onpointerrawupdate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onpointermove, set function'); break default: - // string number - console.log("[*] Document_get_onpointerrawupdate 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointermove = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onpointerrawupdate, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onpointermove, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.Document_set_onpointerrawupdate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerrawupdate = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onpointerrawupdate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } this.Document_get_onpointerup = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.onpointerup; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onpointerup 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_onpointerup, 返回object'); break - case "function": - console.log("[*] Document_get_onpointerup 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_onpointerup, 返回function'); break default: - // string number - console.log("[*] Document_get_onpointerup 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onpointerup, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onpointerup, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onpointerup = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerup = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onpointerup, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onpointercancel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointercancel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onpointercancel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onpointerup, set object'); break - case "function": - console.log("[*] Document_get_onpointercancel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onpointerup, set function'); break default: - // string number - console.log("[*] Document_get_onpointercancel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerup = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onpointerup, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onpointercancel = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointercancel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onpointercancel, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onpointercancel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onpointercancel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onpointercancel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onpointercancel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointercancel = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onpointercancel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onpointerover = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerover; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onpointerover 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onpointercancel, set object'); break - case "function": - console.log("[*] Document_get_onpointerover 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onpointercancel, set function'); break default: - // string number - console.log("[*] Document_get_onpointerover 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointercancel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onpointercancel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onpointerover = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerover; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onpointerover, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onpointerover, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onpointerover, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onpointerover, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onpointerover = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerover = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onpointerover, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onpointerout = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerout; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onpointerout 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onpointerover, set object'); break - case "function": - console.log("[*] Document_get_onpointerout 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onpointerover, set function'); break default: - // string number - console.log("[*] Document_get_onpointerout 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerover = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onpointerover, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onpointerout = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerout; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onpointerout, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onpointerout, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onpointerout, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onpointerout, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onpointerout = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerout = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onpointerout, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onpointerenter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerenter; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onpointerenter 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onpointerout, set object'); break - case "function": - console.log("[*] Document_get_onpointerenter 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onpointerout, set function'); break default: - // string number - console.log("[*] Document_get_onpointerenter 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerout = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onpointerout, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onpointerenter = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerenter; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onpointerenter, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onpointerenter, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onpointerenter, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onpointerenter, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onpointerenter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerenter = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onpointerenter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onpointerleave = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpointerleave; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onpointerleave 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onpointerenter, set object'); break - case "function": - console.log("[*] Document_get_onpointerleave 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onpointerenter, set function'); break default: - // string number - console.log("[*] Document_get_onpointerleave 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerenter = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onpointerenter, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onpointerleave = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerleave; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onpointerleave, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onpointerleave, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onpointerleave, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onpointerleave, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onpointerleave = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpointerleave = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onpointerleave, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onselectstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onselectstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onselectstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onpointerleave, set object'); break - case "function": - console.log("[*] Document_get_onselectstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onpointerleave, set function'); break default: - // string number - console.log("[*] Document_get_onselectstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerleave = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onpointerleave, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onselectstart = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onselectstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onselectstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onselectstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onselectstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onselectstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onselectstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onselectstart = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onselectstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onselectionchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onselectionchange; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onselectionchange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onselectstart, set object'); break - case "function": - console.log("[*] Document_get_onselectionchange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onselectstart, set function'); break default: - // string number - console.log("[*] Document_get_onselectionchange 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onselectstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onselectstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onselectionchange = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onselectionchange; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onselectionchange, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onselectionchange, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onselectionchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onselectionchange, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onselectionchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onselectionchange = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onselectionchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onanimationend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onanimationend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onanimationend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onselectionchange, set object'); break - case "function": - console.log("[*] Document_get_onanimationend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onselectionchange, set function'); break default: - // string number - console.log("[*] Document_get_onanimationend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onselectionchange = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onselectionchange, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onanimationend = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onanimationend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onanimationend, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onanimationend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onanimationend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onanimationend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onanimationend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onanimationend = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onanimationend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onanimationiteration = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onanimationiteration; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onanimationiteration 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onanimationend, set object'); break - case "function": - console.log("[*] Document_get_onanimationiteration 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onanimationend, set function'); break default: - // string number - console.log("[*] Document_get_onanimationiteration 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onanimationend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onanimationend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onanimationiteration = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onanimationiteration; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onanimationiteration, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onanimationiteration, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onanimationiteration, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onanimationiteration, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onanimationiteration = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onanimationiteration = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onanimationiteration, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onanimationstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onanimationstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onanimationstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onanimationiteration, set object'); break - case "function": - console.log("[*] Document_get_onanimationstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onanimationiteration, set function'); break default: - // string number - console.log("[*] Document_get_onanimationstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onanimationiteration = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onanimationiteration, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onanimationstart = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onanimationstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onanimationstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onanimationstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onanimationstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onanimationstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onanimationstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onanimationstart = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onanimationstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ontransitionrun = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontransitionrun; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ontransitionrun 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_onanimationstart, set object'); break - case "function": - console.log("[*] Document_get_ontransitionrun 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_onanimationstart, set function'); break default: - // string number - console.log("[*] Document_get_ontransitionrun 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onanimationstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onanimationstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ontransitionrun = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontransitionrun; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ontransitionrun, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ontransitionrun, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ontransitionrun, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ontransitionrun, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ontransitionrun = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontransitionrun = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ontransitionrun, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ontransitionstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontransitionstart; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ontransitionstart 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ontransitionrun, set object'); break - case "function": - console.log("[*] Document_get_ontransitionstart 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ontransitionrun, set function'); break default: - // string number - console.log("[*] Document_get_ontransitionstart 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontransitionrun = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ontransitionrun, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ontransitionstart = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontransitionstart; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ontransitionstart, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ontransitionstart, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ontransitionstart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ontransitionstart, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ontransitionstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontransitionstart = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ontransitionstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ontransitionend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontransitionend; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ontransitionend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ontransitionstart, set object'); break - case "function": - console.log("[*] Document_get_ontransitionend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ontransitionstart, set function'); break default: - // string number - console.log("[*] Document_get_ontransitionend 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontransitionstart = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ontransitionstart, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ontransitionend = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontransitionend; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ontransitionend, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ontransitionend, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ontransitionend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ontransitionend, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ontransitionend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontransitionend = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ontransitionend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_ontransitioncancel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.ontransitioncancel; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_ontransitioncancel 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ontransitionend, set object'); break - case "function": - console.log("[*] Document_get_ontransitioncancel 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ontransitionend, set function'); break default: - // string number - console.log("[*] Document_get_ontransitioncancel 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontransitionend = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ontransitionend, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_ontransitioncancel = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ontransitioncancel; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_ontransitioncancel, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_ontransitioncancel, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_ontransitioncancel, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_ontransitioncancel, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_ontransitioncancel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.ontransitioncancel = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_ontransitioncancel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_oncopy = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncopy; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_oncopy 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_ontransitioncancel, set object'); break - case "function": - console.log("[*] Document_get_oncopy 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_ontransitioncancel, set function'); break default: - // string number - console.log("[*] Document_get_oncopy 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.ontransitioncancel = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_ontransitioncancel, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_oncopy = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncopy; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_oncopy, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_oncopy, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_oncopy, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_oncopy, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_oncopy = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncopy = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_oncopy, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_oncut = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.oncut; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_oncut 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_oncopy, set object'); break - case "function": - console.log("[*] Document_get_oncut 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_oncopy, set function'); break default: - // string number - console.log("[*] Document_get_oncut 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncopy = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_oncopy, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_oncut = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.oncut; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_oncut, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_oncut, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_oncut, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_oncut, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_oncut = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.oncut = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_oncut, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_onpaste = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onpaste; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onpaste 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_oncut, set object'); break - case "function": - console.log("[*] Document_get_onpaste 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_oncut, set function'); break default: - // string number - console.log("[*] Document_get_onpaste 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.oncut = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_oncut, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_onpaste = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpaste; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onpaste, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_onpaste, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onpaste, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onpaste, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_onpaste = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onpaste = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onpaste, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_children = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Document_set_onpaste, set object'); + break + case "function": + cbb_wf.console.log('[*] Document_set_onpaste, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpaste = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onpaste, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_children = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.children; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_children 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_children, 返回object'); break - case "function": - console.log("[*] Document_get_children 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_children, 返回function'); break default: - // string number - console.log("[*] Document_get_children 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_children, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_children, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_firstElementChild = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.firstElementChild; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_firstElementChild 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_firstElementChild, 返回object'); break - case "function": - console.log("[*] Document_get_firstElementChild 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_firstElementChild, 返回function'); break default: - // string number - console.log("[*] Document_get_firstElementChild 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_firstElementChild, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_firstElementChild, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_lastElementChild = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.lastElementChild; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_lastElementChild 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_lastElementChild, 返回object'); break - case "function": - console.log("[*] Document_get_lastElementChild 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_lastElementChild, 返回function'); break default: - // string number - console.log("[*] Document_get_lastElementChild 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_lastElementChild, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_lastElementChild, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_childElementCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.childElementCount; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_childElementCount 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_childElementCount, 返回object'); break - case "function": - console.log("[*] Document_get_childElementCount 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_childElementCount, 返回function'); break default: - // string number - console.log("[*] Document_get_childElementCount 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_childElementCount, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_childElementCount, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_activeElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.activeElement; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_activeElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_activeElement, 返回object'); break - case "function": - console.log("[*] Document_get_activeElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_activeElement, 返回function'); break default: - // string number - console.log("[*] Document_get_activeElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_activeElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_activeElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_styleSheets = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.styleSheets; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_styleSheets 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_styleSheets, 返回object'); break - case "function": - console.log("[*] Document_get_styleSheets 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_styleSheets, 返回function'); break default: - // string number - console.log("[*] Document_get_styleSheets 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_styleSheets, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_styleSheets, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_pointerLockElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.pointerLockElement; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_pointerLockElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_pointerLockElement, 返回object'); break - case "function": - console.log("[*] Document_get_pointerLockElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_pointerLockElement, 返回function'); break default: - // string number - console.log("[*] Document_get_pointerLockElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_pointerLockElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_pointerLockElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_get_fullscreenElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.fullscreenElement; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_fullscreenElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_fullscreenElement, 返回object'); break - case "function": - console.log("[*] Document_get_fullscreenElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_fullscreenElement, 返回function'); break default: - // string number - console.log("[*] Document_get_fullscreenElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_fullscreenElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_fullscreenElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_fullscreenElement = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.fullscreenElement = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_fullscreenElement, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_adoptedStyleSheets = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.adoptedStyleSheets; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_adoptedStyleSheets 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_fullscreenElement, set object'); break - case "function": - console.log("[*] Document_get_adoptedStyleSheets 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_fullscreenElement, set function'); break default: - // string number - console.log("[*] Document_get_adoptedStyleSheets 得到的结果类型没有处理, type =>", type, ", result =>", result); + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.fullscreenElement = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_fullscreenElement, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_get_adoptedStyleSheets = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.adoptedStyleSheets; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_adoptedStyleSheets, 返回object'); break + case "function": + cbb_wf.console.log('[*] Document_get_adoptedStyleSheets, 返回function'); + break + default: + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_adoptedStyleSheets, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_adoptedStyleSheets, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Document_set_adoptedStyleSheets = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.adoptedStyleSheets = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_adoptedStyleSheets, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Document_get_pictureInPictureElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.pictureInPictureElement; - let type = typeof result; - switch (type) { + switch (typeof val) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_pictureInPictureElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_set_adoptedStyleSheets, set object'); break - case "function": - console.log("[*] Document_get_pictureInPictureElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_set_adoptedStyleSheets, set function'); break default: - // string number - console.log("[*] Document_get_pictureInPictureElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.adoptedStyleSheets = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_pictureInPictureElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_adoptedStyleSheets, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } this.Document_get_fonts = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.fonts; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_fonts 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_fonts, 返回object'); break - case "function": - console.log("[*] Document_get_fonts 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_fonts, 返回function'); break default: - // string number - console.log("[*] Document_get_fonts 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_fonts, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_fonts, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Document_adoptNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.adoptNode.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_adoptNode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_adoptNode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_adoptNode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_adoptNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_append = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.append.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_append 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_append 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_append 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_append, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_captureEvents = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.captureEvents.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_captureEvents 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_captureEvents 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_captureEvents 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_captureEvents, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_caretRangeFromPoint = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.caretRangeFromPoint.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_caretRangeFromPoint 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_caretRangeFromPoint 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_caretRangeFromPoint 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_caretRangeFromPoint, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.clear.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_clear 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_clear 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_clear 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.close.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_close 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_close 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_close 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createAttribute = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createAttribute.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createAttribute 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createAttribute 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createAttribute 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createAttribute, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createAttributeNS = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createAttributeNS.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createAttributeNS 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createAttributeNS 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createAttributeNS 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createAttributeNS, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createCDATASection = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createCDATASection.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createCDATASection 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createCDATASection 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createCDATASection 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createCDATASection, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createComment = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createComment.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createComment 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createComment 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createComment 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createComment, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createDocumentFragment = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createDocumentFragment.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createDocumentFragment 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createDocumentFragment 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createDocumentFragment 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createDocumentFragment, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createElement = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createElement.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createElement, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createElementNS = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createElementNS.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createElementNS 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createElementNS 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createElementNS 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createElementNS, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createEvent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createEvent.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createEvent 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createEvent 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createEvent 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createEvent, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createExpression = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createExpression.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createExpression 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createExpression 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createExpression 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createExpression, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createNSResolver = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createNSResolver.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createNSResolver 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createNSResolver 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createNSResolver 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createNSResolver, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createNodeIterator = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createNodeIterator.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createNodeIterator 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createNodeIterator 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createNodeIterator 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createNodeIterator, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createProcessingInstruction = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createProcessingInstruction.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createProcessingInstruction 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createProcessingInstruction 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createProcessingInstruction 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createProcessingInstruction, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createRange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createRange.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createRange 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createRange 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createRange 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createRange, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createTextNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createTextNode.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createTextNode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createTextNode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createTextNode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createTextNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_createTreeWalker = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createTreeWalker.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_createTreeWalker 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_createTreeWalker 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_createTreeWalker 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_createTreeWalker, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_elementFromPoint = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.elementFromPoint.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_elementFromPoint 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_elementFromPoint 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_elementFromPoint 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_elementFromPoint, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_elementsFromPoint = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.elementsFromPoint.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_elementsFromPoint 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_elementsFromPoint 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_elementsFromPoint 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_elementsFromPoint, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_evaluate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.evaluate.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_evaluate 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_evaluate 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_evaluate 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_evaluate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_execCommand = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.execCommand.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_execCommand 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_execCommand 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_execCommand 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_execCommand, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_exitFullscreen = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.exitFullscreen.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_exitFullscreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_exitFullscreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_exitFullscreen 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_exitFullscreen, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_exitPictureInPicture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.exitPictureInPicture.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_exitPictureInPicture 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_exitPictureInPicture 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_exitPictureInPicture 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_exitPictureInPicture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_exitPointerLock = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.exitPointerLock.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_exitPointerLock 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_exitPointerLock 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_exitPointerLock 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_exitPointerLock, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_getAnimations = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getAnimations.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_getAnimations 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_getAnimations 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_getAnimations 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_getAnimations, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_getElementById = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getElementById.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_getElementById 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_getElementById 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_getElementById 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_getElementById, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_getElementsByClassName = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getElementsByClassName.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_getElementsByClassName 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_getElementsByClassName 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_getElementsByClassName 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_getElementsByClassName, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_getElementsByName = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getElementsByName.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_getElementsByName 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_getElementsByName 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_getElementsByName 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_getElementsByName, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_getElementsByTagName = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getElementsByTagName.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_getElementsByTagName 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_getElementsByTagName 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_getElementsByTagName 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_getElementsByTagName, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_getElementsByTagNameNS = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getElementsByTagNameNS.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_getElementsByTagNameNS 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_getElementsByTagNameNS 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_getElementsByTagNameNS 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_getElementsByTagNameNS, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_getSelection = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.getSelection.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_getSelection 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_getSelection 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_getSelection 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_getSelection, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_hasFocus = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hasFocus.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_hasFocus 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_hasFocus 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_hasFocus 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_hasFocus, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_hasStorageAccess = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hasStorageAccess.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_hasStorageAccess 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_hasStorageAccess 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_hasStorageAccess 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_hasStorageAccess, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_importNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.importNode.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_importNode 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_importNode 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_importNode 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_importNode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_open = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.open.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_open 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_open 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_open 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_open, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_prepend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.prepend.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_prepend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_prepend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_prepend 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_prepend, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_queryCommandEnabled = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.queryCommandEnabled.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_queryCommandEnabled 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_queryCommandEnabled 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_queryCommandEnabled 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_queryCommandEnabled, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_queryCommandIndeterm = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.queryCommandIndeterm.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_queryCommandIndeterm 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_queryCommandIndeterm 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_queryCommandIndeterm 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_queryCommandIndeterm, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_queryCommandState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.queryCommandState.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_queryCommandState 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_queryCommandState 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_queryCommandState 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_queryCommandState, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_queryCommandSupported = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.queryCommandSupported.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_queryCommandSupported 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_queryCommandSupported 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_queryCommandSupported 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_queryCommandSupported, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_queryCommandValue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.queryCommandValue.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_queryCommandValue 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_queryCommandValue 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_queryCommandValue 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_queryCommandValue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_querySelector = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.querySelector.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_querySelector 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_querySelector 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_querySelector 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_querySelector, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_querySelectorAll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.querySelectorAll.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_querySelectorAll 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_querySelectorAll 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_querySelectorAll 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_querySelectorAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_releaseEvents = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.releaseEvents.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_releaseEvents 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_releaseEvents 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_releaseEvents 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_releaseEvents, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_replaceChildren = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.replaceChildren.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_replaceChildren 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_replaceChildren 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_replaceChildren 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_replaceChildren, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_requestStorageAccess = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.requestStorageAccess.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_requestStorageAccess 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_requestStorageAccess 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_requestStorageAccess 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_requestStorageAccess, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_requestStorageAccessFor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.requestStorageAccessFor.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_requestStorageAccessFor 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_requestStorageAccessFor 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_requestStorageAccessFor 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_requestStorageAccessFor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_startViewTransition = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.startViewTransition.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_startViewTransition 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_startViewTransition 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_startViewTransition 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_startViewTransition, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_webkitCancelFullScreen = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.webkitCancelFullScreen.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_webkitCancelFullScreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_webkitCancelFullScreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_webkitCancelFullScreen 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_webkitCancelFullScreen, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_webkitExitFullscreen = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.webkitExitFullscreen.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_webkitExitFullscreen 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_webkitExitFullscreen 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_webkitExitFullscreen 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_webkitExitFullscreen, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_write = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.write.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_write 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_write 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_write 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_write, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_writeln = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.writeln.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_writeln 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_writeln 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_writeln 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_writeln, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_get_fragmentDirective = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.adoptNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_adoptNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_adoptNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_adoptNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_append = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.append.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_append, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_append, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_append, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_captureEvents = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.captureEvents.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_captureEvents, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_captureEvents, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_captureEvents, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_caretRangeFromPoint = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.caretRangeFromPoint.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_caretRangeFromPoint, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_caretRangeFromPoint, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_caretRangeFromPoint, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_clear = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.clear.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_clear, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_clear, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_close = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.close.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_close, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_close, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_createAttribute = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createAttribute.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_createAttribute, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_createAttribute, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_createAttribute, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_createAttributeNS = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createAttributeNS.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_createAttributeNS, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_createAttributeNS, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_createAttributeNS, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_createCDATASection = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createCDATASection.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_createCDATASection, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_createCDATASection, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_createCDATASection, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_createComment = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createComment.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_createComment, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_createComment, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_createComment, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_createDocumentFragment = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createDocumentFragment.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_createDocumentFragment, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_createDocumentFragment, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_createDocumentFragment, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_createElementNS = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createElementNS.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_createElementNS, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_createElementNS, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_createElementNS, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_createEvent = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createEvent.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_createEvent, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_createEvent, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_createEvent, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_createExpression = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createExpression.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_createExpression, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_createExpression, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_createExpression, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_createNSResolver = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createNSResolver.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_createNSResolver, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_createNSResolver, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_createNSResolver, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_createNodeIterator = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createNodeIterator.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_createNodeIterator, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_createNodeIterator, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_createNodeIterator, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_createProcessingInstruction = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createProcessingInstruction.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_createProcessingInstruction, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_createProcessingInstruction, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_createProcessingInstruction, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_createRange = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createRange.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_createRange, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_createRange, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_createRange, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_createTextNode = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createTextNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_createTextNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_createTextNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_createTextNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_createTreeWalker = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createTreeWalker.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_createTreeWalker, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_createTreeWalker, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_createTreeWalker, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_elementFromPoint = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.elementFromPoint.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_elementFromPoint, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_elementFromPoint, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_elementFromPoint, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_elementsFromPoint = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.elementsFromPoint.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_elementsFromPoint, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_elementsFromPoint, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_elementsFromPoint, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_evaluate = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.evaluate.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_evaluate, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_evaluate, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_evaluate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_execCommand = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.execCommand.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_execCommand, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_execCommand, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_execCommand, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_exitFullscreen = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.exitFullscreen.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_exitFullscreen, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_exitFullscreen, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_exitFullscreen, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_exitPointerLock = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.exitPointerLock.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_exitPointerLock, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_exitPointerLock, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_exitPointerLock, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_getElementById = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getElementById.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_getElementById, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_getElementById, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_getElementById, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_getElementsByClassName = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getElementsByClassName.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_getElementsByClassName, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_getElementsByClassName, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_getElementsByClassName, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_getElementsByName = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getElementsByName.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_getElementsByName, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_getElementsByName, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_getElementsByName, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_getElementsByTagName = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getElementsByTagName.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_getElementsByTagName, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_getElementsByTagName, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_getElementsByTagName, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_getElementsByTagNameNS = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getElementsByTagNameNS.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_getElementsByTagNameNS, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_getElementsByTagNameNS, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_getElementsByTagNameNS, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_getSelection = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getSelection.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_getSelection, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_getSelection, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_getSelection, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_hasFocus = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hasFocus.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_hasFocus, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_hasFocus, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_hasFocus, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_importNode = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.importNode.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_importNode, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_importNode, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_importNode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_open = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.open.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_open, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_open, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_open, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_prepend = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.prepend.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_prepend, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_prepend, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_prepend, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_queryCommandEnabled = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.queryCommandEnabled.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_queryCommandEnabled, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_queryCommandEnabled, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_queryCommandEnabled, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_queryCommandIndeterm = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.queryCommandIndeterm.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_queryCommandIndeterm, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_queryCommandIndeterm, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_queryCommandIndeterm, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_queryCommandState = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.queryCommandState.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_queryCommandState, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_queryCommandState, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_queryCommandState, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_queryCommandSupported = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.queryCommandSupported.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_queryCommandSupported, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_queryCommandSupported, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_queryCommandSupported, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_queryCommandValue = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.queryCommandValue.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_queryCommandValue, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_queryCommandValue, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_queryCommandValue, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_querySelector = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.querySelector.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_querySelector, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_querySelector, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_querySelector, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_querySelectorAll = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.querySelectorAll.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_querySelectorAll, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_querySelectorAll, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_querySelectorAll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_releaseEvents = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.releaseEvents.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_releaseEvents, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_releaseEvents, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_releaseEvents, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_replaceChildren = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.replaceChildren.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_replaceChildren, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_replaceChildren, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_replaceChildren, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_webkitCancelFullScreen = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.webkitCancelFullScreen.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_webkitCancelFullScreen, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_webkitCancelFullScreen, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_webkitCancelFullScreen, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_webkitExitFullscreen = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.webkitExitFullscreen.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_webkitExitFullscreen, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_webkitExitFullscreen, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_webkitExitFullscreen, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_write = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.write.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_write, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_write, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_write, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_writeln = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.writeln.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_writeln, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_writeln, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_writeln, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_get_fragmentDirective = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.fragmentDirective; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_fragmentDirective 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_fragmentDirective, 返回object'); break - case "function": - console.log("[*] Document_get_fragmentDirective 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_fragmentDirective, 返回function'); break default: - // string number - console.log("[*] Document_get_fragmentDirective 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_fragmentDirective, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_fragmentDirective, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.Document_browsingTopics = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.browsingTopics.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_browsingTopics 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_browsingTopics 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_browsingTopics 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_browsingTopics, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_hasPrivateToken = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hasPrivateToken.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_hasPrivateToken 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_hasPrivateToken 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_hasPrivateToken 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_hasPrivateToken, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_hasRedemptionRecord = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hasRedemptionRecord.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] Document_hasRedemptionRecord 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] Document_hasRedemptionRecord 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] Document_hasRedemptionRecord 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_hasRedemptionRecord, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.Document_get_onscrollend = function () { - // 非法调用 + +this.Document_get_onbeforematch = function () { let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.onscrollend; - let type = typeof result; - switch (type) { + let result = dom_element.onbeforematch; + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Document_get_onscrollend 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Document_get_onbeforematch, 返回object'); break - case "function": - console.log("[*] Document_get_onscrollend 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Document_get_onbeforematch, 返回function'); break default: - // string number - console.log("[*] Document_get_onscrollend 得到的结果类型没有处理, type =>", type, ", result =>", result); + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onbeforematch, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.Document_set_onbeforematch = function (val) { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Document_set_onbeforematch, set object'); break + case "function": + cbb_wf.console.log('[*] Document_set_onbeforematch, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onbeforematch = val; } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Document_get_onscrollend, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onbeforematch, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); } - return result; } -this.Document_set_onscrollend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Document"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.onscrollend = val; - if (cbb_wf.is_log) { - console.log("[*] Document_set_onscrollend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.DelegatedInkTrailPresenter_get_presentationArea = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DelegatedInkTrailPresenter"); +this.Document_get_timeline = function () { + let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "presentationArea"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.timeline; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_timeline, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_get_timeline, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DelegatedInkTrailPresenter_get_presentationArea, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_timeline, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.DelegatedInkTrailPresenter_get_expectedImprovement = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DelegatedInkTrailPresenter"); +this.Document_get_pictureInPictureEnabled = function () { + let r = cbb_wf.checkIllegal(this, "Document"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "expectedImprovement"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.pictureInPictureEnabled; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_pictureInPictureEnabled, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_get_pictureInPictureEnabled, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DelegatedInkTrailPresenter_get_expectedImprovement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_pictureInPictureEnabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.DelegatedInkTrailPresenter_updateInkTrailStartPoint = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DelegatedInkTrailPresenter"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DelegatedInkTrailPresenter_updateInkTrailStartPoint, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - +this.Document_get_pictureInPictureElement = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.pictureInPictureElement; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_pictureInPictureElement, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_get_pictureInPictureElement, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_pictureInPictureElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} + +this.Document_get_onpointerrawupdate = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onpointerrawupdate; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_get_onpointerrawupdate, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_get_onpointerrawupdate, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_get_onpointerrawupdate, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.Document_set_onpointerrawupdate = function (val) { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Document_set_onpointerrawupdate, set object'); + break + case "function": + cbb_wf.console.log('[*] Document_set_onpointerrawupdate, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onpointerrawupdate = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_set_onpointerrawupdate, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Document_exitPictureInPicture = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.exitPictureInPicture.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_exitPictureInPicture, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_exitPictureInPicture, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_exitPictureInPicture, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.Document_getAnimations = function () { + let r = cbb_wf.checkIllegal(this, "Document"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getAnimations.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] Document_getAnimations, 返回object'); + break + case "function": + cbb_wf.console.log('[*] Document_getAnimations, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Document_getAnimations, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DelayNode_get_delayTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DelayNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "delayTime"); + + let result = cbb_wf.getValue(this, 'delayTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DelayNode_get_delayTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DelayNode_get_delayTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DecompressionStream_get_readable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DecompressionStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "readable"); + + let result = cbb_wf.getValue(this, 'readable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DecompressionStream_get_readable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DecompressionStream_get_readable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DecompressionStream_get_writable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DecompressionStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "writable"); + + let result = cbb_wf.getValue(this, 'writable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DecompressionStream_get_writable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DecompressionStream_get_writable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DataTransferItemList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DataTransferItemList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DataTransferItemList_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransferItemList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DataTransferItemList_add = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DataTransferItemList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DataTransferItemList_add, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DataTransferItemList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransferItemList_add, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DataTransferItemList_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DataTransferItemList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DataTransferItemList_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DataTransferItemList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransferItemList_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DataTransferItemList_remove = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DataTransferItemList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DataTransferItemList_remove, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DataTransferItemList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransferItemList_remove, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DataTransferItem_get_kind = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DataTransferItem"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "kind"); + + let result = cbb_wf.getValue(this, 'kind'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DataTransferItem_get_kind, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransferItem_get_kind, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DataTransferItem_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DataTransferItem"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DataTransferItem_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransferItem_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DataTransferItem_getAsFile = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DataTransferItem"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DataTransferItem_getAsFile, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DataTransferItem"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransferItem_getAsFile, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DataTransferItem_getAsString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DataTransferItem"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DataTransferItem_getAsString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DataTransferItem"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransferItem_getAsString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DataTransferItem_webkitGetAsEntry = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DataTransferItem"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DataTransferItem_webkitGetAsEntry, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DataTransferItem"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransferItem_webkitGetAsEntry, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DataTransferItem_getAsFileSystemHandle = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DataTransferItem"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DataTransferItem_getAsFileSystemHandle, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DataTransferItem"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransferItem_getAsFileSystemHandle, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DataTransfer_get_dropEffect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DataTransfer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "dropEffect"); + + let result = cbb_wf.getValue(this, 'dropEffect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DataTransfer_get_dropEffect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransfer_get_dropEffect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DataTransfer_set_dropEffect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DataTransfer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "dropEffect", val); - if (cbb_wf.is_log) { - console.log("[*] DataTransfer_set_dropEffect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DataTransfer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'dropEffect', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransfer_set_dropEffect, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DataTransfer_get_effectAllowed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DataTransfer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "effectAllowed"); + + let result = cbb_wf.getValue(this, 'effectAllowed'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DataTransfer_get_effectAllowed, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransfer_get_effectAllowed, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DataTransfer_set_effectAllowed = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DataTransfer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "effectAllowed", val); - if (cbb_wf.is_log) { - console.log("[*] DataTransfer_set_effectAllowed, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DataTransfer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'effectAllowed', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransfer_set_effectAllowed, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DataTransfer_get_items = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DataTransfer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "items"); + + let result = cbb_wf.getValue(this, 'items'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DataTransfer_get_items, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransfer_get_items, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DataTransfer_get_types = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DataTransfer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "types"); + + let result = cbb_wf.getValue(this, 'types'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DataTransfer_get_types, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransfer_get_types, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DataTransfer_get_files = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DataTransfer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "files"); + + let result = cbb_wf.getValue(this, 'files'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DataTransfer_get_files, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransfer_get_files, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.DataTransfer_clearData = function () { + let r = cbb_wf.checkIllegal(this, "DataTransfer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransfer_clearData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DataTransfer_getData = function () { + let r = cbb_wf.checkIllegal(this, "DataTransfer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransfer_getData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DataTransfer_setData = function () { + let r = cbb_wf.checkIllegal(this, "DataTransfer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransfer_setData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DataTransfer_setDragImage = function () { + let r = cbb_wf.checkIllegal(this, "DataTransfer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DataTransfer_setDragImage, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.DataTransfer_clearData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DataTransfer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DataTransfer_clearData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DataTransfer_getData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DataTransfer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DataTransfer_getData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DataTransfer_setData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DataTransfer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DataTransfer_setData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DataTransfer_setDragImage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DataTransfer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DataTransfer_setDragImage, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.DOMTokenList_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMTokenList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.entries.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMTokenList_entries 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMTokenList_entries 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMTokenList_entries 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMTokenList_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.DOMTokenList_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMTokenList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.keys.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMTokenList_keys 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMTokenList_keys 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMTokenList_keys 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMTokenList_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.DOMTokenList_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMTokenList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.values.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMTokenList_values 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMTokenList_values 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMTokenList_values 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMTokenList_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.DOMTokenList_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMTokenList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.forEach.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMTokenList_forEach 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMTokenList_forEach 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMTokenList_forEach 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMTokenList_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; - } - -this.DOMTokenList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMTokenList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.entries.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMTokenList_entries, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMTokenList_entries, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.DOMTokenList_keys = function () { + let r = cbb_wf.checkIllegal(this, "DOMTokenList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.keys.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMTokenList_keys, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMTokenList_keys, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.DOMTokenList_values = function () { + let r = cbb_wf.checkIllegal(this, "DOMTokenList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.values.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMTokenList_values, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMTokenList_values, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.DOMTokenList_forEach = function () { + let r = cbb_wf.checkIllegal(this, "DOMTokenList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.forEach.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMTokenList_forEach, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMTokenList_forEach, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.DOMTokenList_get_length = function () { + let r = cbb_wf.checkIllegal(this, "DOMTokenList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.length; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] DOMTokenList_get_length 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] DOMTokenList_get_length, 返回object'); break - case "function": - console.log("[*] DOMTokenList_get_length 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] DOMTokenList_get_length, 返回function'); break default: - // string number - console.log("[*] DOMTokenList_get_length 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMTokenList_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_get_length, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.DOMTokenList_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMTokenList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] DOMTokenList_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] DOMTokenList_get_value, 返回object'); break - case "function": - console.log("[*] DOMTokenList_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] DOMTokenList_get_value, 返回function'); break default: - // string number - console.log("[*] DOMTokenList_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMTokenList_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.DOMTokenList_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMTokenList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] DOMTokenList_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } + let r = cbb_wf.checkIllegal(this, "DOMTokenList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] DOMTokenList_set_value, set object'); + break + case "function": + cbb_wf.console.log('[*] DOMTokenList_set_value, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.DOMTokenList_add = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMTokenList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.add.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMTokenList_add 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMTokenList_add 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMTokenList_add 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMTokenList_add, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DOMTokenList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.add.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMTokenList_add, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMTokenList_add, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_add, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.DOMTokenList_contains = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMTokenList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.contains.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMTokenList_contains 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMTokenList_contains 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMTokenList_contains 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMTokenList_contains, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DOMTokenList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.contains.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMTokenList_contains, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMTokenList_contains, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_contains, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.DOMTokenList_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMTokenList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.item.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMTokenList_item 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMTokenList_item 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMTokenList_item 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMTokenList_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DOMTokenList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.item.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMTokenList_item, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMTokenList_item, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.DOMTokenList_remove = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMTokenList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.remove.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMTokenList_remove 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMTokenList_remove 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMTokenList_remove 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMTokenList_remove, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DOMTokenList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.remove.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMTokenList_remove, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMTokenList_remove, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_remove, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.DOMTokenList_replace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMTokenList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.replace.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMTokenList_replace 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMTokenList_replace 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMTokenList_replace 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMTokenList_replace, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DOMTokenList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.replace.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMTokenList_replace, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMTokenList_replace, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_replace, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.DOMTokenList_supports = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMTokenList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.supports.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMTokenList_supports 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMTokenList_supports 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMTokenList_supports 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMTokenList_supports, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DOMTokenList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.supports.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMTokenList_supports, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMTokenList_supports, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_supports, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.DOMTokenList_toggle = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMTokenList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.toggle.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMTokenList_toggle 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMTokenList_toggle 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMTokenList_toggle 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMTokenList_toggle, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DOMTokenList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.toggle.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMTokenList_toggle, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMTokenList_toggle, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_toggle, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.DOMTokenList_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMTokenList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.toString.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMTokenList_toString 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMTokenList_toString 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMTokenList_toString 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMTokenList_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DOMTokenList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.toString.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMTokenList_toString, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMTokenList_toString, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMTokenList_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMStringList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMStringList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMStringList_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMStringList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMStringList_contains = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMStringList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMStringList_contains, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMStringList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.DOMStringList_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMStringList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMStringList_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMStringList_contains, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } -this.DOMRectReadOnly_fromRect = function () { -let r = cbb_wf.checkIllegal(this, "DOMRectReadOnly"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMRectReadOnly_fromRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); + return result; } -return result; - +this.DOMStringList_item = function () { + let r = cbb_wf.checkIllegal(this, "DOMStringList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMStringList_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; } this.DOMRectReadOnly_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMRectReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMRectReadOnly_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRectReadOnly_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMRectReadOnly_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMRectReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + + let result = cbb_wf.getValue(this, 'y'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMRectReadOnly_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRectReadOnly_get_y, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMRectReadOnly_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMRectReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + + let result = cbb_wf.getValue(this, 'width'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMRectReadOnly_get_width, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRectReadOnly_get_width, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMRectReadOnly_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMRectReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + + let result = cbb_wf.getValue(this, 'height'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMRectReadOnly_get_height, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRectReadOnly_get_height, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMRectReadOnly_get_top = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMRectReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "top"); + + let result = cbb_wf.getValue(this, 'top'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMRectReadOnly_get_top, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRectReadOnly_get_top, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMRectReadOnly_get_right = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMRectReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "right"); + + let result = cbb_wf.getValue(this, 'right'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMRectReadOnly_get_right, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRectReadOnly_get_right, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMRectReadOnly_get_bottom = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMRectReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "bottom"); + + let result = cbb_wf.getValue(this, 'bottom'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMRectReadOnly_get_bottom, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRectReadOnly_get_bottom, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMRectReadOnly_get_left = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMRectReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "left"); + + let result = cbb_wf.getValue(this, 'left'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMRectReadOnly_get_left, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRectReadOnly_get_left, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMRectReadOnly_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMRectReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMRectReadOnly_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMRectReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRectReadOnly_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMRectList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMRectList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMRectList_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRectList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMRectList_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMRectList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMRectList_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMRectList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.DOMRect_fromRect = function () { -let r = cbb_wf.checkIllegal(this, "DOMRect"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRectList_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } - console.log("[*] DOMRect_fromRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - + return result; } this.DOMRect_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMRect"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMRect_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRect_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMRect_set_x = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMRect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "x", val); - if (cbb_wf.is_log) { - console.log("[*] DOMRect_set_x, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMRect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'x', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRect_set_x, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMRect_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMRect"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + + let result = cbb_wf.getValue(this, 'y'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMRect_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRect_get_y, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMRect_set_y = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMRect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "y", val); - if (cbb_wf.is_log) { - console.log("[*] DOMRect_set_y, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMRect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'y', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRect_set_y, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMRect_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMRect"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + + let result = cbb_wf.getValue(this, 'width'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMRect_get_width, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRect_get_width, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMRect_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMRect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "width", val); - if (cbb_wf.is_log) { - console.log("[*] DOMRect_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.DOMRect_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMRect"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + cbb_wf.setValue(this, 'width', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMRect_get_height, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRect_set_width, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.DOMRect_get_height = function () { + let r = cbb_wf.checkIllegal(this, "DOMRect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'height'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRect_get_height, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMRect_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMRect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "height", val); - if (cbb_wf.is_log) { - console.log("[*] DOMRect_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMRect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.DOMQuad_fromQuad = function () { -let r = cbb_wf.checkIllegal(this, "DOMQuad"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" + cbb_wf.setValue(this, 'height', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMRect_set_height, this =>", toString.call(this), ", val => ", '' + val, info); } - console.log("[*] DOMQuad_fromQuad, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.DOMQuad_fromRect = function () { -let r = cbb_wf.checkIllegal(this, "DOMQuad"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMQuad_fromRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - } this.DOMQuad_get_p1 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMQuad"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "p1"); + + let result = cbb_wf.getValue(this, 'p1'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMQuad_get_p1, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMQuad_get_p1, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMQuad_get_p2 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMQuad"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "p2"); + + let result = cbb_wf.getValue(this, 'p2'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMQuad_get_p2, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMQuad_get_p2, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMQuad_get_p3 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMQuad"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "p3"); + + let result = cbb_wf.getValue(this, 'p3'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMQuad_get_p3, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMQuad_get_p3, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMQuad_get_p4 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMQuad"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "p4"); + + let result = cbb_wf.getValue(this, 'p4'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMQuad_get_p4, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMQuad_get_p4, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMQuad_getBounds = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMQuad"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMQuad_getBounds, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMQuad"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.DOMQuad_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMQuad"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMQuad_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMQuad_getBounds, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } -this.DOMPointReadOnly_fromPoint = function () { -let r = cbb_wf.checkIllegal(this, "DOMPointReadOnly"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMPointReadOnly_fromPoint, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); + return result; } -return result; - +this.DOMQuad_toJSON = function () { + let r = cbb_wf.checkIllegal(this, "DOMQuad"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMQuad_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; } this.DOMPointReadOnly_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMPointReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMPointReadOnly_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMPointReadOnly_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMPointReadOnly_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMPointReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + + let result = cbb_wf.getValue(this, 'y'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMPointReadOnly_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMPointReadOnly_get_y, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMPointReadOnly_get_z = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMPointReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "z"); + + let result = cbb_wf.getValue(this, 'z'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMPointReadOnly_get_z, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMPointReadOnly_get_z, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMPointReadOnly_get_w = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMPointReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "w"); + + let result = cbb_wf.getValue(this, 'w'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMPointReadOnly_get_w, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMPointReadOnly_get_w, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMPointReadOnly_matrixTransform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMPointReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMPointReadOnly_matrixTransform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMPointReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.DOMPointReadOnly_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMPointReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMPointReadOnly_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMPointReadOnly_matrixTransform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } -this.DOMPoint_fromPoint = function () { -let r = cbb_wf.checkIllegal(this, "DOMPoint"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMPoint_fromPoint, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); + return result; } -return result; - +this.DOMPointReadOnly_toJSON = function () { + let r = cbb_wf.checkIllegal(this, "DOMPointReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMPointReadOnly_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; } this.DOMPoint_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMPoint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMPoint_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMPoint_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMPoint_set_x = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMPoint"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "x", val); - if (cbb_wf.is_log) { - console.log("[*] DOMPoint_set_x, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMPoint"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'x', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMPoint_set_x, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMPoint_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMPoint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + + let result = cbb_wf.getValue(this, 'y'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMPoint_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMPoint_get_y, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMPoint_set_y = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMPoint"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "y", val); - if (cbb_wf.is_log) { - console.log("[*] DOMPoint_set_y, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMPoint"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'y', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMPoint_set_y, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMPoint_get_z = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMPoint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "z"); + + let result = cbb_wf.getValue(this, 'z'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMPoint_get_z, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMPoint_get_z, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMPoint_set_z = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMPoint"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "z", val); - if (cbb_wf.is_log) { - console.log("[*] DOMPoint_set_z, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.DOMPoint_get_w = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMPoint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "w"); + cbb_wf.setValue(this, 'z', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMPoint_get_w, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMPoint_set_z, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.DOMPoint_get_w = function () { + let r = cbb_wf.checkIllegal(this, "DOMPoint"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'w'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMPoint_get_w, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMPoint_set_w = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMPoint"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "w", val); - if (cbb_wf.is_log) { - console.log("[*] DOMPoint_set_w, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMPoint"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'w', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMPoint_set_w, this =>", toString.call(this), ", val => ", '' + val, info); + } +} + this.DOMParser_parseFromString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMParser"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMParser_parseFromString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMParser"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.DOMMatrixReadOnly_fromFloat32Array = function () { -let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_fromFloat32Array, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.parseFromString.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMParser_parseFromString, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMParser_parseFromString, 返回function'); + break + default: -} -this.DOMMatrixReadOnly_fromFloat64Array = function () { -let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" } - console.log("[*] DOMMatrixReadOnly_fromFloat64Array, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.DOMMatrixReadOnly_fromMatrix = function () { -let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMParser_parseFromString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } - console.log("[*] DOMMatrixReadOnly_fromMatrix, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - + return result; } this.DOMMatrixReadOnly_get_a = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "a"); + + let result = cbb_wf.getValue(this, 'a'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_a, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_a, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_b = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "b"); + + let result = cbb_wf.getValue(this, 'b'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_b, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_b, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_c = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "c"); + + let result = cbb_wf.getValue(this, 'c'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_c, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_c, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_d = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "d"); + + let result = cbb_wf.getValue(this, 'd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_d, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_d, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_e = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "e"); + + let result = cbb_wf.getValue(this, 'e'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_e, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_e, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_f = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "f"); + + let result = cbb_wf.getValue(this, 'f'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_f, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_f, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m11 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m11"); + + let result = cbb_wf.getValue(this, 'm11'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m11, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m11, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m12 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m12"); + + let result = cbb_wf.getValue(this, 'm12'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m12, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m12, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m13 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m13"); + + let result = cbb_wf.getValue(this, 'm13'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m13, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m13, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m14 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m14"); + + let result = cbb_wf.getValue(this, 'm14'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m14, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m14, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m21 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m21"); + + let result = cbb_wf.getValue(this, 'm21'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m21, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m21, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m22 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m22"); + + let result = cbb_wf.getValue(this, 'm22'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m22, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m22, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m23 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m23"); + + let result = cbb_wf.getValue(this, 'm23'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m23, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m23, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m24 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m24"); + + let result = cbb_wf.getValue(this, 'm24'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m24, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m24, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m31 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m31"); + + let result = cbb_wf.getValue(this, 'm31'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m31, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m31, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m32 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m32"); + + let result = cbb_wf.getValue(this, 'm32'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m32, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m32, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m33 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m33"); + + let result = cbb_wf.getValue(this, 'm33'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m33, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m33, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m34 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m34"); + + let result = cbb_wf.getValue(this, 'm34'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m34, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m34, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m41 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m41"); + + let result = cbb_wf.getValue(this, 'm41'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m41, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m41, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m42 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m42"); + + let result = cbb_wf.getValue(this, 'm42'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m42, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m42, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m43 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m43"); + + let result = cbb_wf.getValue(this, 'm43'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m43, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m43, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_m44 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m44"); + + let result = cbb_wf.getValue(this, 'm44'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_m44, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_m44, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_is2D = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "is2D"); + + let result = cbb_wf.getValue(this, 'is2D'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_is2D, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_is2D, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_get_isIdentity = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "isIdentity"); + + let result = cbb_wf.getValue(this, 'isIdentity'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrixReadOnly_get_isIdentity, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_get_isIdentity, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrixReadOnly_flipX = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_flipX, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_flipX, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_flipY = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_flipY, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_flipY, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_inverse = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_inverse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_inverse, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_multiply = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_multiply, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_multiply, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_rotate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_rotate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_rotate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_rotateAxisAngle = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_rotateAxisAngle, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_rotateAxisAngle, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_rotateFromVector = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_rotateFromVector, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_rotateFromVector, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_scale = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_scale, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_scale, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_scale3d = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_scale3d, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_scale3d, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_scaleNonUniform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_scaleNonUniform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_scaleNonUniform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_skewX = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_skewX, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_skewX, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_skewY = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_skewY, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_skewY, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_toFloat32Array = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_toFloat32Array, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_toFloat32Array, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_toFloat64Array = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_toFloat64Array, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_toFloat64Array, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_transformPoint = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_transformPoint, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_transformPoint, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_translate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_translate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_translate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMMatrixReadOnly_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrixReadOnly_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "DOMMatrixReadOnly"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.DOMMatrix_fromFloat32Array = function () { -let r = cbb_wf.checkIllegal(this, "DOMMatrix"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrixReadOnly_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } - console.log("[*] DOMMatrix_fromFloat32Array, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.DOMMatrix_fromFloat64Array = function () { -let r = cbb_wf.checkIllegal(this, "DOMMatrix"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_fromFloat64Array, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.DOMMatrix_fromMatrix = function () { -let r = cbb_wf.checkIllegal(this, "DOMMatrix"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_fromMatrix, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - + return result; } this.DOMMatrix_get_a = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "a"); + + let result = cbb_wf.getValue(this, 'a'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_a, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_a, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_a = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "a", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_a, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'a', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_a, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_b = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "b"); + + let result = cbb_wf.getValue(this, 'b'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_b, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_b, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_b = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "b", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_b, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'b', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_b, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_c = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "c"); + + let result = cbb_wf.getValue(this, 'c'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_c, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_c, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_c = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "c", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_c, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'c', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_c, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_d = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "d"); + + let result = cbb_wf.getValue(this, 'd'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_d, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_d, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_d = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "d", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_d, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'd', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_d, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_e = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "e"); + + let result = cbb_wf.getValue(this, 'e'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_e, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_e, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_e = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "e", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_e, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'e', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_e, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_f = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "f"); + + let result = cbb_wf.getValue(this, 'f'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_f, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_f, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_f = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "f", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_f, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'f', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_f, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m11 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m11"); + + let result = cbb_wf.getValue(this, 'm11'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m11, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m11, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m11 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m11", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m11, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'm11', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m11, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m12 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m12"); + + let result = cbb_wf.getValue(this, 'm12'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m12, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m12, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m12 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m12", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m12, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'm12', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m12, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m13 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m13"); + + let result = cbb_wf.getValue(this, 'm13'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m13, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m13, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m13 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m13", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m13, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'm13', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m13, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m14 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m14"); + + let result = cbb_wf.getValue(this, 'm14'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m14, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m14, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m14 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m14", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m14, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'm14', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m14, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m21 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m21"); + + let result = cbb_wf.getValue(this, 'm21'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m21, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m21, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m21 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m21", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m21, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'm21', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m21, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m22 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m22"); + + let result = cbb_wf.getValue(this, 'm22'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m22, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m22, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m22 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m22", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m22, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'm22', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m22, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m23 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m23"); + + let result = cbb_wf.getValue(this, 'm23'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m23, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m23, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m23 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m23", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m23, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'm23', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m23, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m24 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m24"); + + let result = cbb_wf.getValue(this, 'm24'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m24, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m24, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m24 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m24", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m24, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'm24', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m24, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m31 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m31"); + + let result = cbb_wf.getValue(this, 'm31'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m31, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m31, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m31 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m31", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m31, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'm31', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m31, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m32 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m32"); + + let result = cbb_wf.getValue(this, 'm32'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m32, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m32, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m32 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m32", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m32, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'm32', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m32, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m33 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m33"); + + let result = cbb_wf.getValue(this, 'm33'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m33, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m33, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m33 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m33", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m33, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'm33', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m33, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m34 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m34"); + + let result = cbb_wf.getValue(this, 'm34'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m34, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m34, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m34 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m34", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m34, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'm34', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m34, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m41 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m41"); + + let result = cbb_wf.getValue(this, 'm41'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m41, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m41, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m41 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m41", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m41, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'm41', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m41, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m42 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m42"); + + let result = cbb_wf.getValue(this, 'm42'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m42, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m42, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m42 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m42", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m42, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'm42', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m42, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.DOMMatrix_get_m43 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m43"); + + let result = cbb_wf.getValue(this, 'm43'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m43, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m43, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMMatrix_set_m43 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m43", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m43, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.DOMMatrix_get_m44 = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMMatrix"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "m44"); + cbb_wf.setValue(this, 'm43', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMMatrix_get_m44, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m43, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.DOMMatrix_get_m44 = function () { + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'm44'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_get_m44, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.DOMMatrix_set_m44 = function (val) { + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'm44', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_set_m44, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.DOMMatrix_invertSelf = function () { + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_invertSelf, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DOMMatrix_multiplySelf = function () { + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_multiplySelf, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DOMMatrix_preMultiplySelf = function () { + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_preMultiplySelf, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DOMMatrix_rotateAxisAngleSelf = function () { + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_rotateAxisAngleSelf, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DOMMatrix_rotateFromVectorSelf = function () { + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_rotateFromVectorSelf, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DOMMatrix_rotateSelf = function () { + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_rotateSelf, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DOMMatrix_scale3dSelf = function () { + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_scale3dSelf, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DOMMatrix_scaleSelf = function () { + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_scaleSelf, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DOMMatrix_skewXSelf = function () { + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_skewXSelf, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DOMMatrix_skewYSelf = function () { + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_skewYSelf, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DOMMatrix_translateSelf = function () { + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_translateSelf, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DOMMatrix_setMatrixValue = function () { + let r = cbb_wf.checkIllegal(this, "DOMMatrix"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMMatrix_setMatrixValue, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.DOMMatrix_set_m44 = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "m44", val); - if (cbb_wf.is_log) { - console.log("[*] DOMMatrix_set_m44, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.DOMMatrix_invertSelf = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrix_invertSelf, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DOMMatrix_multiplySelf = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrix_multiplySelf, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DOMMatrix_preMultiplySelf = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrix_preMultiplySelf, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DOMMatrix_rotateAxisAngleSelf = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrix_rotateAxisAngleSelf, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DOMMatrix_rotateFromVectorSelf = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrix_rotateFromVectorSelf, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DOMMatrix_rotateSelf = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrix_rotateSelf, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DOMMatrix_scale3dSelf = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrix_scale3dSelf, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DOMMatrix_scaleSelf = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrix_scaleSelf, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DOMMatrix_skewXSelf = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrix_skewXSelf, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DOMMatrix_skewYSelf = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrix_skewYSelf, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DOMMatrix_translateSelf = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrix_translateSelf, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DOMMatrix_setMatrixValue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMMatrix"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DOMMatrix_setMatrixValue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.DOMImplementation_createDocument = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMImplementation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createDocument.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMImplementation_createDocument 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMImplementation_createDocument 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMImplementation_createDocument 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMImplementation_createDocument, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DOMImplementation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createDocument.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMImplementation_createDocument, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMImplementation_createDocument, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMImplementation_createDocument, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.DOMImplementation_createDocumentType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMImplementation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createDocumentType.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMImplementation_createDocumentType 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMImplementation_createDocumentType 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMImplementation_createDocumentType 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMImplementation_createDocumentType, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DOMImplementation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createDocumentType.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMImplementation_createDocumentType, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMImplementation_createDocumentType, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMImplementation_createDocumentType, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.DOMImplementation_createHTMLDocument = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMImplementation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.createHTMLDocument.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMImplementation_createHTMLDocument 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMImplementation_createHTMLDocument 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMImplementation_createHTMLDocument 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMImplementation_createHTMLDocument, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DOMImplementation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createHTMLDocument.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMImplementation_createHTMLDocument, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMImplementation_createHTMLDocument, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMImplementation_createHTMLDocument, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.DOMImplementation_hasFeature = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DOMImplementation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.hasFeature.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] DOMImplementation_hasFeature 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] DOMImplementation_hasFeature 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMImplementation_hasFeature 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMImplementation_hasFeature, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "DOMImplementation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.hasFeature.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] DOMImplementation_hasFeature, 返回object'); + break + case "function": + cbb_wf.console.log('[*] DOMImplementation_hasFeature, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMImplementation_hasFeature, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.DOMException_get_code = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMException"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.code; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] DOMException_get_code 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] DOMException_get_code 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMException_get_code 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + let result = cbb_wf.getValue(this, 'code'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMException_get_code, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMException_get_code, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.DOMException_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMException"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.name; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] DOMException_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] DOMException_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMException_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMException_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMException_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.DOMException_get_message = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMException"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.message; - let type = typeof result; - switch (type) { - case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] DOMException_get_message 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - case "function": - console.log("[*] DOMException_get_message 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] DOMException_get_message 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } + let result = cbb_wf.getValue(this, 'message'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMException_get_message, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMException_get_message, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.DOMError_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMError"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMError_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMError_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DOMError_get_message = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DOMError"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "message"); + + let result = cbb_wf.getValue(this, 'message'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DOMError_get_message, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DOMError_get_message, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.CustomStateSet_get_size = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomStateSet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "size"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CustomStateSet_get_size, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.CustomStateSet_add = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomStateSet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CustomStateSet_add, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CustomStateSet_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomStateSet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CustomStateSet_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CustomStateSet_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomStateSet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CustomStateSet_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CustomStateSet_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomStateSet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CustomStateSet_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CustomStateSet_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomStateSet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CustomStateSet_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CustomStateSet_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomStateSet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CustomStateSet_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CustomStateSet_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomStateSet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CustomStateSet_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CustomStateSet_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomStateSet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CustomStateSet_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.CustomEvent_get_detail = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CustomEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "detail"); + + let result = cbb_wf.getValue(this, 'detail'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CustomEvent_get_detail, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomEvent_get_detail, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CustomEvent_initCustomEvent = function () { + let r = cbb_wf.checkIllegal(this, "CustomEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomEvent_initCustomEvent, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.CustomEvent_initCustomEvent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CustomEvent_initCustomEvent, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.CustomElementRegistry_define = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomElementRegistry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CustomElementRegistry_define, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CustomElementRegistry"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.define.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CustomElementRegistry_define, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CustomElementRegistry_define, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomElementRegistry_define, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CustomElementRegistry_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomElementRegistry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CustomElementRegistry_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CustomElementRegistry"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.get.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CustomElementRegistry_get, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CustomElementRegistry_get, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomElementRegistry_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CustomElementRegistry_upgrade = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomElementRegistry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CustomElementRegistry_upgrade, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CustomElementRegistry"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.upgrade.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CustomElementRegistry_upgrade, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CustomElementRegistry_upgrade, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomElementRegistry_upgrade, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CustomElementRegistry_whenDefined = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomElementRegistry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CustomElementRegistry_whenDefined, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CustomElementRegistry"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.CustomElementRegistry_getName = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CustomElementRegistry"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CustomElementRegistry_getName, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.whenDefined.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CustomElementRegistry_whenDefined, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CustomElementRegistry_whenDefined, 返回function'); + break + default: + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomElementRegistry_whenDefined, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Crypto_getRandomValues = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Crypto"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Crypto_getRandomValues, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Crypto_get_subtle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Crypto"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "subtle"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Crypto_get_subtle, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Crypto_getRandomValues, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.Crypto_get_subtle = function () { + let r = cbb_wf.checkIllegal(this, "Crypto"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'subtle'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Crypto_get_subtle, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.Crypto_randomUUID = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Crypto"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Crypto_randomUUID, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Crypto"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Crypto_randomUUID, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CountQueuingStrategy_get_highWaterMark = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CountQueuingStrategy"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "highWaterMark"); + + let result = cbb_wf.getValue(this, 'highWaterMark'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CountQueuingStrategy_get_highWaterMark, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CountQueuingStrategy_get_highWaterMark, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CountQueuingStrategy_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CountQueuingStrategy"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + + let result = cbb_wf.getValue(this, 'size'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CountQueuingStrategy_get_size, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CountQueuingStrategy_get_size, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ConvolverNode_get_buffer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ConvolverNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "buffer"); + + let result = cbb_wf.getValue(this, 'buffer'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ConvolverNode_get_buffer, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ConvolverNode_get_buffer, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ConvolverNode_set_buffer = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ConvolverNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "buffer", val); - if (cbb_wf.is_log) { - console.log("[*] ConvolverNode_set_buffer, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.ConvolverNode_get_normalize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ConvolverNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "normalize"); + cbb_wf.setValue(this, 'buffer', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ConvolverNode_get_normalize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ConvolverNode_set_buffer, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - -this.ConvolverNode_set_normalize = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ConvolverNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "normalize", val); - if (cbb_wf.is_log) { - console.log("[*] ConvolverNode_set_normalize, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.ContentVisibilityAutoStateChangeEvent_get_skipped = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ContentVisibilityAutoStateChangeEvent"); +this.ConvolverNode_get_normalize = function () { + let r = cbb_wf.checkIllegal(this, "ConvolverNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "skipped"); + + let result = cbb_wf.getValue(this, 'normalize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ContentVisibilityAutoStateChangeEvent_get_skipped, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ConvolverNode_get_normalize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - +this.ConvolverNode_set_normalize = function (val) { + let r = cbb_wf.checkIllegal(this, "ConvolverNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'normalize', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ConvolverNode_set_normalize, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ConstantSourceNode_get_offset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ConstantSourceNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "offset"); + + let result = cbb_wf.getValue(this, 'offset'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ConstantSourceNode_get_offset, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ConstantSourceNode_get_offset, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CompressionStream_get_readable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CompressionStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "readable"); + + let result = cbb_wf.getValue(this, 'readable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CompressionStream_get_readable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CompressionStream_get_readable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CompressionStream_get_writable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CompressionStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "writable"); + + let result = cbb_wf.getValue(this, 'writable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CompressionStream_get_writable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CompressionStream_get_writable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CompositionEvent_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CompositionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "data"); + + let result = cbb_wf.getValue(this, 'data'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CompositionEvent_get_data, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CompositionEvent_get_data, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CompositionEvent_initCompositionEvent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CompositionEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CompositionEvent_initCompositionEvent, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CompositionEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CompositionEvent_initCompositionEvent, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CloseEvent_get_wasClean = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CloseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "wasClean"); + + let result = cbb_wf.getValue(this, 'wasClean'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CloseEvent_get_wasClean, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CloseEvent_get_wasClean, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CloseEvent_get_code = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CloseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "code"); + + let result = cbb_wf.getValue(this, 'code'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CloseEvent_get_code, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CloseEvent_get_code, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CloseEvent_get_reason = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CloseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "reason"); + + let result = cbb_wf.getValue(this, 'reason'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CloseEvent_get_reason, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CloseEvent_get_reason, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ClipboardEvent_get_clipboardData = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ClipboardEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "clipboardData"); + + let result = cbb_wf.getValue(this, 'clipboardData'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ClipboardEvent_get_clipboardData, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ClipboardEvent_get_clipboardData, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.CharacterData_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CharacterData"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.data; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] CharacterData_get_data 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] CharacterData_get_data, 返回object'); break - case "function": - console.log("[*] CharacterData_get_data 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] CharacterData_get_data, 返回function'); break default: - // string number - console.log("[*] CharacterData_get_data 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterData_get_data, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CharacterData_get_data, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.CharacterData_set_data = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CharacterData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.data = val; - if (cbb_wf.is_log) { - console.log("[*] CharacterData_set_data, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.CharacterData_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CharacterData"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CharacterData_set_data, set object'); + break + case "function": + cbb_wf.console.log('[*] CharacterData_set_data, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.data = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CharacterData_set_data, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.CharacterData_get_length = function () { + let r = cbb_wf.checkIllegal(this, "CharacterData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.length; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] CharacterData_get_length 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] CharacterData_get_length, 返回object'); break - case "function": - console.log("[*] CharacterData_get_length 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] CharacterData_get_length, 返回function'); break default: - // string number - console.log("[*] CharacterData_get_length 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterData_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CharacterData_get_length, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.CharacterData_get_previousElementSibling = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CharacterData"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.previousElementSibling; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] CharacterData_get_previousElementSibling 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] CharacterData_get_previousElementSibling, 返回object'); break - case "function": - console.log("[*] CharacterData_get_previousElementSibling 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] CharacterData_get_previousElementSibling, 返回function'); break default: - // string number - console.log("[*] CharacterData_get_previousElementSibling 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterData_get_previousElementSibling, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CharacterData_get_previousElementSibling, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.CharacterData_get_nextElementSibling = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CharacterData"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.nextElementSibling; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] CharacterData_get_nextElementSibling 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] CharacterData_get_nextElementSibling, 返回object'); break - case "function": - console.log("[*] CharacterData_get_nextElementSibling 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] CharacterData_get_nextElementSibling, 返回function'); break default: - // string number - console.log("[*] CharacterData_get_nextElementSibling 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterData_get_nextElementSibling, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CharacterData_get_nextElementSibling, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.CharacterData_after = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CharacterData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.after.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] CharacterData_after 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] CharacterData_after 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] CharacterData_after 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterData_after, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "CharacterData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.after.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CharacterData_after, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CharacterData_after, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CharacterData_after, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CharacterData_appendData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CharacterData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.appendData.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] CharacterData_appendData 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] CharacterData_appendData 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] CharacterData_appendData 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterData_appendData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "CharacterData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.appendData.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CharacterData_appendData, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CharacterData_appendData, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CharacterData_appendData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CharacterData_before = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CharacterData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.before.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] CharacterData_before 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] CharacterData_before 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] CharacterData_before 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterData_before, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "CharacterData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.before.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CharacterData_before, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CharacterData_before, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CharacterData_before, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CharacterData_deleteData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CharacterData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.deleteData.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] CharacterData_deleteData 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] CharacterData_deleteData 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] CharacterData_deleteData 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterData_deleteData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "CharacterData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.deleteData.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CharacterData_deleteData, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CharacterData_deleteData, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CharacterData_deleteData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CharacterData_insertData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CharacterData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.insertData.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] CharacterData_insertData 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] CharacterData_insertData 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] CharacterData_insertData 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterData_insertData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "CharacterData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.insertData.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CharacterData_insertData, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CharacterData_insertData, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CharacterData_insertData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CharacterData_remove = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CharacterData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.remove.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] CharacterData_remove 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] CharacterData_remove 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] CharacterData_remove 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterData_remove, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "CharacterData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.remove.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CharacterData_remove, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CharacterData_remove, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CharacterData_remove, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CharacterData_replaceData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CharacterData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.replaceData.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] CharacterData_replaceData 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] CharacterData_replaceData 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] CharacterData_replaceData 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterData_replaceData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "CharacterData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.replaceData.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CharacterData_replaceData, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CharacterData_replaceData, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CharacterData_replaceData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CharacterData_replaceWith = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CharacterData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.replaceWith.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] CharacterData_replaceWith 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] CharacterData_replaceWith 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] CharacterData_replaceWith 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterData_replaceWith, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "CharacterData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.replaceWith.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CharacterData_replaceWith, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CharacterData_replaceWith, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CharacterData_replaceWith, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CharacterData_substringData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CharacterData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - let result = dom_element.substringData.apply(dom_element, arguments); - let type = typeof result; - switch (type) { - case "object": - // 套壳 - console.log("[*] CharacterData_substringData 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); - break - - case "function": - console.log("[*] CharacterData_substringData 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; - break - default: - // string number - console.log("[*] CharacterData_substringData 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterData_substringData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); - } - return result; + let r = cbb_wf.checkIllegal(this, "CharacterData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.substringData.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CharacterData_substringData, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CharacterData_substringData, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CharacterData_substringData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_get_canvas = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "canvas"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.canvas; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_canvas, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_canvas, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_canvas, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_canvas, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.CanvasRenderingContext2D_get_globalAlpha = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "globalAlpha"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.globalAlpha; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_globalAlpha, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_globalAlpha, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_globalAlpha, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_globalAlpha, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_globalAlpha = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "globalAlpha", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_globalAlpha, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_globalAlpha, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_globalAlpha, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.globalAlpha = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_globalAlpha, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_globalCompositeOperation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "globalCompositeOperation"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.globalCompositeOperation; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_globalCompositeOperation, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_globalCompositeOperation, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_globalCompositeOperation, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_globalCompositeOperation, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_globalCompositeOperation = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "globalCompositeOperation", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_globalCompositeOperation, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_globalCompositeOperation, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_globalCompositeOperation, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.globalCompositeOperation = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_globalCompositeOperation, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_filter = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "filter"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.filter; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_filter, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_filter, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_filter, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_filter, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_filter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "filter", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_filter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_filter, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_filter, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.filter = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_filter, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_imageSmoothingEnabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "imageSmoothingEnabled"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.imageSmoothingEnabled; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_imageSmoothingEnabled, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_imageSmoothingEnabled, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_imageSmoothingEnabled, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_imageSmoothingEnabled, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_imageSmoothingEnabled = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "imageSmoothingEnabled", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_imageSmoothingEnabled, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_imageSmoothingEnabled, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_imageSmoothingEnabled, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.imageSmoothingEnabled = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_imageSmoothingEnabled, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_imageSmoothingQuality = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "imageSmoothingQuality"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.imageSmoothingQuality; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_imageSmoothingQuality, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_imageSmoothingQuality, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_imageSmoothingQuality, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_imageSmoothingQuality, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_imageSmoothingQuality = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "imageSmoothingQuality", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_imageSmoothingQuality, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_imageSmoothingQuality, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_imageSmoothingQuality, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.imageSmoothingQuality = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_imageSmoothingQuality, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_strokeStyle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "strokeStyle"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.strokeStyle; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_strokeStyle, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_strokeStyle, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_strokeStyle, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_strokeStyle, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_strokeStyle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "strokeStyle", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_strokeStyle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_strokeStyle, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_strokeStyle, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.strokeStyle = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_strokeStyle, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_fillStyle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fillStyle"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fillStyle; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_fillStyle, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_fillStyle, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_fillStyle, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_fillStyle, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_fillStyle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "fillStyle", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_fillStyle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_fillStyle, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_fillStyle, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.fillStyle = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_fillStyle, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_shadowOffsetX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shadowOffsetX"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.shadowOffsetX; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_shadowOffsetX, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_shadowOffsetX, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_shadowOffsetX, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_shadowOffsetX, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_shadowOffsetX = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "shadowOffsetX", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_shadowOffsetX, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_shadowOffsetX, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_shadowOffsetX, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.shadowOffsetX = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_shadowOffsetX, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_shadowOffsetY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shadowOffsetY"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.shadowOffsetY; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_shadowOffsetY, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_shadowOffsetY, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_shadowOffsetY, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_shadowOffsetY, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_shadowOffsetY = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "shadowOffsetY", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_shadowOffsetY, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_shadowOffsetY, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_shadowOffsetY, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.shadowOffsetY = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_shadowOffsetY, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_shadowBlur = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shadowBlur"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.shadowBlur; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_shadowBlur, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_shadowBlur, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_shadowBlur, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_shadowBlur, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_shadowBlur = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "shadowBlur", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_shadowBlur, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_shadowBlur, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_shadowBlur, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.shadowBlur = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_shadowBlur, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_shadowColor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shadowColor"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.shadowColor; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_shadowColor, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_shadowColor, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_shadowColor, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_shadowColor, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_shadowColor = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "shadowColor", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_shadowColor, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_shadowColor, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_shadowColor, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.shadowColor = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_shadowColor, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_lineWidth = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lineWidth"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.lineWidth; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_lineWidth, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_lineWidth, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_lineWidth, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_lineWidth, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_lineWidth = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "lineWidth", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_lineWidth, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_lineWidth, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_lineWidth, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.lineWidth = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_lineWidth, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_lineCap = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lineCap"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.lineCap; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_lineCap, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_lineCap, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_lineCap, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_lineCap, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_lineCap = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "lineCap", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_lineCap, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_lineCap, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_lineCap, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.lineCap = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_lineCap, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_lineJoin = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lineJoin"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.lineJoin; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_lineJoin, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_lineJoin, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_lineJoin, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_lineJoin, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_lineJoin = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "lineJoin", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_lineJoin, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_lineJoin, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_lineJoin, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.lineJoin = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_lineJoin, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_miterLimit = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "miterLimit"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.miterLimit; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_miterLimit, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_miterLimit, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_miterLimit, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_miterLimit, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_miterLimit = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "miterLimit", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_miterLimit, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_miterLimit, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_miterLimit, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.miterLimit = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_miterLimit, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_lineDashOffset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lineDashOffset"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.lineDashOffset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_lineDashOffset, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_lineDashOffset, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_lineDashOffset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_lineDashOffset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_lineDashOffset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "lineDashOffset", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_lineDashOffset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_lineDashOffset, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_lineDashOffset, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.lineDashOffset = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_lineDashOffset, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_font = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "font"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.font; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_font, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_font, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_font, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_font, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_font = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "font", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_font, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_font, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_font, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.font = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_font, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_textAlign = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "textAlign"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.textAlign; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_textAlign, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_textAlign, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_textAlign, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_textAlign, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_textAlign = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "textAlign", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_textAlign, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_textAlign, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_textAlign, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.textAlign = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_textAlign, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_textBaseline = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "textBaseline"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.textBaseline; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_textBaseline, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_textBaseline, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_textBaseline, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_textBaseline, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_textBaseline = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "textBaseline", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_textBaseline, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_textBaseline, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_textBaseline, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.textBaseline = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_textBaseline, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_direction = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "direction"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.direction; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_direction, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_direction, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_direction, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_direction, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_direction = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "direction", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_direction, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_direction, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_direction, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.direction = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_direction, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_fontKerning = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fontKerning"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fontKerning; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_fontKerning, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_fontKerning, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_fontKerning, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_fontKerning, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_fontKerning = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "fontKerning", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_fontKerning, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_fontKerning, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_fontKerning, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.fontKerning = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_fontKerning, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_fontStretch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fontStretch"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fontStretch; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_fontStretch, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_fontStretch, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_fontStretch, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_fontStretch, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_fontStretch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "fontStretch", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_fontStretch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_fontStretch, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_fontStretch, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.fontStretch = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_fontStretch, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_fontVariantCaps = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fontVariantCaps"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fontVariantCaps; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_fontVariantCaps, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_fontVariantCaps, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_fontVariantCaps, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_fontVariantCaps, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_fontVariantCaps = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "fontVariantCaps", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_fontVariantCaps, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_fontVariantCaps, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_fontVariantCaps, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.fontVariantCaps = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_fontVariantCaps, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_letterSpacing = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "letterSpacing"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.letterSpacing; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_letterSpacing, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_letterSpacing, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_letterSpacing, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_letterSpacing, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_letterSpacing = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "letterSpacing", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_letterSpacing, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_letterSpacing, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_letterSpacing, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.letterSpacing = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_letterSpacing, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CanvasRenderingContext2D_get_textRendering = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "textRendering"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.textRendering; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_textRendering, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_textRendering, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_textRendering, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_textRendering, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CanvasRenderingContext2D_set_textRendering = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "textRendering", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_textRendering, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CanvasRenderingContext2D_get_wordSpacing = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "wordSpacing"); + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_textRendering, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_textRendering, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.textRendering = val; + } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasRenderingContext2D_get_wordSpacing, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_textRendering, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.CanvasRenderingContext2D_get_wordSpacing = function () { + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.wordSpacing; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_wordSpacing, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_get_wordSpacing, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_get_wordSpacing, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.CanvasRenderingContext2D_set_wordSpacing = function (val) { + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_wordSpacing, set object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_set_wordSpacing, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.wordSpacing = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_set_wordSpacing, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.CanvasRenderingContext2D_clip = function () { + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.clip.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_clip, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_clip, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_clip, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.CanvasRenderingContext2D_set_wordSpacing = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "wordSpacing", val); - if (cbb_wf.is_log) { - console.log("[*] CanvasRenderingContext2D_set_wordSpacing, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CanvasRenderingContext2D_clip = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_clip, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.CanvasRenderingContext2D_createConicGradient = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_createConicGradient, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createConicGradient.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_createConicGradient, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_createConicGradient, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_createConicGradient, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_createImageData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_createImageData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createImageData.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_createImageData, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_createImageData, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_createImageData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_createLinearGradient = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_createLinearGradient, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createLinearGradient.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_createLinearGradient, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_createLinearGradient, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_createLinearGradient, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_createPattern = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_createPattern, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createPattern.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_createPattern, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_createPattern, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_createPattern, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_createRadialGradient = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_createRadialGradient, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.createRadialGradient.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_createRadialGradient, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_createRadialGradient, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_createRadialGradient, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_drawFocusIfNeeded = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_drawFocusIfNeeded, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.drawFocusIfNeeded.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_drawFocusIfNeeded, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_drawFocusIfNeeded, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_drawFocusIfNeeded, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_drawImage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_drawImage, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.drawImage.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_drawImage, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_drawImage, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_drawImage, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_fill = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_fill, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fill.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_fill, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_fill, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_fill, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_fillText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_fillText, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fillText.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_fillText, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_fillText, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_fillText, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_getContextAttributes = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_getContextAttributes, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getContextAttributes.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_getContextAttributes, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_getContextAttributes, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_getContextAttributes, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_getImageData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_getImageData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getImageData.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_getImageData, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_getImageData, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_getImageData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_getLineDash = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_getLineDash, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getLineDash.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_getLineDash, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_getLineDash, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_getLineDash, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_getTransform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_getTransform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getTransform.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_getTransform, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_getTransform, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_getTransform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_isContextLost = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_isContextLost, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.isContextLost.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_isContextLost, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_isContextLost, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_isContextLost, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_isPointInPath = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_isPointInPath, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.isPointInPath.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_isPointInPath, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_isPointInPath, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_isPointInPath, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_isPointInStroke = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_isPointInStroke, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.isPointInStroke.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_isPointInStroke, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_isPointInStroke, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_isPointInStroke, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_measureText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_measureText, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.measureText.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_measureText, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_measureText, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_measureText, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_putImageData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_putImageData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.putImageData.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_putImageData, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_putImageData, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_putImageData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_reset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_reset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.reset.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_reset, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_reset, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_reset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_roundRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_roundRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.roundRect.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_roundRect, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_roundRect, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_roundRect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_save = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_save, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.save.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_save, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_save, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_save, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_scale = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_scale, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.scale.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_scale, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_scale, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_scale, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_setLineDash = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_setLineDash, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setLineDash.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_setLineDash, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_setLineDash, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_setLineDash, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_setTransform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_setTransform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setTransform.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_setTransform, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_setTransform, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_setTransform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_stroke = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_stroke, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.stroke.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_stroke, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_stroke, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_stroke, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_strokeText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_strokeText, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.strokeText.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_strokeText, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_strokeText, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_strokeText, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_transform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_transform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.transform.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_transform, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_transform, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_transform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_translate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_translate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.translate.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_translate, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_translate, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_translate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_arc = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_arc, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.arc.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_arc, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_arc, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_arc, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_arcTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_arcTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.arcTo.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_arcTo, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_arcTo, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_arcTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_beginPath = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_beginPath, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.beginPath.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_beginPath, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_beginPath, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_beginPath, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_bezierCurveTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_bezierCurveTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.bezierCurveTo.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_bezierCurveTo, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_bezierCurveTo, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_bezierCurveTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_clearRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_clearRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.clearRect.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_clearRect, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_clearRect, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_clearRect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_closePath = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_closePath, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.closePath.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_closePath, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_closePath, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_closePath, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_ellipse = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_ellipse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ellipse.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_ellipse, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_ellipse, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_ellipse, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_fillRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_fillRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.fillRect.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_fillRect, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_fillRect, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_fillRect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_lineTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_lineTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.lineTo.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_lineTo, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_lineTo, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_lineTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_moveTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_moveTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.moveTo.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_moveTo, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_moveTo, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_moveTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_quadraticCurveTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_quadraticCurveTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.quadraticCurveTo.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_quadraticCurveTo, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_quadraticCurveTo, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_quadraticCurveTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_rect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_rect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rect.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_rect, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_rect, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_rect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_resetTransform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_resetTransform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.resetTransform.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_resetTransform, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_resetTransform, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_resetTransform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_restore = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_restore, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.restore.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_restore, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_restore, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_restore, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_rotate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_rotate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rotate.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_rotate, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_rotate, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_rotate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasRenderingContext2D_strokeRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasRenderingContext2D_strokeRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasRenderingContext2D"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.strokeRect.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasRenderingContext2D_strokeRect, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasRenderingContext2D_strokeRect, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasRenderingContext2D_strokeRect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CanvasPattern_setTransform = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasPattern"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasPattern_setTransform, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasPattern"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasPattern_setTransform, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CanvasGradient_addColorStop = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasGradient"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasGradient_addColorStop, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasGradient"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.addColorStop.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CanvasGradient_addColorStop, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CanvasGradient_addColorStop, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasGradient_addColorStop, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CanvasCaptureMediaStreamTrack_get_canvas = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CanvasCaptureMediaStreamTrack"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "canvas"); + + let result = cbb_wf.getValue(this, 'canvas'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CanvasCaptureMediaStreamTrack_get_canvas, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasCaptureMediaStreamTrack_get_canvas, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CanvasCaptureMediaStreamTrack_requestFrame = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CanvasCaptureMediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CanvasCaptureMediaStreamTrack_requestFrame, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CanvasCaptureMediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CanvasCaptureMediaStreamTrack_requestFrame, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSVariableReferenceValue_get_variable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSVariableReferenceValue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "variable"); + + let result = cbb_wf.getValue(this, 'variable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSVariableReferenceValue_get_variable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSVariableReferenceValue_get_variable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSVariableReferenceValue_set_variable = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSVariableReferenceValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "variable", val); - if (cbb_wf.is_log) { - console.log("[*] CSSVariableReferenceValue_set_variable, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSVariableReferenceValue_get_fallback = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSVariableReferenceValue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fallback"); + cbb_wf.setValue(this, 'variable', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSVariableReferenceValue_get_fallback, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSVariableReferenceValue_set_variable, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSVariableReferenceValue_get_fallback = function () { + let r = cbb_wf.checkIllegal(this, "CSSVariableReferenceValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'fallback'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSVariableReferenceValue_get_fallback, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSUnparsedValue_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSUnparsedValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSUnparsedValue_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSUnparsedValue_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSUnparsedValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSUnparsedValue_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSUnparsedValue_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSUnparsedValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSUnparsedValue_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSUnparsedValue_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSUnparsedValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSUnparsedValue_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSUnparsedValue_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSUnparsedValue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSUnparsedValue_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSUnparsedValue_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.CSSUnparsedValue_keys = function () { + let r = cbb_wf.checkIllegal(this, "CSSUnparsedValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSUnparsedValue_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CSSUnparsedValue_values = function () { + let r = cbb_wf.checkIllegal(this, "CSSUnparsedValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSUnparsedValue_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CSSUnparsedValue_forEach = function () { + let r = cbb_wf.checkIllegal(this, "CSSUnparsedValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSUnparsedValue_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CSSUnparsedValue_get_length = function () { + let r = cbb_wf.checkIllegal(this, "CSSUnparsedValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'length'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSUnparsedValue_get_length, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.CSSUnitValue_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSUnitValue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "value"); + + let result = cbb_wf.getValue(this, 'value'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSUnitValue_get_value, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSUnitValue_get_value, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSUnitValue_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSUnitValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "value", val); - if (cbb_wf.is_log) { - console.log("[*] CSSUnitValue_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSUnitValue_get_unit = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSUnitValue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "unit"); + cbb_wf.setValue(this, 'value', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSUnitValue_get_unit, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSUnitValue_set_value, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSUnitValue_get_unit = function () { + let r = cbb_wf.checkIllegal(this, "CSSUnitValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'unit'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSUnitValue_get_unit, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSTranslate_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSTranslate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSTranslate_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTranslate_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSTranslate_set_x = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSTranslate"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "x", val); - if (cbb_wf.is_log) { - console.log("[*] CSSTranslate_set_x, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSTranslate"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'x', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTranslate_set_x, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSTranslate_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSTranslate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + + let result = cbb_wf.getValue(this, 'y'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSTranslate_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTranslate_get_y, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSTranslate_set_y = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSTranslate"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "y", val); - if (cbb_wf.is_log) { - console.log("[*] CSSTranslate_set_y, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSTranslate_get_z = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSTranslate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "z"); + cbb_wf.setValue(this, 'y', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSTranslate_get_z, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTranslate_set_y, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSTranslate_get_z = function () { + let r = cbb_wf.checkIllegal(this, "CSSTranslate"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'z'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTranslate_get_z, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSTranslate_set_z = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSTranslate"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "z", val); - if (cbb_wf.is_log) { - console.log("[*] CSSTranslate_set_z, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSTransition_get_transitionProperty = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSTransition"); + let r = cbb_wf.checkIllegal(this, "CSSTranslate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "transitionProperty"); + cbb_wf.setValue(this, 'z', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSTransition_get_transitionProperty, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTranslate_set_z, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - this.CSSTransformValue_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSTransformValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSTransformValue_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSTransformValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTransformValue_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSTransformValue_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSTransformValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSTransformValue_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSTransformValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTransformValue_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSTransformValue_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSTransformValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSTransformValue_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSTransformValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTransformValue_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSTransformValue_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSTransformValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSTransformValue_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSTransformValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTransformValue_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSTransformValue_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSTransformValue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSTransformValue_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTransformValue_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSTransformValue_get_is2D = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSTransformValue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "is2D"); + + let result = cbb_wf.getValue(this, 'is2D'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSTransformValue_get_is2D, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTransformValue_get_is2D, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSTransformValue_toMatrix = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSTransformValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSTransformValue_toMatrix, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSTransformValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTransformValue_toMatrix, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSTransformComponent_get_is2D = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSTransformComponent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "is2D"); + + let result = cbb_wf.getValue(this, 'is2D'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSTransformComponent_get_is2D, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTransformComponent_get_is2D, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSTransformComponent_set_is2D = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSTransformComponent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'is2D', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTransformComponent_set_is2D, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSTransformComponent_toMatrix = function () { + let r = cbb_wf.checkIllegal(this, "CSSTransformComponent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTransformComponent_toMatrix, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CSSTransformComponent_toString = function () { + let r = cbb_wf.checkIllegal(this, "CSSTransformComponent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTransformComponent_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CSSStyleValue_toString = function () { + let r = cbb_wf.checkIllegal(this, "CSSStyleValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleValue_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.CSSTransformComponent_set_is2D = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSTransformComponent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "is2D", val); - if (cbb_wf.is_log) { - console.log("[*] CSSTransformComponent_set_is2D, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSTransformComponent_toMatrix = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSTransformComponent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSTransformComponent_toMatrix, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSTransformComponent_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSTransformComponent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSTransformComponent_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSStyleValue_parse = function () { -let r = cbb_wf.checkIllegal(this, "CSSStyleValue"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSStyleValue_parse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.CSSStyleValue_parseAll = function () { -let r = cbb_wf.checkIllegal(this, "CSSStyleValue"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSStyleValue_parseAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.CSSStyleValue_toString = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSStyleValue_toString, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.CSSStyleSheet_get_ownerRule = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ownerRule"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.ownerRule; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleSheet_get_ownerRule, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleSheet_get_ownerRule, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSStyleSheet_get_ownerRule, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleSheet_get_ownerRule, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.CSSStyleSheet_get_cssRules = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cssRules"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cssRules; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleSheet_get_cssRules, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleSheet_get_cssRules, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSStyleSheet_get_cssRules, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleSheet_get_cssRules, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.CSSStyleSheet_get_rules = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rules"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.rules; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleSheet_get_rules, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleSheet_get_rules, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSStyleSheet_get_rules, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleSheet_get_rules, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.CSSStyleSheet_addRule = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSStyleSheet_addRule, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.addRule.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleSheet_addRule, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleSheet_addRule, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleSheet_addRule, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CSSStyleSheet_deleteRule = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSStyleSheet_deleteRule, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.deleteRule.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleSheet_deleteRule, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleSheet_deleteRule, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleSheet_deleteRule, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CSSStyleSheet_insertRule = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSStyleSheet_insertRule, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.insertRule.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleSheet_insertRule, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleSheet_insertRule, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleSheet_insertRule, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CSSStyleSheet_removeRule = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSStyleSheet_removeRule, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.removeRule.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleSheet_removeRule, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleSheet_removeRule, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleSheet_removeRule, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CSSStyleSheet_replace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSStyleSheet_replace, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.replace.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleSheet_replace, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleSheet_replace, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleSheet_replace, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CSSStyleSheet_replaceSync = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSStyleSheet_replaceSync, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSStyleSheet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.replaceSync.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleSheet_replaceSync, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleSheet_replaceSync, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleSheet_replaceSync, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CSSStyleRule_get_selectorText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "selectorText"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.selectorText; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleRule_get_selectorText, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleRule_get_selectorText, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSStyleRule_get_selectorText, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleRule_get_selectorText, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CSSStyleRule_set_selectorText = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "selectorText", val); - if (cbb_wf.is_log) { - console.log("[*] CSSStyleRule_set_selectorText, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSStyleRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CSSStyleRule_set_selectorText, set object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleRule_set_selectorText, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.selectorText = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleRule_set_selectorText, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CSSStyleRule_get_style = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "style"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.style; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleRule_get_style, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleRule_get_style, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSStyleRule_get_style, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleRule_get_style, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CSSStyleRule_set_style = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "style", val); - if (cbb_wf.is_log) { - console.log("[*] CSSStyleRule_set_style, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSStyleRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CSSStyleRule_set_style, set object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleRule_set_style, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.style = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleRule_set_style, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CSSStyleRule_get_styleMap = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "styleMap"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.styleMap; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleRule_get_styleMap, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleRule_get_styleMap, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSStyleRule_get_styleMap, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleRule_get_styleMap, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.CSSStyleRule_get_cssRules = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "cssRules"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSStyleRule_get_cssRules, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.CSSStyleRule_deleteRule = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSStyleRule_deleteRule, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSStyleRule_insertRule = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSStyleRule_insertRule, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.CSSStyleDeclaration_get_cssText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cssText"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cssText; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleDeclaration_get_cssText, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleDeclaration_get_cssText, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSStyleDeclaration_get_cssText, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleDeclaration_get_cssText, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CSSStyleDeclaration_set_cssText = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "cssText", val); - if (cbb_wf.is_log) { - console.log("[*] CSSStyleDeclaration_set_cssText, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSStyleDeclaration_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CSSStyleDeclaration_set_cssText, set object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleDeclaration_set_cssText, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.cssText = val; + } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSStyleDeclaration_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleDeclaration_set_cssText, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.CSSStyleDeclaration_get_length = function () { + let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.length; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleDeclaration_get_length, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleDeclaration_get_length, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleDeclaration_get_length, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.CSSStyleDeclaration_get_parentRule = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "parentRule"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.parentRule; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleDeclaration_get_parentRule, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleDeclaration_get_parentRule, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSStyleDeclaration_get_parentRule, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleDeclaration_get_parentRule, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.CSSStyleDeclaration_get_cssFloat = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cssFloat"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cssFloat; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleDeclaration_get_cssFloat, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleDeclaration_get_cssFloat, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSStyleDeclaration_get_cssFloat, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleDeclaration_get_cssFloat, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.CSSStyleDeclaration_set_cssFloat = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CSSStyleDeclaration_set_cssFloat, set object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleDeclaration_set_cssFloat, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.cssFloat = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleDeclaration_set_cssFloat, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.CSSStyleDeclaration_getPropertyPriority = function () { + let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getPropertyPriority.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleDeclaration_getPropertyPriority, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleDeclaration_getPropertyPriority, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleDeclaration_getPropertyPriority, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.CSSStyleDeclaration_set_cssFloat = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "cssFloat", val); - if (cbb_wf.is_log) { - console.log("[*] CSSStyleDeclaration_set_cssFloat, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSStyleDeclaration_getPropertyPriority = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSStyleDeclaration_getPropertyPriority, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.CSSStyleDeclaration_getPropertyValue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSStyleDeclaration_getPropertyValue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.getPropertyValue.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleDeclaration_getPropertyValue, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleDeclaration_getPropertyValue, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleDeclaration_getPropertyValue, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CSSStyleDeclaration_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSStyleDeclaration_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.item.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleDeclaration_item, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleDeclaration_item, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleDeclaration_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CSSStyleDeclaration_removeProperty = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSStyleDeclaration_removeProperty, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.removeProperty.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleDeclaration_removeProperty, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleDeclaration_removeProperty, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleDeclaration_removeProperty, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + this.CSSStyleDeclaration_setProperty = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSStyleDeclaration_setProperty, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSStyleDeclaration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.setProperty.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSStyleDeclaration_setProperty, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSStyleDeclaration_setProperty, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSStyleDeclaration_setProperty, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSSkewY_get_ay = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSSkewY"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ay"); + + let result = cbb_wf.getValue(this, 'ay'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSSkewY_get_ay, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSSkewY_get_ay, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSSkewY_set_ay = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSSkewY"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ay", val); - if (cbb_wf.is_log) { - console.log("[*] CSSSkewY_set_ay, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSSkewY"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ay', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSSkewY_set_ay, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSSkewX_get_ax = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSSkewX"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ax"); + + let result = cbb_wf.getValue(this, 'ax'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSSkewX_get_ax, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSSkewX_get_ax, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSSkewX_set_ax = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSSkewX"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ax", val); - if (cbb_wf.is_log) { - console.log("[*] CSSSkewX_set_ax, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSSkewX"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ax', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSSkewX_set_ax, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSSkew_get_ax = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSSkew"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ax"); + + let result = cbb_wf.getValue(this, 'ax'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSSkew_get_ax, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSSkew_get_ax, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSSkew_set_ax = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSSkew"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ax", val); - if (cbb_wf.is_log) { - console.log("[*] CSSSkew_set_ax, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSSkew_get_ay = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSSkew"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ay"); + cbb_wf.setValue(this, 'ax', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSSkew_get_ay, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSSkew_set_ax, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSSkew_get_ay = function () { + let r = cbb_wf.checkIllegal(this, "CSSSkew"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ay'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSSkew_get_ay, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSSkew_set_ay = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSSkew"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ay", val); - if (cbb_wf.is_log) { - console.log("[*] CSSSkew_set_ay, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSSkew"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ay', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSSkew_set_ay, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSScale_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSScale"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSScale_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSScale_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSScale_set_x = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSScale"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "x", val); - if (cbb_wf.is_log) { - console.log("[*] CSSScale_set_x, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSScale"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'x', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSScale_set_x, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSScale_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSScale"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + + let result = cbb_wf.getValue(this, 'y'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSScale_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSScale_get_y, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSScale_set_y = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSScale"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "y", val); - if (cbb_wf.is_log) { - console.log("[*] CSSScale_set_y, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSScale_get_z = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSScale"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "z"); + cbb_wf.setValue(this, 'y', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSScale_get_z, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSScale_set_y, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSScale_get_z = function () { + let r = cbb_wf.checkIllegal(this, "CSSScale"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'z'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSScale_get_z, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSScale_set_z = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSScale"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "z", val); - if (cbb_wf.is_log) { - console.log("[*] CSSScale_set_z, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSScale"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'z', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSScale_set_z, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSRuleList_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSRuleList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSRuleList_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRuleList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSRuleList_item = function () { + let r = cbb_wf.checkIllegal(this, "CSSRuleList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRuleList_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.CSSRuleList_item = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSRuleList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSRuleList_item, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.CSSRule_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.type; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSRule_get_type, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSRule_get_type, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSRule_get_type, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRule_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.CSSRule_get_cssText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cssText"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.cssText; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSRule_get_cssText, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSRule_get_cssText, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSRule_get_cssText, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRule_get_cssText, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CSSRule_set_cssText = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "cssText", val); - if (cbb_wf.is_log) { - console.log("[*] CSSRule_set_cssText, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSRule_get_parentRule = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "parentRule"); + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CSSRule_set_cssText, set object'); + break + case "function": + cbb_wf.console.log('[*] CSSRule_set_cssText, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.cssText = val; + } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSRule_get_parentRule, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRule_set_cssText, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.CSSRule_get_parentRule = function () { + let r = cbb_wf.checkIllegal(this, "CSSRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.parentRule; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSRule_get_parentRule, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSRule_get_parentRule, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRule_get_parentRule, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.CSSRule_get_parentStyleSheet = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "parentStyleSheet"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.parentStyleSheet; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSRule_get_parentStyleSheet, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSRule_get_parentStyleSheet, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSRule_get_parentStyleSheet, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRule_get_parentStyleSheet, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CSSRotate_get_angle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSRotate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "angle"); + + let result = cbb_wf.getValue(this, 'angle'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSRotate_get_angle, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRotate_get_angle, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSRotate_set_angle = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSRotate"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "angle", val); - if (cbb_wf.is_log) { - console.log("[*] CSSRotate_set_angle, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSRotate"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'angle', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRotate_set_angle, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSRotate_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSRotate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSRotate_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRotate_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSRotate_set_x = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSRotate"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "x", val); - if (cbb_wf.is_log) { - console.log("[*] CSSRotate_set_x, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSRotate"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'x', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRotate_set_x, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSRotate_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSRotate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + + let result = cbb_wf.getValue(this, 'y'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSRotate_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRotate_get_y, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSRotate_set_y = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSRotate"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "y", val); - if (cbb_wf.is_log) { - console.log("[*] CSSRotate_set_y, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSRotate_get_z = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSRotate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "z"); + cbb_wf.setValue(this, 'y', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSRotate_get_z, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRotate_set_y, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSRotate_get_z = function () { + let r = cbb_wf.checkIllegal(this, "CSSRotate"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'z'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRotate_get_z, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSRotate_set_z = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSRotate"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "z", val); - if (cbb_wf.is_log) { - console.log("[*] CSSRotate_set_z, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSRotate"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'z', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSRotate_set_z, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSPropertyRule_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSPropertyRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSPropertyRule_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSPropertyRule_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSPropertyRule_get_syntax = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSPropertyRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "syntax"); + + let result = cbb_wf.getValue(this, 'syntax'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSPropertyRule_get_syntax, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSPropertyRule_get_syntax, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSPropertyRule_get_inherits = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSPropertyRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "inherits"); + + let result = cbb_wf.getValue(this, 'inherits'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSPropertyRule_get_inherits, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSPropertyRule_get_inherits, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSPropertyRule_get_initialValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSPropertyRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "initialValue"); + + let result = cbb_wf.getValue(this, 'initialValue'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSPropertyRule_get_initialValue, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSPropertyRule_get_initialValue, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSPositionValue_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSPositionValue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSPositionValue_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSPositionValue_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSPositionValue_set_x = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSPositionValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "x", val); - if (cbb_wf.is_log) { - console.log("[*] CSSPositionValue_set_x, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSPositionValue_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSPositionValue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + cbb_wf.setValue(this, 'x', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSPositionValue_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSPositionValue_set_x, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionValue_get_y = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'y'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSPositionValue_get_y, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSPositionValue_set_y = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSPositionValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "y", val); - if (cbb_wf.is_log) { - console.log("[*] CSSPositionValue_set_y, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSPositionValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'y', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSPositionValue_set_y, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSPerspective_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSPerspective"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSPerspective_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSPerspective_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSPerspective_set_length = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSPerspective"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "length", val); - if (cbb_wf.is_log) { - console.log("[*] CSSPerspective_set_length, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSPerspective"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'length', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSPerspective_set_length, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSPageRule_get_selectorText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSPageRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "selectorText"); + + let result = cbb_wf.getValue(this, 'selectorText'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSPageRule_get_selectorText, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSPageRule_get_selectorText, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSPageRule_set_selectorText = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSPageRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "selectorText", val); - if (cbb_wf.is_log) { - console.log("[*] CSSPageRule_set_selectorText, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSPageRule_get_style = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSPageRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "style"); + cbb_wf.setValue(this, 'selectorText', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSPageRule_get_style, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSPageRule_set_selectorText, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPageRule_get_style = function () { + let r = cbb_wf.checkIllegal(this, "CSSPageRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'style'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSPageRule_get_style, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSPageRule_set_style = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSPageRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "style", val); - if (cbb_wf.is_log) { - console.log("[*] CSSPageRule_set_style, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSPageRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.CSSNumericValue_parse = function () { -let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" + cbb_wf.setValue(this, 'style', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSPageRule_set_style, this =>", toString.call(this), ", val => ", '' + val, info); } - console.log("[*] CSSNumericValue_parse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - } this.CSSNumericValue_add = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSNumericValue_add, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericValue_add, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSNumericValue_div = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSNumericValue_div, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericValue_div, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSNumericValue_equals = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSNumericValue_equals, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericValue_equals, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSNumericValue_max = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSNumericValue_max, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericValue_max, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSNumericValue_min = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSNumericValue_min, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericValue_min, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSNumericValue_mul = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSNumericValue_mul, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericValue_mul, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSNumericValue_sub = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSNumericValue_sub, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericValue_sub, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSNumericValue_to = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSNumericValue_to, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericValue_to, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSNumericValue_toSum = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSNumericValue_toSum, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericValue_toSum, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSNumericValue_type = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSNumericValue_type, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSNumericValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericValue_type, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSNumericArray_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSNumericArray"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSNumericArray_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSNumericArray_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSNumericArray"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSNumericArray_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSNumericArray_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSNumericArray"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSNumericArray_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSNumericArray_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSNumericArray"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSNumericArray_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSNumericArray_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSNumericArray"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSNumericArray_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericArray_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.CSSNumericArray_keys = function () { + let r = cbb_wf.checkIllegal(this, "CSSNumericArray"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericArray_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CSSNumericArray_values = function () { + let r = cbb_wf.checkIllegal(this, "CSSNumericArray"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericArray_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CSSNumericArray_forEach = function () { + let r = cbb_wf.checkIllegal(this, "CSSNumericArray"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericArray_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CSSNumericArray_get_length = function () { + let r = cbb_wf.checkIllegal(this, "CSSNumericArray"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'length'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNumericArray_get_length, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.CSSNamespaceRule_get_namespaceURI = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSNamespaceRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "namespaceURI"); + + let result = cbb_wf.getValue(this, 'namespaceURI'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSNamespaceRule_get_namespaceURI, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNamespaceRule_get_namespaceURI, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSNamespaceRule_get_prefix = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSNamespaceRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "prefix"); + + let result = cbb_wf.getValue(this, 'prefix'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSNamespaceRule_get_prefix, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSNamespaceRule_get_prefix, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } this.CSSMediaRule_get_media = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSMediaRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "media"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.media; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSMediaRule_get_media, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSMediaRule_get_media, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSMediaRule_get_media, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSMediaRule_get_media, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CSSMediaRule_set_media = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSMediaRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "media", val); - if (cbb_wf.is_log) { - console.log("[*] CSSMediaRule_set_media, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSMediaRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CSSMediaRule_set_media, set object'); + break + case "function": + cbb_wf.console.log('[*] CSSMediaRule_set_media, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.media = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSMediaRule_set_media, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} this.CSSMatrixComponent_get_matrix = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSMatrixComponent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "matrix"); + + let result = cbb_wf.getValue(this, 'matrix'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSMatrixComponent_get_matrix, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSMatrixComponent_get_matrix, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSMatrixComponent_set_matrix = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSMatrixComponent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "matrix", val); - if (cbb_wf.is_log) { - console.log("[*] CSSMatrixComponent_set_matrix, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSMatrixComponent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'matrix', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSMatrixComponent_set_matrix, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSMathValue_get_operator = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSMathValue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "operator"); + + let result = cbb_wf.getValue(this, 'operator'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSMathValue_get_operator, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSMathValue_get_operator, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSMathSum_get_values = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSMathSum"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "values"); + + let result = cbb_wf.getValue(this, 'values'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSMathSum_get_values, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSMathSum_get_values, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSMathProduct_get_values = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSMathProduct"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "values"); + + let result = cbb_wf.getValue(this, 'values'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSMathProduct_get_values, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSMathProduct_get_values, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSMathNegate_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSMathNegate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "value"); + + let result = cbb_wf.getValue(this, 'value'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSMathNegate_get_value, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSMathNegate_get_value, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSMathMin_get_values = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSMathMin"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "values"); + + let result = cbb_wf.getValue(this, 'values'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSMathMin_get_values, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSMathMin_get_values, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSMathMax_get_values = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSMathMax"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "values"); + + let result = cbb_wf.getValue(this, 'values'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSMathMax_get_values, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSMathMax_get_values, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSMathInvert_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSMathInvert"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "value"); + + let result = cbb_wf.getValue(this, 'value'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSMathInvert_get_value, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSMathInvert_get_value, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSMathClamp_get_lower = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSMathClamp"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lower"); + + let result = cbb_wf.getValue(this, 'lower'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSMathClamp_get_lower, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSMathClamp_get_lower, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSMathClamp_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSMathClamp"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "value"); + + let result = cbb_wf.getValue(this, 'value'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSMathClamp_get_value, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSMathClamp_get_value, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSMathClamp_get_upper = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSMathClamp"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "upper"); + + let result = cbb_wf.getValue(this, 'upper'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSMathClamp_get_upper, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSMathClamp_get_upper, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSLayerStatementRule_get_nameList = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSLayerStatementRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "nameList"); + + let result = cbb_wf.getValue(this, 'nameList'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSLayerStatementRule_get_nameList, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSLayerStatementRule_get_nameList, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSLayerBlockRule_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSLayerBlockRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSLayerBlockRule_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSLayerBlockRule_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSKeywordValue_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSKeywordValue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "value"); + + let result = cbb_wf.getValue(this, 'value'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSKeywordValue_get_value, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSKeywordValue_get_value, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSKeywordValue_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSKeywordValue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "value", val); - if (cbb_wf.is_log) { - console.log("[*] CSSKeywordValue_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSKeywordValue"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'value', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSKeywordValue_set_value, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSKeyframesRule_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSKeyframesRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSKeyframesRule_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSKeyframesRule_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSKeyframesRule_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSKeyframesRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "name", val); - if (cbb_wf.is_log) { - console.log("[*] CSSKeyframesRule_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSKeyframesRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'name', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSKeyframesRule_set_name, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSKeyframesRule_get_cssRules = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSKeyframesRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cssRules"); + + let result = cbb_wf.getValue(this, 'cssRules'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSKeyframesRule_get_cssRules, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSKeyframesRule_get_cssRules, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSKeyframesRule_appendRule = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSKeyframesRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSKeyframesRule_appendRule, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSKeyframesRule_deleteRule = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSKeyframesRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSKeyframesRule_deleteRule, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSKeyframesRule_findRule = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSKeyframesRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSKeyframesRule_findRule, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSKeyframesRule_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSKeyframesRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSKeyframesRule_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSKeyframesRule_appendRule, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CSSKeyframesRule_deleteRule = function () { + let r = cbb_wf.checkIllegal(this, "CSSKeyframesRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSKeyframesRule_deleteRule, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CSSKeyframesRule_findRule = function () { + let r = cbb_wf.checkIllegal(this, "CSSKeyframesRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSKeyframesRule_findRule, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - this.CSSKeyframeRule_get_keyText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSKeyframeRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "keyText"); + + let result = cbb_wf.getValue(this, 'keyText'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSKeyframeRule_get_keyText, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSKeyframeRule_get_keyText, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSKeyframeRule_set_keyText = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSKeyframeRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "keyText", val); - if (cbb_wf.is_log) { - console.log("[*] CSSKeyframeRule_set_keyText, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSKeyframeRule_get_style = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSKeyframeRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "style"); + cbb_wf.setValue(this, 'keyText', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSKeyframeRule_get_style, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSKeyframeRule_set_keyText, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSKeyframeRule_get_style = function () { + let r = cbb_wf.checkIllegal(this, "CSSKeyframeRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'style'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSKeyframeRule_get_style, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSKeyframeRule_set_style = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSKeyframeRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "style", val); - if (cbb_wf.is_log) { - console.log("[*] CSSKeyframeRule_set_style, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSKeyframeRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'style', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSKeyframeRule_set_style, this =>", toString.call(this), ", val => ", '' + val, info); + } +} + this.CSSImportRule_get_href = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSImportRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "href"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.href; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSImportRule_get_href, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSImportRule_get_href, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSImportRule_get_href, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSImportRule_get_href, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.CSSImportRule_get_media = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSImportRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "media"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.media; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSImportRule_get_media, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSImportRule_get_media, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSImportRule_get_media, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSImportRule_get_media, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - this.CSSImportRule_set_media = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSImportRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "media", val); - if (cbb_wf.is_log) { - console.log("[*] CSSImportRule_set_media, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSImportRule_get_styleSheet = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSImportRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "styleSheet"); + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] CSSImportRule_set_media, set object'); + break + case "function": + cbb_wf.console.log('[*] CSSImportRule_set_media, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.media = val; + } + if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSImportRule_get_styleSheet, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSImportRule_set_media, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.CSSImportRule_get_styleSheet = function () { + let r = cbb_wf.checkIllegal(this, "CSSImportRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.styleSheet; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSImportRule_get_styleSheet, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSImportRule_get_styleSheet, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSImportRule_get_styleSheet, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.CSSImportRule_get_layerName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSImportRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "layerName"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.layerName; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] CSSImportRule_get_layerName, 返回object'); + break + case "function": + cbb_wf.console.log('[*] CSSImportRule_get_layerName, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSImportRule_get_layerName, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSImportRule_get_layerName, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - -this.CSSImportRule_get_supportsText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSImportRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "supportsText"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSImportRule_get_supportsText, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.CSSGroupingRule_get_cssRules = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSGroupingRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cssRules"); + + let result = cbb_wf.getValue(this, 'cssRules'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSGroupingRule_get_cssRules, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSGroupingRule_get_cssRules, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSGroupingRule_deleteRule = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSGroupingRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSGroupingRule_deleteRule, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CSSGroupingRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSGroupingRule_deleteRule, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CSSGroupingRule_insertRule = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSGroupingRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CSSGroupingRule_insertRule, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CSSFontPaletteValuesRule_get_name = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSFontPaletteValuesRule"); + let r = cbb_wf.checkIllegal(this, "CSSGroupingRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSFontPaletteValuesRule_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSGroupingRule_insertRule, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.CSSFontPaletteValuesRule_get_fontFamily = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSFontPaletteValuesRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "fontFamily"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSFontPaletteValuesRule_get_fontFamily, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.CSSFontPaletteValuesRule_get_basePalette = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSFontPaletteValuesRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "basePalette"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSFontPaletteValuesRule_get_basePalette, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.CSSFontPaletteValuesRule_get_overrideColors = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSFontPaletteValuesRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "overrideColors"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSFontPaletteValuesRule_get_overrideColors, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.CSSFontFaceRule_get_style = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSFontFaceRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "style"); + + let result = cbb_wf.getValue(this, 'style'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSFontFaceRule_get_style, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSFontFaceRule_get_style, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSCounterStyleRule_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSCounterStyleRule_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSCounterStyleRule_set_name = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "name", val); - if (cbb_wf.is_log) { - console.log("[*] CSSCounterStyleRule_set_name, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'name', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_set_name, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSCounterStyleRule_get_system = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "system"); + + let result = cbb_wf.getValue(this, 'system'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSCounterStyleRule_get_system, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_get_system, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSCounterStyleRule_set_system = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "system", val); - if (cbb_wf.is_log) { - console.log("[*] CSSCounterStyleRule_set_system, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'system', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_set_system, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSCounterStyleRule_get_symbols = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "symbols"); + + let result = cbb_wf.getValue(this, 'symbols'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSCounterStyleRule_get_symbols, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_get_symbols, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSCounterStyleRule_set_symbols = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "symbols", val); - if (cbb_wf.is_log) { - console.log("[*] CSSCounterStyleRule_set_symbols, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'symbols', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_set_symbols, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSCounterStyleRule_get_additiveSymbols = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "additiveSymbols"); + + let result = cbb_wf.getValue(this, 'additiveSymbols'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSCounterStyleRule_get_additiveSymbols, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_get_additiveSymbols, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSCounterStyleRule_set_additiveSymbols = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "additiveSymbols", val); - if (cbb_wf.is_log) { - console.log("[*] CSSCounterStyleRule_set_additiveSymbols, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'additiveSymbols', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_set_additiveSymbols, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSCounterStyleRule_get_negative = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "negative"); + + let result = cbb_wf.getValue(this, 'negative'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSCounterStyleRule_get_negative, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_get_negative, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSCounterStyleRule_set_negative = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "negative", val); - if (cbb_wf.is_log) { - console.log("[*] CSSCounterStyleRule_set_negative, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'negative', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_set_negative, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSCounterStyleRule_get_prefix = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "prefix"); + + let result = cbb_wf.getValue(this, 'prefix'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSCounterStyleRule_get_prefix, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_get_prefix, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSCounterStyleRule_set_prefix = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "prefix", val); - if (cbb_wf.is_log) { - console.log("[*] CSSCounterStyleRule_set_prefix, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'prefix', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_set_prefix, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSCounterStyleRule_get_suffix = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "suffix"); + + let result = cbb_wf.getValue(this, 'suffix'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSCounterStyleRule_get_suffix, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_get_suffix, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSCounterStyleRule_set_suffix = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "suffix", val); - if (cbb_wf.is_log) { - console.log("[*] CSSCounterStyleRule_set_suffix, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'suffix', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_set_suffix, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSCounterStyleRule_get_range = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "range"); + + let result = cbb_wf.getValue(this, 'range'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSCounterStyleRule_get_range, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_get_range, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSCounterStyleRule_set_range = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "range", val); - if (cbb_wf.is_log) { - console.log("[*] CSSCounterStyleRule_set_range, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'range', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_set_range, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSCounterStyleRule_get_pad = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pad"); + + let result = cbb_wf.getValue(this, 'pad'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSCounterStyleRule_get_pad, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_get_pad, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSCounterStyleRule_set_pad = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "pad", val); - if (cbb_wf.is_log) { - console.log("[*] CSSCounterStyleRule_set_pad, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'pad', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_set_pad, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CSSCounterStyleRule_get_speakAs = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "speakAs"); + + let result = cbb_wf.getValue(this, 'speakAs'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSCounterStyleRule_get_speakAs, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_get_speakAs, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSCounterStyleRule_set_speakAs = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "speakAs", val); - if (cbb_wf.is_log) { - console.log("[*] CSSCounterStyleRule_set_speakAs, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSCounterStyleRule_get_fallback = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fallback"); + cbb_wf.setValue(this, 'speakAs', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSCounterStyleRule_get_fallback, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_set_speakAs, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSCounterStyleRule_get_fallback = function () { + let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'fallback'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_get_fallback, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CSSCounterStyleRule_set_fallback = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "fallback", val); - if (cbb_wf.is_log) { - console.log("[*] CSSCounterStyleRule_set_fallback, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.CSSContainerRule_get_containerName = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSContainerRule"); + let r = cbb_wf.checkIllegal(this, "CSSCounterStyleRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "containerName"); + cbb_wf.setValue(this, 'fallback', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSContainerRule_get_containerName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSCounterStyleRule_set_fallback, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - -this.CSSContainerRule_get_containerQuery = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSContainerRule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "containerQuery"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSContainerRule_get_containerQuery, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.CSSConditionRule_get_conditionText = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CSSConditionRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "conditionText"); + + let result = cbb_wf.getValue(this, 'conditionText'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSConditionRule_get_conditionText, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSConditionRule_get_conditionText, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.CSSAnimation_get_animationName = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSAnimation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "animationName"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSAnimation_get_animationName, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.ByteLengthQueuingStrategy_get_highWaterMark = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ByteLengthQueuingStrategy"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "highWaterMark"); + + let result = cbb_wf.getValue(this, 'highWaterMark'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ByteLengthQueuingStrategy_get_highWaterMark, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ByteLengthQueuingStrategy_get_highWaterMark, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ByteLengthQueuingStrategy_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ByteLengthQueuingStrategy"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + + let result = cbb_wf.getValue(this, 'size'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ByteLengthQueuingStrategy_get_size, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ByteLengthQueuingStrategy_get_size, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.BrowserCaptureMediaStreamTrack_cropTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BrowserCaptureMediaStreamTrack"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BrowserCaptureMediaStreamTrack_cropTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.BroadcastChannel_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BroadcastChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BroadcastChannel_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BroadcastChannel_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BroadcastChannel_get_onmessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BroadcastChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmessage"); + + let result = cbb_wf.getValue(this, 'onmessage'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BroadcastChannel_get_onmessage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BroadcastChannel_get_onmessage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BroadcastChannel_set_onmessage = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BroadcastChannel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmessage", val); - if (cbb_wf.is_log) { - console.log("[*] BroadcastChannel_set_onmessage, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.BroadcastChannel_get_onmessageerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BroadcastChannel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmessageerror"); + cbb_wf.setValue(this, 'onmessage', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BroadcastChannel_get_onmessageerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BroadcastChannel_set_onmessage, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.BroadcastChannel_get_onmessageerror = function () { + let r = cbb_wf.checkIllegal(this, "BroadcastChannel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onmessageerror'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BroadcastChannel_get_onmessageerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BroadcastChannel_set_onmessageerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BroadcastChannel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmessageerror", val); - if (cbb_wf.is_log) { - console.log("[*] BroadcastChannel_set_onmessageerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "BroadcastChannel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onmessageerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BroadcastChannel_set_onmessageerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.BroadcastChannel_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BroadcastChannel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BroadcastChannel_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BroadcastChannel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BroadcastChannel_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BroadcastChannel_postMessage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BroadcastChannel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BroadcastChannel_postMessage, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BroadcastChannel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BroadcastChannel_postMessage, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BlobEvent_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BlobEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "data"); + + let result = cbb_wf.getValue(this, 'data'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BlobEvent_get_data, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BlobEvent_get_data, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BlobEvent_get_timecode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BlobEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "timecode"); + + let result = cbb_wf.getValue(this, 'timecode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BlobEvent_get_timecode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BlobEvent_get_timecode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Blob_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Blob"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + + let result = cbb_wf.getValue(this, 'size'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Blob_get_size, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Blob_get_size, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Blob_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Blob"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Blob_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Blob_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Blob_arrayBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Blob"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Blob_arrayBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Blob"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Blob_arrayBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Blob_slice = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Blob"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Blob_slice, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Blob"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Blob_slice, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Blob_stream = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Blob"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Blob_stream, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Blob"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Blob_stream, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Blob_text = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Blob"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Blob_text, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Blob"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Blob_text, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BiquadFilterNode_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BiquadFilterNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BiquadFilterNode_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BiquadFilterNode_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BiquadFilterNode_set_type = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BiquadFilterNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "type", val); - if (cbb_wf.is_log) { - console.log("[*] BiquadFilterNode_set_type, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "BiquadFilterNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'type', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BiquadFilterNode_set_type, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.BiquadFilterNode_get_frequency = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BiquadFilterNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "frequency"); + + let result = cbb_wf.getValue(this, 'frequency'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BiquadFilterNode_get_frequency, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BiquadFilterNode_get_frequency, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BiquadFilterNode_get_detune = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BiquadFilterNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "detune"); + + let result = cbb_wf.getValue(this, 'detune'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BiquadFilterNode_get_detune, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BiquadFilterNode_get_detune, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BiquadFilterNode_get_Q = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BiquadFilterNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "Q"); + + let result = cbb_wf.getValue(this, 'Q'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BiquadFilterNode_get_Q, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BiquadFilterNode_get_Q, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BiquadFilterNode_get_gain = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BiquadFilterNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "gain"); + + let result = cbb_wf.getValue(this, 'gain'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BiquadFilterNode_get_gain, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BiquadFilterNode_get_gain, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BiquadFilterNode_getFrequencyResponse = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BiquadFilterNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BiquadFilterNode_getFrequencyResponse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BiquadFilterNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BiquadFilterNode_getFrequencyResponse, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BeforeUnloadEvent_get_returnValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BeforeUnloadEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "returnValue"); + + let result = cbb_wf.getValue(this, 'returnValue'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BeforeUnloadEvent_get_returnValue, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BeforeUnloadEvent_get_returnValue, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BeforeUnloadEvent_set_returnValue = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BeforeUnloadEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "returnValue", val); - if (cbb_wf.is_log) { - console.log("[*] BeforeUnloadEvent_set_returnValue, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "BeforeUnloadEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'returnValue', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BeforeUnloadEvent_set_returnValue, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.BeforeInstallPromptEvent_get_platforms = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BeforeInstallPromptEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "platforms"); + + let result = cbb_wf.getValue(this, 'platforms'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BeforeInstallPromptEvent_get_platforms, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BeforeInstallPromptEvent_get_platforms, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BeforeInstallPromptEvent_get_userChoice = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BeforeInstallPromptEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "userChoice"); + + let result = cbb_wf.getValue(this, 'userChoice'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BeforeInstallPromptEvent_get_userChoice, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BeforeInstallPromptEvent_get_userChoice, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BeforeInstallPromptEvent_prompt = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BeforeInstallPromptEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BeforeInstallPromptEvent_prompt, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BeforeInstallPromptEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BeforeInstallPromptEvent_prompt, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BaseAudioContext_get_destination = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "destination"); + + let result = cbb_wf.getValue(this, 'destination'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BaseAudioContext_get_destination, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_get_destination, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BaseAudioContext_get_currentTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "currentTime"); + + let result = cbb_wf.getValue(this, 'currentTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BaseAudioContext_get_currentTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_get_currentTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BaseAudioContext_get_sampleRate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sampleRate"); + + let result = cbb_wf.getValue(this, 'sampleRate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BaseAudioContext_get_sampleRate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_get_sampleRate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BaseAudioContext_get_listener = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "listener"); + + let result = cbb_wf.getValue(this, 'listener'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BaseAudioContext_get_listener, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_get_listener, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BaseAudioContext_get_state = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "state"); + + let result = cbb_wf.getValue(this, 'state'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BaseAudioContext_get_state, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_get_state, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BaseAudioContext_get_onstatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onstatechange"); + + let result = cbb_wf.getValue(this, 'onstatechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BaseAudioContext_get_onstatechange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_get_onstatechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BaseAudioContext_set_onstatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onstatechange", val); - if (cbb_wf.is_log) { - console.log("[*] BaseAudioContext_set_onstatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.BaseAudioContext_createAnalyser = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createAnalyser, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createBiquadFilter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createBiquadFilter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createBufferSource = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createBufferSource, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createChannelMerger = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createChannelMerger, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createChannelSplitter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createChannelSplitter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createConstantSource = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createConstantSource, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createConvolver = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createConvolver, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createDelay = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createDelay, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createDynamicsCompressor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createDynamicsCompressor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createGain = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createGain, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createIIRFilter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createIIRFilter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createOscillator = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createOscillator, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createPanner = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createPanner, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createPeriodicWave = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createPeriodicWave, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createScriptProcessor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createScriptProcessor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createStereoPanner = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createStereoPanner, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_createWaveShaper = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_createWaveShaper, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_decodeAudioData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BaseAudioContext_decodeAudioData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BaseAudioContext_get_audioWorklet = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "audioWorklet"); + cbb_wf.setValue(this, 'onstatechange', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BaseAudioContext_get_audioWorklet, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_set_onstatechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.BaseAudioContext_createAnalyser = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createAnalyser, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.BaseAudioContext_createBiquadFilter = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createBiquadFilter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createBuffer = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createBufferSource = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createBufferSource, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createChannelMerger = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createChannelMerger, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createChannelSplitter = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createChannelSplitter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createConstantSource = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createConstantSource, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createConvolver = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createConvolver, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createDelay = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createDelay, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createDynamicsCompressor = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createDynamicsCompressor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createGain = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createGain, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createIIRFilter = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createIIRFilter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createOscillator = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createOscillator, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createPanner = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createPanner, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createPeriodicWave = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createPeriodicWave, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createScriptProcessor = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createScriptProcessor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createStereoPanner = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createStereoPanner, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_createWaveShaper = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_createWaveShaper, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_decodeAudioData = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_decodeAudioData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BaseAudioContext_get_audioWorklet = function () { + let r = cbb_wf.checkIllegal(this, "BaseAudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'audioWorklet'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BaseAudioContext_get_audioWorklet, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.BarProp_get_visible = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BarProp"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "visible"); + + let result = cbb_wf.getValue(this, 'visible'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BarProp_get_visible, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BarProp_get_visible, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioWorkletNode_get_parameters = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioWorkletNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "parameters"); + + let result = cbb_wf.getValue(this, 'parameters'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioWorkletNode_get_parameters, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioWorkletNode_get_parameters, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioWorkletNode_get_port = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioWorkletNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "port"); + + let result = cbb_wf.getValue(this, 'port'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioWorkletNode_get_port, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioWorkletNode_get_port, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioWorkletNode_get_onprocessorerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioWorkletNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onprocessorerror"); + + let result = cbb_wf.getValue(this, 'onprocessorerror'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioWorkletNode_get_onprocessorerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioWorkletNode_get_onprocessorerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioWorkletNode_set_onprocessorerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioWorkletNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onprocessorerror", val); - if (cbb_wf.is_log) { - console.log("[*] AudioWorkletNode_set_onprocessorerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.AudioSinkInfo_get_type = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioSinkInfo"); + let r = cbb_wf.checkIllegal(this, "AudioWorkletNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + cbb_wf.setValue(this, 'onprocessorerror', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioSinkInfo_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioWorkletNode_set_onprocessorerror, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - this.AudioScheduledSourceNode_get_onended = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioScheduledSourceNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onended"); + + let result = cbb_wf.getValue(this, 'onended'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioScheduledSourceNode_get_onended, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioScheduledSourceNode_get_onended, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioScheduledSourceNode_set_onended = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioScheduledSourceNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onended", val); - if (cbb_wf.is_log) { - console.log("[*] AudioScheduledSourceNode_set_onended, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "AudioScheduledSourceNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onended', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioScheduledSourceNode_set_onended, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.AudioScheduledSourceNode_start = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioScheduledSourceNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioScheduledSourceNode_start, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioScheduledSourceNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioScheduledSourceNode_start, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioScheduledSourceNode_stop = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioScheduledSourceNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioScheduledSourceNode_stop, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioScheduledSourceNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioScheduledSourceNode_stop, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioProcessingEvent_get_playbackTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioProcessingEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "playbackTime"); + + let result = cbb_wf.getValue(this, 'playbackTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioProcessingEvent_get_playbackTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioProcessingEvent_get_playbackTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioProcessingEvent_get_inputBuffer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioProcessingEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "inputBuffer"); + + let result = cbb_wf.getValue(this, 'inputBuffer'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioProcessingEvent_get_inputBuffer, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioProcessingEvent_get_inputBuffer, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioProcessingEvent_get_outputBuffer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioProcessingEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "outputBuffer"); + + let result = cbb_wf.getValue(this, 'outputBuffer'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioProcessingEvent_get_outputBuffer, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioProcessingEvent_get_outputBuffer, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioParamMap_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioParamMap"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + + let result = cbb_wf.getValue(this, 'size'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioParamMap_get_size, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParamMap_get_size, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioParamMap_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParamMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioParamMap_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioParamMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParamMap_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioParamMap_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParamMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioParamMap_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioParamMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParamMap_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioParamMap_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParamMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioParamMap_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioParamMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParamMap_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioParamMap_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParamMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioParamMap_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioParamMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParamMap_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioParamMap_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParamMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioParamMap_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioParamMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParamMap_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioParamMap_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParamMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioParamMap_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioParamMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParamMap_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioParam_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioParam"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "value"); + + let result = cbb_wf.getValue(this, 'value'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioParam_get_value, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParam_get_value, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioParam_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParam"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "value", val); - if (cbb_wf.is_log) { - console.log("[*] AudioParam_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "AudioParam"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'value', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParam_set_value, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.AudioParam_get_automationRate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioParam"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "automationRate"); + + let result = cbb_wf.getValue(this, 'automationRate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioParam_get_automationRate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParam_get_automationRate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioParam_set_automationRate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParam"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "automationRate", val); - if (cbb_wf.is_log) { - console.log("[*] AudioParam_set_automationRate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "AudioParam"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'automationRate', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParam_set_automationRate, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.AudioParam_get_defaultValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioParam"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "defaultValue"); + + let result = cbb_wf.getValue(this, 'defaultValue'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioParam_get_defaultValue, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParam_get_defaultValue, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioParam_get_minValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioParam"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "minValue"); + + let result = cbb_wf.getValue(this, 'minValue'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioParam_get_minValue, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParam_get_minValue, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioParam_get_maxValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioParam"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "maxValue"); + + let result = cbb_wf.getValue(this, 'maxValue'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioParam_get_maxValue, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParam_get_maxValue, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioParam_cancelAndHoldAtTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParam"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioParam_cancelAndHoldAtTime, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioParam"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParam_cancelAndHoldAtTime, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioParam_cancelScheduledValues = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParam"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioParam_cancelScheduledValues, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioParam"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParam_cancelScheduledValues, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioParam_exponentialRampToValueAtTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParam"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioParam_exponentialRampToValueAtTime, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioParam"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParam_exponentialRampToValueAtTime, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioParam_linearRampToValueAtTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParam"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioParam_linearRampToValueAtTime, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioParam"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParam_linearRampToValueAtTime, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioParam_setTargetAtTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParam"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioParam_setTargetAtTime, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioParam"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParam_setTargetAtTime, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioParam_setValueAtTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParam"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioParam_setValueAtTime, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioParam"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParam_setValueAtTime, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioParam_setValueCurveAtTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioParam"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioParam_setValueCurveAtTime, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioParam"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioParam_setValueCurveAtTime, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioNode_get_context = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "context"); + + let result = cbb_wf.getValue(this, 'context'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioNode_get_context, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioNode_get_context, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioNode_get_numberOfInputs = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "numberOfInputs"); + + let result = cbb_wf.getValue(this, 'numberOfInputs'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioNode_get_numberOfInputs, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioNode_get_numberOfInputs, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioNode_get_numberOfOutputs = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "numberOfOutputs"); + + let result = cbb_wf.getValue(this, 'numberOfOutputs'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioNode_get_numberOfOutputs, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioNode_get_numberOfOutputs, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioNode_get_channelCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "channelCount"); + + let result = cbb_wf.getValue(this, 'channelCount'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioNode_get_channelCount, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioNode_get_channelCount, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioNode_set_channelCount = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "channelCount", val); - if (cbb_wf.is_log) { - console.log("[*] AudioNode_set_channelCount, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "AudioNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'channelCount', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioNode_set_channelCount, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.AudioNode_get_channelCountMode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "channelCountMode"); + + let result = cbb_wf.getValue(this, 'channelCountMode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioNode_get_channelCountMode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioNode_get_channelCountMode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioNode_set_channelCountMode = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "channelCountMode", val); - if (cbb_wf.is_log) { - console.log("[*] AudioNode_set_channelCountMode, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.AudioNode_get_channelInterpretation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "channelInterpretation"); + cbb_wf.setValue(this, 'channelCountMode', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioNode_get_channelInterpretation, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioNode_set_channelCountMode, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.AudioNode_get_channelInterpretation = function () { + let r = cbb_wf.checkIllegal(this, "AudioNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'channelInterpretation'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioNode_get_channelInterpretation, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioNode_set_channelInterpretation = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "channelInterpretation", val); - if (cbb_wf.is_log) { - console.log("[*] AudioNode_set_channelInterpretation, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "AudioNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'channelInterpretation', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioNode_set_channelInterpretation, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.AudioNode_connect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioNode_connect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioNode_connect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioNode_disconnect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioNode_disconnect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioNode_disconnect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioListener_get_positionX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioListener"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "positionX"); + + let result = cbb_wf.getValue(this, 'positionX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioListener_get_positionX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioListener_get_positionX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioListener_get_positionY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioListener"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "positionY"); + + let result = cbb_wf.getValue(this, 'positionY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioListener_get_positionY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioListener_get_positionY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioListener_get_positionZ = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioListener"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "positionZ"); + + let result = cbb_wf.getValue(this, 'positionZ'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioListener_get_positionZ, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioListener_get_positionZ, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioListener_get_forwardX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioListener"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "forwardX"); + + let result = cbb_wf.getValue(this, 'forwardX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioListener_get_forwardX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioListener_get_forwardX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioListener_get_forwardY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioListener"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "forwardY"); + + let result = cbb_wf.getValue(this, 'forwardY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioListener_get_forwardY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioListener_get_forwardY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioListener_get_forwardZ = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioListener"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "forwardZ"); + + let result = cbb_wf.getValue(this, 'forwardZ'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioListener_get_forwardZ, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioListener_get_forwardZ, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioListener_get_upX = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioListener"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "upX"); + + let result = cbb_wf.getValue(this, 'upX'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioListener_get_upX, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioListener_get_upX, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioListener_get_upY = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioListener"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "upY"); + + let result = cbb_wf.getValue(this, 'upY'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioListener_get_upY, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioListener_get_upY, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioListener_get_upZ = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioListener"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "upZ"); + + let result = cbb_wf.getValue(this, 'upZ'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioListener_get_upZ, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioListener_get_upZ, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioListener_setOrientation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioListener"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioListener_setOrientation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioListener"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioListener_setOrientation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioListener_setPosition = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioListener"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioListener_setPosition, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioListener"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioListener_setPosition, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioDestinationNode_get_maxChannelCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioDestinationNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "maxChannelCount"); + + let result = cbb_wf.getValue(this, 'maxChannelCount'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioDestinationNode_get_maxChannelCount, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioDestinationNode_get_maxChannelCount, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.AudioData_get_format = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "format"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioData_get_format, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.AudioData_get_sampleRate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "sampleRate"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioData_get_sampleRate, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.AudioData_get_numberOfFrames = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "numberOfFrames"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioData_get_numberOfFrames, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.AudioData_get_numberOfChannels = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "numberOfChannels"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioData_get_numberOfChannels, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.AudioData_get_duration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "duration"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioData_get_duration, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.AudioData_get_timestamp = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "timestamp"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioData_get_timestamp, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.AudioData_allocationSize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioData_allocationSize, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioData_clone = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioData_clone, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioData_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioData_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioData_copyTo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioData_copyTo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.AudioContext_get_baseLatency = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseLatency"); + + let result = cbb_wf.getValue(this, 'baseLatency'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioContext_get_baseLatency, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioContext_get_baseLatency, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioContext_get_outputLatency = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "outputLatency"); + + let result = cbb_wf.getValue(this, 'outputLatency'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioContext_get_outputLatency, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioContext_get_outputLatency, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioContext_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioContext_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioContext_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioContext_createMediaElementSource = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioContext_createMediaElementSource, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioContext_createMediaElementSource, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioContext_createMediaStreamDestination = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioContext_createMediaStreamDestination, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioContext_createMediaStreamDestination, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioContext_createMediaStreamSource = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioContext_createMediaStreamSource, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioContext_createMediaStreamSource, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioContext_getOutputTimestamp = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioContext_getOutputTimestamp, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioContext_getOutputTimestamp, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioContext_resume = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioContext_resume, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioContext_resume, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioContext_suspend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioContext_suspend, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioContext_get_sinkId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioContext"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sinkId"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioContext_get_sinkId, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioContext_suspend, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.AudioContext_get_onsinkchange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onsinkchange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioContext_get_onsinkchange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.AudioContext_set_onsinkchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onsinkchange", val); - if (cbb_wf.is_log) { - console.log("[*] AudioContext_set_onsinkchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.AudioContext_setSinkId = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioContext_setSinkId, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.AudioBufferSourceNode_get_buffer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "buffer"); + + let result = cbb_wf.getValue(this, 'buffer'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioBufferSourceNode_get_buffer, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBufferSourceNode_get_buffer, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioBufferSourceNode_set_buffer = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "buffer", val); - if (cbb_wf.is_log) { - console.log("[*] AudioBufferSourceNode_set_buffer, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'buffer', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBufferSourceNode_set_buffer, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.AudioBufferSourceNode_get_playbackRate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "playbackRate"); + + let result = cbb_wf.getValue(this, 'playbackRate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioBufferSourceNode_get_playbackRate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBufferSourceNode_get_playbackRate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioBufferSourceNode_get_detune = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "detune"); + + let result = cbb_wf.getValue(this, 'detune'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioBufferSourceNode_get_detune, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBufferSourceNode_get_detune, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioBufferSourceNode_get_loop = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "loop"); + + let result = cbb_wf.getValue(this, 'loop'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioBufferSourceNode_get_loop, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBufferSourceNode_get_loop, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioBufferSourceNode_set_loop = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "loop", val); - if (cbb_wf.is_log) { - console.log("[*] AudioBufferSourceNode_set_loop, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'loop', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBufferSourceNode_set_loop, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.AudioBufferSourceNode_get_loopStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "loopStart"); + + let result = cbb_wf.getValue(this, 'loopStart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioBufferSourceNode_get_loopStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBufferSourceNode_get_loopStart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioBufferSourceNode_set_loopStart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "loopStart", val); - if (cbb_wf.is_log) { - console.log("[*] AudioBufferSourceNode_set_loopStart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.AudioBufferSourceNode_get_loopEnd = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "loopEnd"); + cbb_wf.setValue(this, 'loopStart', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioBufferSourceNode_get_loopEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBufferSourceNode_set_loopStart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.AudioBufferSourceNode_get_loopEnd = function () { + let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'loopEnd'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBufferSourceNode_get_loopEnd, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioBufferSourceNode_set_loopEnd = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "loopEnd", val); - if (cbb_wf.is_log) { - console.log("[*] AudioBufferSourceNode_set_loopEnd, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'loopEnd', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBufferSourceNode_set_loopEnd, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.AudioBufferSourceNode_start = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioBufferSourceNode_start, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AudioBufferSourceNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBufferSourceNode_start, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AudioBuffer_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioBuffer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + + let result = cbb_wf.getValue(this, 'length'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioBuffer_get_length, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBuffer_get_length, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioBuffer_get_duration = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioBuffer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "duration"); + + let result = cbb_wf.getValue(this, 'duration'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioBuffer_get_duration, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBuffer_get_duration, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioBuffer_get_sampleRate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioBuffer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sampleRate"); + + let result = cbb_wf.getValue(this, 'sampleRate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioBuffer_get_sampleRate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBuffer_get_sampleRate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AudioBuffer_get_numberOfChannels = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AudioBuffer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "numberOfChannels"); + + let result = cbb_wf.getValue(this, 'numberOfChannels'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioBuffer_get_numberOfChannels, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBuffer_get_numberOfChannels, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.AudioBuffer_copyFromChannel = function () { + let r = cbb_wf.checkIllegal(this, "AudioBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBuffer_copyFromChannel, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioBuffer_copyToChannel = function () { + let r = cbb_wf.checkIllegal(this, "AudioBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBuffer_copyToChannel, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioBuffer_getChannelData = function () { + let r = cbb_wf.checkIllegal(this, "AudioBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioBuffer_getChannelData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.AudioBuffer_copyFromChannel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioBuffer_copyFromChannel, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioBuffer_copyToChannel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioBuffer_copyToChannel, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioBuffer_getChannelData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioBuffer_getChannelData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.Attr_get_namespaceURI = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Attr"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.namespaceURI; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Attr_get_namespaceURI 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Attr_get_namespaceURI, 返回object'); break - case "function": - console.log("[*] Attr_get_namespaceURI 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Attr_get_namespaceURI, 返回function'); break default: - // string number - console.log("[*] Attr_get_namespaceURI 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Attr_get_namespaceURI, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Attr_get_namespaceURI, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Attr_get_prefix = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Attr"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.prefix; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Attr_get_prefix 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Attr_get_prefix, 返回object'); break - case "function": - console.log("[*] Attr_get_prefix 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Attr_get_prefix, 返回function'); break default: - // string number - console.log("[*] Attr_get_prefix 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Attr_get_prefix, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Attr_get_prefix, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Attr_get_localName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Attr"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.localName; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Attr_get_localName 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Attr_get_localName, 返回object'); break - case "function": - console.log("[*] Attr_get_localName 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Attr_get_localName, 返回function'); break default: - // string number - console.log("[*] Attr_get_localName 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Attr_get_localName, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Attr_get_localName, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Attr_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Attr"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.name; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Attr_get_name 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Attr_get_name, 返回object'); break - case "function": - console.log("[*] Attr_get_name 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Attr_get_name, 返回function'); break default: - // string number - console.log("[*] Attr_get_name 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Attr_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Attr_get_name, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Attr_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Attr"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.value; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Attr_get_value 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Attr_get_value, 返回object'); break - case "function": - console.log("[*] Attr_get_value 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Attr_get_value, 返回function'); break default: - // string number - console.log("[*] Attr_get_value 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Attr_get_value, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Attr_get_value, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.Attr_set_value = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Attr"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 获取到jsdom对象 - let dom_element = cbb_wf.getValue(this, "dom_element"); - dom_element.value = val; - if (cbb_wf.is_log) { - console.log("[*] Attr_set_value, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - } -this.Attr_get_ownerElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Attr"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] Attr_set_value, set object'); + break + case "function": + cbb_wf.console.log('[*] Attr_set_value, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.value = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Attr_set_value, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.Attr_get_ownerElement = function () { + let r = cbb_wf.checkIllegal(this, "Attr"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.ownerElement; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Attr_get_ownerElement 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Attr_get_ownerElement, 返回object'); break - case "function": - console.log("[*] Attr_get_ownerElement 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Attr_get_ownerElement, 返回function'); break default: - // string number - console.log("[*] Attr_get_ownerElement 得到的结果类型没有处理, type =>", type, ", result =>", result); - break + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Attr_get_ownerElement, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Attr_get_ownerElement, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } + this.Attr_get_specified = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Attr"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - // 获取到jsdom对象 let dom_element = cbb_wf.getValue(this, "dom_element"); let result = dom_element.specified; - let type = typeof result; - switch (type) { + switch (typeof result) { case "object": - // 套壳 - // result[Symbol.toStringTag] - console.log("[*] Attr_get_specified 得到的结果类型为Object, result =>", result); - result = result && ctx.my_api.getWrapperObject(result); + cbb_wf.console.log('[*] Attr_get_specified, 返回object'); break - case "function": - console.log("[*] Attr_get_specified 得到的结果类型为function, result =>", result); - break - case "number": - result.__proto__ = ctx.Number.prototype; - break - case "string": - result.__proto__ = ctx.String.prototype; - break - case "boolean": - result.__proto__ = ctx.Boolean.prototype; + cbb_wf.console.log('[*] Attr_get_specified, 返回function'); break default: - // string number - console.log("[*] Attr_get_specified 得到的结果类型没有处理, type =>", type, ", result =>", result); - break - } - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Attr_get_specified, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.AnimationTimeline_get_currentTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnimationTimeline"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "currentTime"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AnimationTimeline_get_currentTime, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.AnimationTimeline_get_duration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnimationTimeline"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "duration"); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AnimationTimeline_get_duration, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Attr_get_specified, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } - -this.AnimationPlaybackEvent_get_currentTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnimationPlaybackEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "currentTime"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AnimationPlaybackEvent_get_currentTime, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.AnimationPlaybackEvent_get_timelineTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnimationPlaybackEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "timelineTime"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AnimationPlaybackEvent_get_timelineTime, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.AnimationEvent_get_animationName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AnimationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "animationName"); + + let result = cbb_wf.getValue(this, 'animationName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AnimationEvent_get_animationName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnimationEvent_get_animationName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AnimationEvent_get_elapsedTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AnimationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "elapsedTime"); + + let result = cbb_wf.getValue(this, 'elapsedTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AnimationEvent_get_elapsedTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnimationEvent_get_elapsedTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AnimationEvent_get_pseudoElement = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AnimationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pseudoElement"); + + let result = cbb_wf.getValue(this, 'pseudoElement'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AnimationEvent_get_pseudoElement, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnimationEvent_get_pseudoElement, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AnimationEffect_getComputedTiming = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnimationEffect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AnimationEffect_getComputedTiming, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AnimationEffect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnimationEffect_getComputedTiming, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AnimationEffect_getTiming = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnimationEffect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AnimationEffect_getTiming, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AnimationEffect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnimationEffect_getTiming, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AnimationEffect_updateTiming = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnimationEffect"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AnimationEffect_updateTiming, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AnimationEffect"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnimationEffect_updateTiming, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Animation_get_effect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Animation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "effect"); + + let result = cbb_wf.getValue(this, 'effect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_effect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_get_effect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Animation_set_effect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "effect", val); - if (cbb_wf.is_log) { - console.log("[*] Animation_set_effect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Animation_get_timeline = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Animation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "timeline"); + cbb_wf.setValue(this, 'effect', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_timeline, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_set_effect, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - -this.Animation_set_timeline = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "timeline", val); - if (cbb_wf.is_log) { - console.log("[*] Animation_set_timeline, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } this.Animation_get_startTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Animation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "startTime"); + + let result = cbb_wf.getValue(this, 'startTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_startTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_get_startTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Animation_set_startTime = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "startTime", val); - if (cbb_wf.is_log) { - console.log("[*] Animation_set_startTime, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'startTime', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_set_startTime, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Animation_get_currentTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Animation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "currentTime"); + + let result = cbb_wf.getValue(this, 'currentTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_currentTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_get_currentTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Animation_set_currentTime = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "currentTime", val); - if (cbb_wf.is_log) { - console.log("[*] Animation_set_currentTime, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'currentTime', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_set_currentTime, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Animation_get_playbackRate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Animation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "playbackRate"); + + let result = cbb_wf.getValue(this, 'playbackRate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_playbackRate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_get_playbackRate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Animation_set_playbackRate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "playbackRate", val); - if (cbb_wf.is_log) { - console.log("[*] Animation_set_playbackRate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'playbackRate', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_set_playbackRate, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Animation_get_playState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Animation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "playState"); + + let result = cbb_wf.getValue(this, 'playState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_playState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_get_playState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.Animation_get_replaceState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "replaceState"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_replaceState, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.Animation_get_pending = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Animation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pending"); + + let result = cbb_wf.getValue(this, 'pending'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_pending, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_get_pending, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Animation_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Animation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "id"); + + let result = cbb_wf.getValue(this, 'id'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_id, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_get_id, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Animation_set_id = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "id", val); - if (cbb_wf.is_log) { - console.log("[*] Animation_set_id, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'id', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_set_id, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Animation_get_onfinish = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Animation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onfinish"); + + let result = cbb_wf.getValue(this, 'onfinish'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_onfinish, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_get_onfinish, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Animation_set_onfinish = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onfinish", val); - if (cbb_wf.is_log) { - console.log("[*] Animation_set_onfinish, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onfinish', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_set_onfinish, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Animation_get_oncancel = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Animation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oncancel"); + + let result = cbb_wf.getValue(this, 'oncancel'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_oncancel, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_get_oncancel, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Animation_set_oncancel = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncancel", val); - if (cbb_wf.is_log) { - console.log("[*] Animation_set_oncancel, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Animation_get_onremove = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Animation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onremove"); + cbb_wf.setValue(this, 'oncancel', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_onremove, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_set_oncancel, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - -this.Animation_set_onremove = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onremove", val); - if (cbb_wf.is_log) { - console.log("[*] Animation_set_onremove, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Animation_get_finished = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "finished"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_finished, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.Animation_get_ready = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ready"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_ready, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.Animation_cancel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Animation_cancel, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.Animation_commitStyles = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Animation_commitStyles, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_cancel, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } + return result; +} this.Animation_finish = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Animation_finish, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_finish, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Animation_pause = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Animation_pause, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.Animation_persist = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Animation_persist, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_pause, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } + return result; +} this.Animation_play = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Animation_play, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_play, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Animation_reverse = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Animation_reverse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_reverse, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Animation_updatePlaybackRate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Animation_updatePlaybackRate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Animation_get_rangeStart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Animation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rangeStart"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_rangeStart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_updatePlaybackRate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.Animation_set_rangeStart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "rangeStart", val); - if (cbb_wf.is_log) { - console.log("[*] Animation_set_rangeStart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Animation_get_rangeEnd = function () { - // 非法调用 +this.Animation_get_timeline = function () { let r = cbb_wf.checkIllegal(this, "Animation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rangeEnd"); + + let result = cbb_wf.getValue(this, 'timeline'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Animation_get_rangeEnd, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_get_timeline, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.Animation_set_rangeEnd = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Animation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "rangeEnd", val); - if (cbb_wf.is_log) { - console.log("[*] Animation_set_rangeEnd, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; +this.Animation_set_timeline = function (val) { + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'timeline', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_set_timeline, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.Animation_get_replaceState = function () { + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'replaceState'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_get_replaceState, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Animation_get_onremove = function () { + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onremove'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_get_onremove, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Animation_set_onremove = function (val) { + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onremove', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_set_onremove, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.Animation_get_finished = function () { + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'finished'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_get_finished, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Animation_get_ready = function () { + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ready'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_get_ready, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Animation_commitStyles = function () { + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_commitStyles, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Animation_persist = function () { + let r = cbb_wf.checkIllegal(this, "Animation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Animation_persist, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AnalyserNode_get_fftSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AnalyserNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fftSize"); + + let result = cbb_wf.getValue(this, 'fftSize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AnalyserNode_get_fftSize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnalyserNode_get_fftSize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AnalyserNode_set_fftSize = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnalyserNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "fftSize", val); - if (cbb_wf.is_log) { - console.log("[*] AnalyserNode_set_fftSize, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "AnalyserNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'fftSize', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnalyserNode_set_fftSize, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.AnalyserNode_get_frequencyBinCount = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AnalyserNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "frequencyBinCount"); + + let result = cbb_wf.getValue(this, 'frequencyBinCount'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AnalyserNode_get_frequencyBinCount, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnalyserNode_get_frequencyBinCount, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AnalyserNode_get_minDecibels = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AnalyserNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "minDecibels"); + + let result = cbb_wf.getValue(this, 'minDecibels'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AnalyserNode_get_minDecibels, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnalyserNode_get_minDecibels, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AnalyserNode_set_minDecibels = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnalyserNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "minDecibels", val); - if (cbb_wf.is_log) { - console.log("[*] AnalyserNode_set_minDecibels, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "AnalyserNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'minDecibels', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnalyserNode_set_minDecibels, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.AnalyserNode_get_maxDecibels = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AnalyserNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "maxDecibels"); + + let result = cbb_wf.getValue(this, 'maxDecibels'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AnalyserNode_get_maxDecibels, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnalyserNode_get_maxDecibels, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AnalyserNode_set_maxDecibels = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnalyserNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "maxDecibels", val); - if (cbb_wf.is_log) { - console.log("[*] AnalyserNode_set_maxDecibels, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.AnalyserNode_get_smoothingTimeConstant = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AnalyserNode"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "smoothingTimeConstant"); + cbb_wf.setValue(this, 'maxDecibels', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AnalyserNode_get_smoothingTimeConstant, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnalyserNode_set_maxDecibels, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.AnalyserNode_get_smoothingTimeConstant = function () { + let r = cbb_wf.checkIllegal(this, "AnalyserNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'smoothingTimeConstant'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnalyserNode_get_smoothingTimeConstant, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.AnalyserNode_set_smoothingTimeConstant = function (val) { + let r = cbb_wf.checkIllegal(this, "AnalyserNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'smoothingTimeConstant', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnalyserNode_set_smoothingTimeConstant, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.AnalyserNode_getByteFrequencyData = function () { + let r = cbb_wf.checkIllegal(this, "AnalyserNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnalyserNode_getByteFrequencyData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AnalyserNode_getByteTimeDomainData = function () { + let r = cbb_wf.checkIllegal(this, "AnalyserNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnalyserNode_getByteTimeDomainData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AnalyserNode_getFloatFrequencyData = function () { + let r = cbb_wf.checkIllegal(this, "AnalyserNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnalyserNode_getFloatFrequencyData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AnalyserNode_getFloatTimeDomainData = function () { + let r = cbb_wf.checkIllegal(this, "AnalyserNode"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnalyserNode_getFloatTimeDomainData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.AnalyserNode_set_smoothingTimeConstant = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnalyserNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "smoothingTimeConstant", val); - if (cbb_wf.is_log) { - console.log("[*] AnalyserNode_set_smoothingTimeConstant, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.AnalyserNode_getByteFrequencyData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnalyserNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AnalyserNode_getByteFrequencyData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AnalyserNode_getByteTimeDomainData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnalyserNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AnalyserNode_getByteTimeDomainData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AnalyserNode_getFloatFrequencyData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnalyserNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AnalyserNode_getFloatFrequencyData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AnalyserNode_getFloatTimeDomainData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AnalyserNode"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AnalyserNode_getFloatTimeDomainData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.AbstractRange_get_startContainer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AbstractRange"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "startContainer"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.startContainer; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] AbstractRange_get_startContainer, 返回object'); + break + case "function": + cbb_wf.console.log('[*] AbstractRange_get_startContainer, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AbstractRange_get_startContainer, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AbstractRange_get_startContainer, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.AbstractRange_get_startOffset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AbstractRange"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "startOffset"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.startOffset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] AbstractRange_get_startOffset, 返回object'); + break + case "function": + cbb_wf.console.log('[*] AbstractRange_get_startOffset, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AbstractRange_get_startOffset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AbstractRange_get_startOffset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.AbstractRange_get_endContainer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AbstractRange"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "endContainer"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.endContainer; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] AbstractRange_get_endContainer, 返回object'); + break + case "function": + cbb_wf.console.log('[*] AbstractRange_get_endContainer, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AbstractRange_get_endContainer, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AbstractRange_get_endContainer, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.AbstractRange_get_endOffset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AbstractRange"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "endOffset"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.endOffset; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] AbstractRange_get_endOffset, 返回object'); + break + case "function": + cbb_wf.console.log('[*] AbstractRange_get_endOffset, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AbstractRange_get_endOffset, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AbstractRange_get_endOffset, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.AbstractRange_get_collapsed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AbstractRange"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "collapsed"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.collapsed; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] AbstractRange_get_collapsed, 返回object'); + break + case "function": + cbb_wf.console.log('[*] AbstractRange_get_collapsed, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AbstractRange_get_collapsed, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AbstractRange_get_collapsed, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } -this.AbortSignal_abort = function () { -let r = cbb_wf.checkIllegal(this, "AbortSignal"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AbortSignal_abort, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.AbortSignal_any = function () { -let r = cbb_wf.checkIllegal(this, "AbortSignal"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AbortSignal_any, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.AbortSignal_timeout = function () { -let r = cbb_wf.checkIllegal(this, "AbortSignal"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AbortSignal_timeout, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} this.AbortSignal_get_aborted = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AbortSignal"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "aborted"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.aborted; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] AbortSignal_get_aborted, 返回object'); + break + case "function": + cbb_wf.console.log('[*] AbortSignal_get_aborted, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AbortSignal_get_aborted, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AbortSignal_get_aborted, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.AbortSignal_get_reason = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AbortSignal"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "reason"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.reason; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] AbortSignal_get_reason, 返回object'); + break + case "function": + cbb_wf.console.log('[*] AbortSignal_get_reason, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AbortSignal_get_reason, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AbortSignal_get_reason, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.AbortSignal_get_onabort = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AbortSignal"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onabort"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.onabort; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] AbortSignal_get_onabort, 返回object'); + break + case "function": + cbb_wf.console.log('[*] AbortSignal_get_onabort, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AbortSignal_get_onabort, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AbortSignal_get_onabort, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.AbortSignal_set_onabort = function (val) { + let r = cbb_wf.checkIllegal(this, "AbortSignal"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + switch (typeof val) { + case "object": + cbb_wf.console.log('[*] AbortSignal_set_onabort, set object'); + break + case "function": + cbb_wf.console.log('[*] AbortSignal_set_onabort, set function'); + break + default: + let dom_element = cbb_wf.getValue(this, "dom_element"); + dom_element.onabort = val; + } + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AbortSignal_set_onabort, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.AbortSignal_throwIfAborted = function () { + let r = cbb_wf.checkIllegal(this, "AbortSignal"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.throwIfAborted.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] AbortSignal_throwIfAborted, 返回object'); + break + case "function": + cbb_wf.console.log('[*] AbortSignal_throwIfAborted, 返回function'); + break + default: + + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AbortSignal_throwIfAborted, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } -this.AbortSignal_set_onabort = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AbortSignal"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onabort", val); - if (cbb_wf.is_log) { - console.log("[*] AbortSignal_set_onabort, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.AbortSignal_throwIfAborted = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AbortSignal"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AbortSignal_throwIfAborted, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.AbortController_get_signal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AbortController"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "signal"); + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.signal; + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] AbortController_get_signal, 返回object'); + break + case "function": + cbb_wf.console.log('[*] AbortController_get_signal, 返回function'); + break + default: + + } if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AbortController_get_signal, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AbortController_get_signal, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); } return result; } this.AbortController_abort = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AbortController"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AbortController_abort, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AbortController"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.Iterator_from = function () { -let r = cbb_wf.checkIllegal(this, "Iterator"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Iterator_from, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; + let dom_element = cbb_wf.getValue(this, "dom_element"); + let result = dom_element.abort.apply(dom_element, arguments); + switch (typeof result) { + case "object": + cbb_wf.console.log('[*] AbortController_abort, 返回object'); + break + case "function": + cbb_wf.console.log('[*] AbortController_abort, 返回function'); + break + default: + } + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AbortController_abort, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; } -this.Iterator_reduce = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Iterator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Iterator_reduce, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Iterator_toArray = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Iterator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Iterator_toArray, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Iterator_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Iterator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Iterator_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Iterator_some = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Iterator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Iterator_some, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Iterator_every = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Iterator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Iterator_every, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Iterator_find = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Iterator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Iterator_find, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Iterator_map = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Iterator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Iterator_map, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Iterator_filter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Iterator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Iterator_filter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Iterator_take = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Iterator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Iterator_take, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Iterator_drop = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Iterator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Iterator_drop, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Iterator_flatMap = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Iterator"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Iterator_flatMap, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.Accelerometer_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Accelerometer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Accelerometer_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Accelerometer_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Accelerometer_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Accelerometer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + + let result = cbb_wf.getValue(this, 'y'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Accelerometer_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Accelerometer_get_y, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Accelerometer_get_z = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Accelerometer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "z"); + + let result = cbb_wf.getValue(this, 'z'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Accelerometer_get_z, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Accelerometer_get_z, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.AudioDecoder_isConfigSupported = function () { -let r = cbb_wf.checkIllegal(this, "AudioDecoder"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioDecoder_isConfigSupported, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.AudioDecoder_get_decodeQueueSize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "decodeQueueSize"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioDecoder_get_decodeQueueSize, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.AudioDecoder_get_ondequeue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondequeue"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioDecoder_get_ondequeue, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.AudioDecoder_set_ondequeue = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondequeue", val); - if (cbb_wf.is_log) { - console.log("[*] AudioDecoder_set_ondequeue, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.AudioDecoder_get_state = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "state"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioDecoder_get_state, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.AudioDecoder_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioDecoder_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioDecoder_configure = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioDecoder_configure, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioDecoder_decode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioDecoder_decode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioDecoder_flush = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioDecoder_flush, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioDecoder_reset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioDecoder_reset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioEncoder_isConfigSupported = function () { -let r = cbb_wf.checkIllegal(this, "AudioEncoder"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioEncoder_isConfigSupported, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.AudioEncoder_get_encodeQueueSize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "encodeQueueSize"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioEncoder_get_encodeQueueSize, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.AudioEncoder_get_ondequeue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondequeue"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioEncoder_get_ondequeue, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.AudioEncoder_set_ondequeue = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondequeue", val); - if (cbb_wf.is_log) { - console.log("[*] AudioEncoder_set_ondequeue, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.AudioEncoder_get_state = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "state"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AudioEncoder_get_state, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.AudioEncoder_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioEncoder_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioEncoder_configure = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioEncoder_configure, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioEncoder_encode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioEncoder_encode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioEncoder_flush = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioEncoder_flush, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.AudioEncoder_reset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AudioEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AudioEncoder_reset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BatteryManager_get_charging = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BatteryManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "charging"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BatteryManager_get_charging, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.BatteryManager_get_chargingTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BatteryManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "chargingTime"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BatteryManager_get_chargingTime, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.BatteryManager_get_dischargingTime = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BatteryManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "dischargingTime"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BatteryManager_get_dischargingTime, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.BatteryManager_get_level = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BatteryManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "level"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BatteryManager_get_level, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.BatteryManager_get_onchargingchange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BatteryManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onchargingchange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BatteryManager_get_onchargingchange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.BatteryManager_set_onchargingchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BatteryManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onchargingchange", val); - if (cbb_wf.is_log) { - console.log("[*] BatteryManager_set_onchargingchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.BatteryManager_get_onchargingtimechange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BatteryManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onchargingtimechange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BatteryManager_get_onchargingtimechange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.BatteryManager_set_onchargingtimechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BatteryManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onchargingtimechange", val); - if (cbb_wf.is_log) { - console.log("[*] BatteryManager_set_onchargingtimechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.BatteryManager_get_ondischargingtimechange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BatteryManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondischargingtimechange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BatteryManager_get_ondischargingtimechange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.BatteryManager_set_ondischargingtimechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BatteryManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondischargingtimechange", val); - if (cbb_wf.is_log) { - console.log("[*] BatteryManager_set_ondischargingtimechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.BatteryManager_get_onlevelchange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BatteryManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onlevelchange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BatteryManager_get_onlevelchange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.BatteryManager_set_onlevelchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BatteryManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onlevelchange", val); - if (cbb_wf.is_log) { - console.log("[*] BatteryManager_set_onlevelchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } this.Cache_add = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Cache"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Cache_add, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Cache"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.Cache_addAll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Cache"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Cache_addAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Cache_add, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } -this.Cache_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Cache"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Cache_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Cache_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Cache"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Cache_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Cache_match = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Cache"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Cache_match, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Cache_matchAll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Cache"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Cache_matchAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Cache_put = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Cache"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Cache_put, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CacheStorage_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CacheStorage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CacheStorage_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CacheStorage_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CacheStorage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CacheStorage_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CacheStorage_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CacheStorage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CacheStorage_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CacheStorage_match = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CacheStorage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CacheStorage_match, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CacheStorage_open = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CacheStorage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CacheStorage_open, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Clipboard_read = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Clipboard"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Clipboard_read, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Clipboard_readText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Clipboard"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Clipboard_readText, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Clipboard_write = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Clipboard"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Clipboard_write, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Clipboard_writeText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Clipboard"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Clipboard_writeText, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ClipboardItem_supports = function () { -let r = cbb_wf.checkIllegal(this, "ClipboardItem"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ClipboardItem_supports, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); + return result; } -return result; - +this.Cache_addAll = function () { + let r = cbb_wf.checkIllegal(this, "Cache"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Cache_addAll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Cache_delete = function () { + let r = cbb_wf.checkIllegal(this, "Cache"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Cache_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Cache_keys = function () { + let r = cbb_wf.checkIllegal(this, "Cache"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Cache_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Cache_match = function () { + let r = cbb_wf.checkIllegal(this, "Cache"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Cache_match, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Cache_matchAll = function () { + let r = cbb_wf.checkIllegal(this, "Cache"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Cache_matchAll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Cache_put = function () { + let r = cbb_wf.checkIllegal(this, "Cache"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Cache_put, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CacheStorage_delete = function () { + let r = cbb_wf.checkIllegal(this, "CacheStorage"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CacheStorage_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CacheStorage_has = function () { + let r = cbb_wf.checkIllegal(this, "CacheStorage"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CacheStorage_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CacheStorage_keys = function () { + let r = cbb_wf.checkIllegal(this, "CacheStorage"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CacheStorage_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CacheStorage_match = function () { + let r = cbb_wf.checkIllegal(this, "CacheStorage"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CacheStorage_match, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CacheStorage_open = function () { + let r = cbb_wf.checkIllegal(this, "CacheStorage"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CacheStorage_open, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Clipboard_read = function () { + let r = cbb_wf.checkIllegal(this, "Clipboard"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Clipboard_read, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Clipboard_readText = function () { + let r = cbb_wf.checkIllegal(this, "Clipboard"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Clipboard_readText, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Clipboard_write = function () { + let r = cbb_wf.checkIllegal(this, "Clipboard"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Clipboard_write, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Clipboard_writeText = function () { + let r = cbb_wf.checkIllegal(this, "Clipboard"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Clipboard_writeText, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; } this.ClipboardItem_get_types = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ClipboardItem"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "types"); + + let result = cbb_wf.getValue(this, 'types'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ClipboardItem_get_types, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ClipboardItem_get_types, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ClipboardItem_getType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ClipboardItem"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ClipboardItem_getType, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ClipboardItem"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ClipboardItem_getType, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CookieChangeEvent_get_changed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CookieChangeEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "changed"); + + let result = cbb_wf.getValue(this, 'changed'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CookieChangeEvent_get_changed, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CookieChangeEvent_get_changed, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CookieChangeEvent_get_deleted = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CookieChangeEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "deleted"); + + let result = cbb_wf.getValue(this, 'deleted'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CookieChangeEvent_get_deleted, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CookieChangeEvent_get_deleted, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CookieStore_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CookieStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CookieStore_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CookieStore_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CookieStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CookieStore_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CookieStore_getAll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CookieStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CookieStore_getAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CookieStore_set = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CookieStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CookieStore_set, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CookieStore_get_onchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CookieStore"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onchange"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CookieStore_get_onchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CookieStore_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.CookieStore_get = function () { + let r = cbb_wf.checkIllegal(this, "CookieStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CookieStore_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CookieStore_getAll = function () { + let r = cbb_wf.checkIllegal(this, "CookieStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CookieStore_getAll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CookieStore_set = function () { + let r = cbb_wf.checkIllegal(this, "CookieStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CookieStore_set, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CookieStore_get_onchange = function () { + let r = cbb_wf.checkIllegal(this, "CookieStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'onchange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CookieStore_get_onchange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.CookieStore_set_onchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CookieStore"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onchange", val); - if (cbb_wf.is_log) { - console.log("[*] CookieStore_set_onchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "CookieStore"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CookieStore_set_onchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.CookieStoreManager_getSubscriptions = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CookieStoreManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CookieStoreManager_getSubscriptions, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CookieStoreManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CookieStoreManager_getSubscriptions, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CookieStoreManager_subscribe = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CookieStoreManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CookieStoreManager_subscribe, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CookieStoreManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CookieStoreManager_subscribe, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CookieStoreManager_unsubscribe = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CookieStoreManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CookieStoreManager_unsubscribe, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CookieStoreManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CookieStoreManager_unsubscribe, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Credential_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Credential"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "id"); + + let result = cbb_wf.getValue(this, 'id'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Credential_get_id, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Credential_get_id, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Credential_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Credential"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Credential_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Credential_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CredentialsContainer_create = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CredentialsContainer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CredentialsContainer_create, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CredentialsContainer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CredentialsContainer_create, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CredentialsContainer_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CredentialsContainer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CredentialsContainer_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CredentialsContainer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CredentialsContainer_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CredentialsContainer_preventSilentAccess = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CredentialsContainer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CredentialsContainer_preventSilentAccess, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CredentialsContainer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CredentialsContainer_preventSilentAccess, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CredentialsContainer_store = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CredentialsContainer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CredentialsContainer_store, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "CredentialsContainer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CredentialsContainer_store, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.CryptoKey_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CryptoKey"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CryptoKey_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CryptoKey_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CryptoKey_get_extractable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CryptoKey"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "extractable"); + + let result = cbb_wf.getValue(this, 'extractable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CryptoKey_get_extractable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CryptoKey_get_extractable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CryptoKey_get_algorithm = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CryptoKey"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "algorithm"); + + let result = cbb_wf.getValue(this, 'algorithm'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CryptoKey_get_algorithm, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CryptoKey_get_algorithm, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.CryptoKey_get_usages = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "CryptoKey"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "usages"); + + let result = cbb_wf.getValue(this, 'usages'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CryptoKey_get_usages, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CryptoKey_get_usages, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DeviceMotionEvent_get_acceleration = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DeviceMotionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "acceleration"); + + let result = cbb_wf.getValue(this, 'acceleration'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DeviceMotionEvent_get_acceleration, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DeviceMotionEvent_get_acceleration, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DeviceMotionEvent_get_accelerationIncludingGravity = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DeviceMotionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "accelerationIncludingGravity"); + + let result = cbb_wf.getValue(this, 'accelerationIncludingGravity'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DeviceMotionEvent_get_accelerationIncludingGravity, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DeviceMotionEvent_get_accelerationIncludingGravity, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DeviceMotionEvent_get_rotationRate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DeviceMotionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rotationRate"); + + let result = cbb_wf.getValue(this, 'rotationRate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DeviceMotionEvent_get_rotationRate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DeviceMotionEvent_get_rotationRate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DeviceMotionEvent_get_interval = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DeviceMotionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "interval"); + + let result = cbb_wf.getValue(this, 'interval'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DeviceMotionEvent_get_interval, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DeviceMotionEvent_get_interval, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DeviceMotionEventAcceleration_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DeviceMotionEventAcceleration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DeviceMotionEventAcceleration_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DeviceMotionEventAcceleration_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DeviceMotionEventAcceleration_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DeviceMotionEventAcceleration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + + let result = cbb_wf.getValue(this, 'y'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DeviceMotionEventAcceleration_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DeviceMotionEventAcceleration_get_y, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DeviceMotionEventAcceleration_get_z = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DeviceMotionEventAcceleration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "z"); + + let result = cbb_wf.getValue(this, 'z'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DeviceMotionEventAcceleration_get_z, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DeviceMotionEventAcceleration_get_z, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DeviceMotionEventRotationRate_get_alpha = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DeviceMotionEventRotationRate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "alpha"); + + let result = cbb_wf.getValue(this, 'alpha'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DeviceMotionEventRotationRate_get_alpha, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DeviceMotionEventRotationRate_get_alpha, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DeviceMotionEventRotationRate_get_beta = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DeviceMotionEventRotationRate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "beta"); + + let result = cbb_wf.getValue(this, 'beta'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DeviceMotionEventRotationRate_get_beta, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DeviceMotionEventRotationRate_get_beta, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DeviceMotionEventRotationRate_get_gamma = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DeviceMotionEventRotationRate"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "gamma"); + + let result = cbb_wf.getValue(this, 'gamma'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DeviceMotionEventRotationRate_get_gamma, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DeviceMotionEventRotationRate_get_gamma, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DeviceOrientationEvent_get_alpha = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DeviceOrientationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "alpha"); + + let result = cbb_wf.getValue(this, 'alpha'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DeviceOrientationEvent_get_alpha, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DeviceOrientationEvent_get_alpha, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DeviceOrientationEvent_get_beta = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DeviceOrientationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "beta"); + + let result = cbb_wf.getValue(this, 'beta'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DeviceOrientationEvent_get_beta, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DeviceOrientationEvent_get_beta, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DeviceOrientationEvent_get_gamma = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DeviceOrientationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "gamma"); + + let result = cbb_wf.getValue(this, 'gamma'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DeviceOrientationEvent_get_gamma, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DeviceOrientationEvent_get_gamma, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.DeviceOrientationEvent_get_absolute = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "DeviceOrientationEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "absolute"); + + let result = cbb_wf.getValue(this, 'absolute'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DeviceOrientationEvent_get_absolute, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DeviceOrientationEvent_get_absolute, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FederatedCredential_get_provider = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FederatedCredential"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "provider"); + + let result = cbb_wf.getValue(this, 'provider'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FederatedCredential_get_provider, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FederatedCredential_get_provider, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FederatedCredential_get_protocol = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FederatedCredential"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "protocol"); + + let result = cbb_wf.getValue(this, 'protocol'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FederatedCredential_get_protocol, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FederatedCredential_get_protocol, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FederatedCredential_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FederatedCredential"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FederatedCredential_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FederatedCredential_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FederatedCredential_get_iconURL = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FederatedCredential"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "iconURL"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FederatedCredential_get_iconURL, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPU_get_wgslLanguageFeatures = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPU"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "wgslLanguageFeatures"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPU_get_wgslLanguageFeatures, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPU_getPreferredCanvasFormat = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPU"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPU_getPreferredCanvasFormat, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPU_requestAdapter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPU"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPU_requestAdapter, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUAdapter_get_features = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUAdapter"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "features"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUAdapter_get_features, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUAdapter_get_limits = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUAdapter"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "limits"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUAdapter_get_limits, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUAdapter_get_isFallbackAdapter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUAdapter"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "isFallbackAdapter"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUAdapter_get_isFallbackAdapter, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUAdapter_requestAdapterInfo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUAdapter"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUAdapter_requestAdapterInfo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUAdapter_requestDevice = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUAdapter"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUAdapter_requestDevice, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUAdapterInfo_get_vendor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUAdapterInfo"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "vendor"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUAdapterInfo_get_vendor, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUAdapterInfo_get_architecture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUAdapterInfo"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "architecture"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUAdapterInfo_get_architecture, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUAdapterInfo_get_device = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUAdapterInfo"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "device"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUAdapterInfo_get_device, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUAdapterInfo_get_description = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUAdapterInfo"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "description"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUAdapterInfo_get_description, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUBindGroup_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUBindGroup"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUBindGroup_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUBindGroup_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUBindGroup"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUBindGroup_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUBindGroupLayout_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUBindGroupLayout"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUBindGroupLayout_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUBindGroupLayout_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUBindGroupLayout"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUBindGroupLayout_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUBuffer_get_size = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "size"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUBuffer_get_size, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUBuffer_get_usage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "usage"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUBuffer_get_usage, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUBuffer_get_mapState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "mapState"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUBuffer_get_mapState, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUBuffer_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUBuffer_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUBuffer_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUBuffer_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUBuffer_destroy = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUBuffer_destroy, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUBuffer_getMappedRange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUBuffer_getMappedRange, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUBuffer_mapAsync = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUBuffer_mapAsync, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUBuffer_unmap = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUBuffer_unmap, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCanvasContext_get_canvas = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCanvasContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "canvas"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUCanvasContext_get_canvas, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUCanvasContext_configure = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCanvasContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCanvasContext_configure, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCanvasContext_getCurrentTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCanvasContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCanvasContext_getCurrentTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCanvasContext_unconfigure = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCanvasContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCanvasContext_unconfigure, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCommandBuffer_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUCommandBuffer_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUCommandBuffer_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandBuffer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUCommandBuffer_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUCommandEncoder_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUCommandEncoder_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUCommandEncoder_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUCommandEncoder_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUCommandEncoder_beginComputePass = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCommandEncoder_beginComputePass, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCommandEncoder_beginRenderPass = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCommandEncoder_beginRenderPass, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCommandEncoder_copyBufferToTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCommandEncoder_copyBufferToTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCommandEncoder_copyTextureToBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCommandEncoder_copyTextureToBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCommandEncoder_copyTextureToTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCommandEncoder_copyTextureToTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCommandEncoder_finish = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCommandEncoder_finish, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCommandEncoder_insertDebugMarker = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCommandEncoder_insertDebugMarker, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCommandEncoder_pushDebugGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCommandEncoder_pushDebugGroup, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCommandEncoder_clearBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCommandEncoder_clearBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCommandEncoder_copyBufferToBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCommandEncoder_copyBufferToBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCommandEncoder_popDebugGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCommandEncoder_popDebugGroup, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCommandEncoder_resolveQuerySet = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCommandEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUCommandEncoder_resolveQuerySet, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUCompilationInfo_get_messages = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCompilationInfo"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "messages"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUCompilationInfo_get_messages, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUCompilationMessage_get_message = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCompilationMessage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "message"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUCompilationMessage_get_message, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUCompilationMessage_get_type = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCompilationMessage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "type"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUCompilationMessage_get_type, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUCompilationMessage_get_lineNum = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCompilationMessage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "lineNum"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUCompilationMessage_get_lineNum, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUCompilationMessage_get_linePos = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCompilationMessage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "linePos"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUCompilationMessage_get_linePos, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUCompilationMessage_get_offset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCompilationMessage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "offset"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUCompilationMessage_get_offset, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUCompilationMessage_get_length = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUCompilationMessage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "length"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUCompilationMessage_get_length, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUComputePassEncoder_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUComputePassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUComputePassEncoder_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUComputePassEncoder_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUComputePassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUComputePassEncoder_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUComputePassEncoder_insertDebugMarker = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUComputePassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUComputePassEncoder_insertDebugMarker, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUComputePassEncoder_pushDebugGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUComputePassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUComputePassEncoder_pushDebugGroup, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUComputePassEncoder_setBindGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUComputePassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUComputePassEncoder_setBindGroup, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUComputePassEncoder_writeTimestamp = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUComputePassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUComputePassEncoder_writeTimestamp, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUComputePassEncoder_dispatchWorkgroups = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUComputePassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUComputePassEncoder_dispatchWorkgroups, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUComputePassEncoder_dispatchWorkgroupsIndirect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUComputePassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUComputePassEncoder_dispatchWorkgroupsIndirect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUComputePassEncoder_end = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUComputePassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUComputePassEncoder_end, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUComputePassEncoder_popDebugGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUComputePassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUComputePassEncoder_popDebugGroup, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUComputePassEncoder_setPipeline = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUComputePassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUComputePassEncoder_setPipeline, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUComputePipeline_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUComputePipeline"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUComputePipeline_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUComputePipeline_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUComputePipeline"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUComputePipeline_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUComputePipeline_getBindGroupLayout = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUComputePipeline"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUComputePipeline_getBindGroupLayout, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_get_features = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "features"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUDevice_get_features, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUDevice_get_limits = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "limits"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUDevice_get_limits, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUDevice_get_lost = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "lost"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUDevice_get_lost, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUDevice_get_queue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "queue"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUDevice_get_queue, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUDevice_get_onuncapturederror = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onuncapturederror"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUDevice_get_onuncapturederror, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUDevice_set_onuncapturederror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onuncapturederror", val); - if (cbb_wf.is_log) { - console.log("[*] GPUDevice_set_onuncapturederror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUDevice_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUDevice_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUDevice_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUDevice_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUDevice_createBindGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_createBindGroup, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_createBindGroupLayout = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_createBindGroupLayout, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_createBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_createBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_createCommandEncoder = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_createCommandEncoder, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_createComputePipeline = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_createComputePipeline, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_createComputePipelineAsync = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_createComputePipelineAsync, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_createPipelineLayout = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_createPipelineLayout, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_createQuerySet = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_createQuerySet, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_createRenderBundleEncoder = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_createRenderBundleEncoder, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_createRenderPipeline = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_createRenderPipeline, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_createRenderPipelineAsync = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_createRenderPipelineAsync, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_createSampler = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_createSampler, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_createShaderModule = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_createShaderModule, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_createTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_createTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_destroy = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_destroy, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_importExternalTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_importExternalTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_popErrorScope = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_popErrorScope, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDevice_pushErrorScope = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUDevice_pushErrorScope, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUDeviceLostInfo_get_reason = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDeviceLostInfo"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "reason"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUDeviceLostInfo_get_reason, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUDeviceLostInfo_get_message = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUDeviceLostInfo"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "message"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUDeviceLostInfo_get_message, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUError_get_message = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUError"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "message"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUError_get_message, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUExternalTexture_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUExternalTexture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUExternalTexture_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUExternalTexture_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUExternalTexture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUExternalTexture_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUPipelineError_get_reason = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUPipelineError"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "reason"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUPipelineError_get_reason, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUPipelineLayout_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUPipelineLayout"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUPipelineLayout_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUPipelineLayout_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUPipelineLayout"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUPipelineLayout_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUQuerySet_get_type = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUQuerySet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "type"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUQuerySet_get_type, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUQuerySet_get_count = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUQuerySet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "count"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUQuerySet_get_count, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUQuerySet_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUQuerySet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUQuerySet_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUQuerySet_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUQuerySet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUQuerySet_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUQuerySet_destroy = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUQuerySet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUQuerySet_destroy, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUQueue_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUQueue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUQueue_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUQueue_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUQueue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUQueue_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUQueue_copyExternalImageToTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUQueue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUQueue_copyExternalImageToTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUQueue_onSubmittedWorkDone = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUQueue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUQueue_onSubmittedWorkDone, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUQueue_submit = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUQueue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUQueue_submit, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUQueue_writeBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUQueue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUQueue_writeBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUQueue_writeTexture = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUQueue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUQueue_writeTexture, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderBundle_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPURenderBundle_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPURenderBundle_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPURenderBundle_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPURenderBundleEncoder_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundleEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPURenderBundleEncoder_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPURenderBundleEncoder_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundleEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPURenderBundleEncoder_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPURenderBundleEncoder_finish = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundleEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderBundleEncoder_finish, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderBundleEncoder_insertDebugMarker = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundleEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderBundleEncoder_insertDebugMarker, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderBundleEncoder_pushDebugGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundleEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderBundleEncoder_pushDebugGroup, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderBundleEncoder_setBindGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundleEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderBundleEncoder_setBindGroup, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderBundleEncoder_setIndexBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundleEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderBundleEncoder_setIndexBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderBundleEncoder_draw = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundleEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderBundleEncoder_draw, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderBundleEncoder_drawIndexed = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundleEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderBundleEncoder_drawIndexed, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderBundleEncoder_drawIndexedIndirect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundleEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderBundleEncoder_drawIndexedIndirect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderBundleEncoder_drawIndirect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundleEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderBundleEncoder_drawIndirect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderBundleEncoder_popDebugGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundleEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderBundleEncoder_popDebugGroup, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderBundleEncoder_setPipeline = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundleEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderBundleEncoder_setPipeline, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderBundleEncoder_setVertexBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderBundleEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderBundleEncoder_setVertexBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPURenderPassEncoder_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPURenderPassEncoder_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPURenderPassEncoder_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPURenderPassEncoder_executeBundles = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_executeBundles, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_insertDebugMarker = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_insertDebugMarker, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_pushDebugGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_pushDebugGroup, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_setBindGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_setBindGroup, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_setBlendConstant = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_setBlendConstant, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_setIndexBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_setIndexBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_writeTimestamp = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_writeTimestamp, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_beginOcclusionQuery = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_beginOcclusionQuery, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_draw = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_draw, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_drawIndexed = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_drawIndexed, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_drawIndexedIndirect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_drawIndexedIndirect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_drawIndirect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_drawIndirect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_end = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_end, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_endOcclusionQuery = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_endOcclusionQuery, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_popDebugGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_popDebugGroup, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_setPipeline = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_setPipeline, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_setScissorRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_setScissorRect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_setStencilReference = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_setStencilReference, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_setVertexBuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_setVertexBuffer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPassEncoder_setViewport = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPassEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPassEncoder_setViewport, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPURenderPipeline_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPipeline"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPURenderPipeline_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPURenderPipeline_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPipeline"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPURenderPipeline_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPURenderPipeline_getBindGroupLayout = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPURenderPipeline"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPURenderPipeline_getBindGroupLayout, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUSampler_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSampler"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSampler_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSampler_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSampler"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUSampler_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUShaderModule_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUShaderModule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUShaderModule_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUShaderModule_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUShaderModule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUShaderModule_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUShaderModule_getCompilationInfo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUShaderModule"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUShaderModule_getCompilationInfo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUSupportedFeatures_get_size = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedFeatures"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "size"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedFeatures_get_size, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedFeatures_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedFeatures"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUSupportedFeatures_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUSupportedFeatures_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedFeatures"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUSupportedFeatures_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUSupportedFeatures_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedFeatures"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUSupportedFeatures_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUSupportedFeatures_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedFeatures"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUSupportedFeatures_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUSupportedFeatures_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedFeatures"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUSupportedFeatures_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUSupportedLimits_get_maxTextureDimension1D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxTextureDimension1D"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxTextureDimension1D, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxTextureDimension2D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxTextureDimension2D"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxTextureDimension2D, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxTextureDimension3D = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxTextureDimension3D"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxTextureDimension3D, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxTextureArrayLayers = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxTextureArrayLayers"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxTextureArrayLayers, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxBindGroups = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxBindGroups"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxBindGroups, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxBindGroupsPlusVertexBuffers = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxBindGroupsPlusVertexBuffers"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxBindGroupsPlusVertexBuffers, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxBindingsPerBindGroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxBindingsPerBindGroup"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxBindingsPerBindGroup, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxDynamicUniformBuffersPerPipelineLayout = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxDynamicUniformBuffersPerPipelineLayout"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxDynamicUniformBuffersPerPipelineLayout, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxDynamicStorageBuffersPerPipelineLayout = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxDynamicStorageBuffersPerPipelineLayout"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxDynamicStorageBuffersPerPipelineLayout, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxSampledTexturesPerShaderStage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxSampledTexturesPerShaderStage"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxSampledTexturesPerShaderStage, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxSamplersPerShaderStage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxSamplersPerShaderStage"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxSamplersPerShaderStage, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxStorageBuffersPerShaderStage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxStorageBuffersPerShaderStage"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxStorageBuffersPerShaderStage, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxStorageTexturesPerShaderStage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxStorageTexturesPerShaderStage"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxStorageTexturesPerShaderStage, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxUniformBuffersPerShaderStage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxUniformBuffersPerShaderStage"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxUniformBuffersPerShaderStage, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxUniformBufferBindingSize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxUniformBufferBindingSize"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxUniformBufferBindingSize, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxStorageBufferBindingSize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxStorageBufferBindingSize"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxStorageBufferBindingSize, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_minUniformBufferOffsetAlignment = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "minUniformBufferOffsetAlignment"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_minUniformBufferOffsetAlignment, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_minStorageBufferOffsetAlignment = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "minStorageBufferOffsetAlignment"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_minStorageBufferOffsetAlignment, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxVertexBuffers = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxVertexBuffers"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxVertexBuffers, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxBufferSize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxBufferSize"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxBufferSize, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxVertexAttributes = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxVertexAttributes"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxVertexAttributes, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxVertexBufferArrayStride = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxVertexBufferArrayStride"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxVertexBufferArrayStride, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxInterStageShaderComponents = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxInterStageShaderComponents"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxInterStageShaderComponents, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxInterStageShaderVariables = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxInterStageShaderVariables"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxInterStageShaderVariables, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxColorAttachments = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxColorAttachments"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxColorAttachments, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxColorAttachmentBytesPerSample = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxColorAttachmentBytesPerSample"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxColorAttachmentBytesPerSample, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxComputeWorkgroupStorageSize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxComputeWorkgroupStorageSize"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxComputeWorkgroupStorageSize, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxComputeInvocationsPerWorkgroup = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxComputeInvocationsPerWorkgroup"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxComputeInvocationsPerWorkgroup, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxComputeWorkgroupSizeX = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxComputeWorkgroupSizeX"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxComputeWorkgroupSizeX, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxComputeWorkgroupSizeY = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxComputeWorkgroupSizeY"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxComputeWorkgroupSizeY, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxComputeWorkgroupSizeZ = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxComputeWorkgroupSizeZ"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxComputeWorkgroupSizeZ, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUSupportedLimits_get_maxComputeWorkgroupsPerDimension = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUSupportedLimits"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxComputeWorkgroupsPerDimension"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUSupportedLimits_get_maxComputeWorkgroupsPerDimension, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUTexture_get_width = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUTexture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "width"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUTexture_get_width, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUTexture_get_height = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUTexture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "height"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUTexture_get_height, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUTexture_get_depthOrArrayLayers = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUTexture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "depthOrArrayLayers"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUTexture_get_depthOrArrayLayers, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUTexture_get_mipLevelCount = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUTexture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "mipLevelCount"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUTexture_get_mipLevelCount, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUTexture_get_sampleCount = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUTexture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "sampleCount"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUTexture_get_sampleCount, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUTexture_get_dimension = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUTexture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "dimension"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUTexture_get_dimension, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUTexture_get_format = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUTexture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "format"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUTexture_get_format, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUTexture_get_usage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUTexture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "usage"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUTexture_get_usage, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUTexture_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUTexture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUTexture_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.GPUTexture_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUTexture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUTexture_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUTexture_createView = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUTexture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUTexture_createView, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUTexture_destroy = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUTexture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] GPUTexture_destroy, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.GPUTextureView_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUTextureView"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "label"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUTextureView_get_label, this =>", this + '', ", result =>", result + '', info); - } - return result; -} -this.GPUTextureView_set_label = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUTextureView"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "label", val); - if (cbb_wf.is_log) { - console.log("[*] GPUTextureView_set_label, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.GPUUncapturedErrorEvent_get_error = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "GPUUncapturedErrorEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "error"); + let result = cbb_wf.getValue(this, 'iconURL'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] GPUUncapturedErrorEvent_get_error, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FederatedCredential_get_iconURL, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Gyroscope_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Gyroscope"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Gyroscope_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Gyroscope_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Gyroscope_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Gyroscope"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + + let result = cbb_wf.getValue(this, 'y'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Gyroscope_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Gyroscope_get_y, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Gyroscope_get_z = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Gyroscope"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "z"); + + let result = cbb_wf.getValue(this, 'z'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Gyroscope_get_z, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Gyroscope_get_z, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.IdleDetector_requestPermission = function () { -let r = cbb_wf.checkIllegal(this, "IdleDetector"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IdleDetector_requestPermission, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.IdleDetector_get_userState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IdleDetector"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "userState"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IdleDetector_get_userState, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.IdleDetector_get_screenState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IdleDetector"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "screenState"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IdleDetector_get_screenState, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.IdleDetector_get_onchange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IdleDetector"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onchange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IdleDetector_get_onchange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.IdleDetector_set_onchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IdleDetector"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onchange", val); - if (cbb_wf.is_log) { - console.log("[*] IdleDetector_set_onchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.IdleDetector_start = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IdleDetector"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] IdleDetector_start, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ImageDecoder_isTypeSupported = function () { -let r = cbb_wf.checkIllegal(this, "ImageDecoder"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageDecoder_isTypeSupported, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.ImageDecoder_get_type = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "type"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageDecoder_get_type, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ImageDecoder_get_complete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "complete"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageDecoder_get_complete, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ImageDecoder_get_completed = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "completed"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageDecoder_get_completed, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ImageDecoder_get_tracks = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "tracks"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ImageDecoder_get_tracks, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.ImageDecoder_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ImageDecoder_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ImageDecoder_decode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ImageDecoder_decode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ImageDecoder_reset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ImageDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ImageDecoder_reset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.Keyboard_getLayoutMap = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Keyboard"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Keyboard_getLayoutMap, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Keyboard"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Keyboard_getLayoutMap, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Keyboard_lock = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Keyboard"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Keyboard_lock, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Keyboard"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Keyboard_lock, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Keyboard_unlock = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Keyboard"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Keyboard_unlock, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Keyboard"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Keyboard_unlock, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.KeyboardLayoutMap_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "KeyboardLayoutMap"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + + let result = cbb_wf.getValue(this, 'size'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] KeyboardLayoutMap_get_size, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardLayoutMap_get_size, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.KeyboardLayoutMap_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "KeyboardLayoutMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] KeyboardLayoutMap_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "KeyboardLayoutMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardLayoutMap_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.KeyboardLayoutMap_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "KeyboardLayoutMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] KeyboardLayoutMap_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "KeyboardLayoutMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardLayoutMap_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.KeyboardLayoutMap_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "KeyboardLayoutMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] KeyboardLayoutMap_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "KeyboardLayoutMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardLayoutMap_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.KeyboardLayoutMap_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "KeyboardLayoutMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] KeyboardLayoutMap_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "KeyboardLayoutMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardLayoutMap_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.KeyboardLayoutMap_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "KeyboardLayoutMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] KeyboardLayoutMap_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "KeyboardLayoutMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardLayoutMap_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.KeyboardLayoutMap_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "KeyboardLayoutMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] KeyboardLayoutMap_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "KeyboardLayoutMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "KeyboardLayoutMap_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Lock_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Lock"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Lock_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Lock_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Lock_get_mode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Lock"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mode"); + + let result = cbb_wf.getValue(this, 'mode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Lock_get_mode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Lock_get_mode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.LockManager_query = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "LockManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] LockManager_query, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "LockManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LockManager_query, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.LockManager_request = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "LockManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] LockManager_request, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "LockManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LockManager_request, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIAccess_get_inputs = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIAccess"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "inputs"); + + let result = cbb_wf.getValue(this, 'inputs'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIAccess_get_inputs, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIAccess_get_inputs, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIAccess_get_outputs = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIAccess"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "outputs"); + + let result = cbb_wf.getValue(this, 'outputs'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIAccess_get_outputs, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIAccess_get_outputs, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIAccess_get_sysexEnabled = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIAccess"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sysexEnabled"); + + let result = cbb_wf.getValue(this, 'sysexEnabled'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIAccess_get_sysexEnabled, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIAccess_get_sysexEnabled, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIAccess_get_onstatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIAccess"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onstatechange"); + + let result = cbb_wf.getValue(this, 'onstatechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIAccess_get_onstatechange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIAccess_get_onstatechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIAccess_set_onstatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIAccess"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onstatechange", val); - if (cbb_wf.is_log) { - console.log("[*] MIDIAccess_set_onstatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MIDIAccess"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onstatechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIAccess_set_onstatechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MIDIConnectionEvent_get_port = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIConnectionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "port"); + + let result = cbb_wf.getValue(this, 'port'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIConnectionEvent_get_port, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIConnectionEvent_get_port, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIInput_get_onmidimessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIInput"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmidimessage"); + + let result = cbb_wf.getValue(this, 'onmidimessage'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIInput_get_onmidimessage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIInput_get_onmidimessage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIInput_set_onmidimessage = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIInput"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmidimessage", val); - if (cbb_wf.is_log) { - console.log("[*] MIDIInput_set_onmidimessage, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MIDIInput"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onmidimessage', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIInput_set_onmidimessage, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MIDIInputMap_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIInputMap"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + + let result = cbb_wf.getValue(this, 'size'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIInputMap_get_size, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIInputMap_get_size, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIInputMap_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIInputMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIInputMap_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIInputMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIInputMap_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIInputMap_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIInputMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIInputMap_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIInputMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIInputMap_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIInputMap_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIInputMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIInputMap_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIInputMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIInputMap_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIInputMap_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIInputMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIInputMap_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIInputMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIInputMap_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIInputMap_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIInputMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIInputMap_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIInputMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIInputMap_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIInputMap_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIInputMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIInputMap_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIInputMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIInputMap_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIMessageEvent_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIMessageEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "data"); + + let result = cbb_wf.getValue(this, 'data'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIMessageEvent_get_data, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIMessageEvent_get_data, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIOutput_send = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIOutput"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIOutput_send, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIOutput"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIOutput_send, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIOutputMap_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIOutputMap"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + + let result = cbb_wf.getValue(this, 'size'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIOutputMap_get_size, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIOutputMap_get_size, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIOutputMap_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIOutputMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIOutputMap_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIOutputMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIOutputMap_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIOutputMap_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIOutputMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIOutputMap_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIOutputMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIOutputMap_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIOutputMap_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIOutputMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIOutputMap_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIOutputMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIOutputMap_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIOutputMap_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIOutputMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIOutputMap_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIOutputMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIOutputMap_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIOutputMap_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIOutputMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIOutputMap_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIOutputMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIOutputMap_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIOutputMap_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIOutputMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIOutputMap_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIOutputMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIOutputMap_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIPort_get_connection = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIPort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "connection"); + + let result = cbb_wf.getValue(this, 'connection'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIPort_get_connection, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIPort_get_connection, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIPort_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIPort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "id"); + + let result = cbb_wf.getValue(this, 'id'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIPort_get_id, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIPort_get_id, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIPort_get_manufacturer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIPort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "manufacturer"); + + let result = cbb_wf.getValue(this, 'manufacturer'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIPort_get_manufacturer, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIPort_get_manufacturer, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIPort_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIPort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIPort_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIPort_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIPort_get_state = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIPort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "state"); + + let result = cbb_wf.getValue(this, 'state'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIPort_get_state, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIPort_get_state, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIPort_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIPort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIPort_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIPort_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIPort_get_version = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIPort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "version"); + + let result = cbb_wf.getValue(this, 'version'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIPort_get_version, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIPort_get_version, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIPort_get_onstatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MIDIPort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onstatechange"); + + let result = cbb_wf.getValue(this, 'onstatechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MIDIPort_get_onstatechange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIPort_get_onstatechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MIDIPort_set_onstatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIPort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onstatechange", val); - if (cbb_wf.is_log) { - console.log("[*] MIDIPort_set_onstatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MIDIPort"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onstatechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIPort_set_onstatechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MIDIPort_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIPort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIPort_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIPort"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIPort_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MIDIPort_open = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MIDIPort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MIDIPort_open, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MIDIPort"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MIDIPort_open, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaDeviceInfo_get_deviceId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaDeviceInfo"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "deviceId"); + + let result = cbb_wf.getValue(this, 'deviceId'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaDeviceInfo_get_deviceId, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaDeviceInfo_get_deviceId, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaDeviceInfo_get_kind = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaDeviceInfo"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "kind"); + + let result = cbb_wf.getValue(this, 'kind'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaDeviceInfo_get_kind, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaDeviceInfo_get_kind, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaDeviceInfo_get_label = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaDeviceInfo"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "label"); + + let result = cbb_wf.getValue(this, 'label'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaDeviceInfo_get_label, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaDeviceInfo_get_label, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaDeviceInfo_get_groupId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaDeviceInfo"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "groupId"); + + let result = cbb_wf.getValue(this, 'groupId'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaDeviceInfo_get_groupId, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaDeviceInfo_get_groupId, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaDeviceInfo_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaDeviceInfo"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaDeviceInfo_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaDeviceInfo"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaDeviceInfo_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaDevices_enumerateDevices = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaDevices"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaDevices_enumerateDevices, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaDevices_getSupportedConstraints = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaDevices"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaDevices_getSupportedConstraints, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaDevices_getUserMedia = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaDevices"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaDevices_getUserMedia, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MediaDevices_get_ondevicechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaDevices"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ondevicechange"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaDevices_get_ondevicechange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaDevices_enumerateDevices, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.MediaDevices_getSupportedConstraints = function () { + let r = cbb_wf.checkIllegal(this, "MediaDevices"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaDevices_getSupportedConstraints, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MediaDevices_getUserMedia = function () { + let r = cbb_wf.checkIllegal(this, "MediaDevices"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaDevices_getUserMedia, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MediaDevices_get_ondevicechange = function () { + let r = cbb_wf.checkIllegal(this, "MediaDevices"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'ondevicechange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaDevices_get_ondevicechange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.MediaDevices_set_ondevicechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaDevices"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondevicechange", val); - if (cbb_wf.is_log) { - console.log("[*] MediaDevices_set_ondevicechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaDevices"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ondevicechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaDevices_set_ondevicechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaDevices_getDisplayMedia = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaDevices"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaDevices_getDisplayMedia, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaDevices"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaDevices_getDisplayMedia, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaDevices_setCaptureHandleConfig = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaDevices"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaDevices_setCaptureHandleConfig, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaDevices"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaDevices_setCaptureHandleConfig, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeyMessageEvent_get_messageType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaKeyMessageEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "messageType"); + + let result = cbb_wf.getValue(this, 'messageType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaKeyMessageEvent_get_messageType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeyMessageEvent_get_messageType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaKeyMessageEvent_get_message = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaKeyMessageEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "message"); + + let result = cbb_wf.getValue(this, 'message'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaKeyMessageEvent_get_message, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeyMessageEvent_get_message, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaKeySession_get_sessionId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaKeySession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sessionId"); + + let result = cbb_wf.getValue(this, 'sessionId'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaKeySession_get_sessionId, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySession_get_sessionId, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaKeySession_get_expiration = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaKeySession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "expiration"); + + let result = cbb_wf.getValue(this, 'expiration'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaKeySession_get_expiration, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySession_get_expiration, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaKeySession_get_closed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaKeySession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "closed"); + + let result = cbb_wf.getValue(this, 'closed'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaKeySession_get_closed, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySession_get_closed, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaKeySession_get_keyStatuses = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaKeySession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "keyStatuses"); + + let result = cbb_wf.getValue(this, 'keyStatuses'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaKeySession_get_keyStatuses, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySession_get_keyStatuses, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaKeySession_get_onkeystatuseschange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaKeySession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onkeystatuseschange"); + + let result = cbb_wf.getValue(this, 'onkeystatuseschange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaKeySession_get_onkeystatuseschange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySession_get_onkeystatuseschange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaKeySession_set_onkeystatuseschange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeySession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onkeystatuseschange", val); - if (cbb_wf.is_log) { - console.log("[*] MediaKeySession_set_onkeystatuseschange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MediaKeySession_get_onmessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaKeySession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmessage"); + cbb_wf.setValue(this, 'onkeystatuseschange', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaKeySession_get_onmessage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySession_set_onkeystatuseschange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaKeySession_get_onmessage = function () { + let r = cbb_wf.checkIllegal(this, "MediaKeySession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onmessage'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySession_get_onmessage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaKeySession_set_onmessage = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeySession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmessage", val); - if (cbb_wf.is_log) { - console.log("[*] MediaKeySession_set_onmessage, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaKeySession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onmessage', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySession_set_onmessage, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaKeySession_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeySession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeySession_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeySession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySession_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeySession_generateRequest = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeySession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeySession_generateRequest, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeySession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySession_generateRequest, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeySession_load = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeySession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeySession_load, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeySession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySession_load, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeySession_remove = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeySession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeySession_remove, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeySession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySession_remove, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeySession_update = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeySession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeySession_update, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeySession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySession_update, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeyStatusMap_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaKeyStatusMap"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + + let result = cbb_wf.getValue(this, 'size'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaKeyStatusMap_get_size, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeyStatusMap_get_size, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaKeyStatusMap_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeyStatusMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeyStatusMap_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeyStatusMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeyStatusMap_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeyStatusMap_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeyStatusMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeyStatusMap_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeyStatusMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeyStatusMap_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeyStatusMap_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeyStatusMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeyStatusMap_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeyStatusMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeyStatusMap_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeyStatusMap_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeyStatusMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeyStatusMap_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeyStatusMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeyStatusMap_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeyStatusMap_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeyStatusMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeyStatusMap_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeyStatusMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeyStatusMap_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeyStatusMap_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeyStatusMap"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeyStatusMap_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeyStatusMap"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeyStatusMap_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeySystemAccess_get_keySystem = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaKeySystemAccess"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "keySystem"); + + let result = cbb_wf.getValue(this, 'keySystem'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaKeySystemAccess_get_keySystem, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySystemAccess_get_keySystem, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaKeySystemAccess_createMediaKeys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeySystemAccess"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeySystemAccess_createMediaKeys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeySystemAccess"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySystemAccess_createMediaKeys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeySystemAccess_getConfiguration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeySystemAccess"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeySystemAccess_getConfiguration, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeySystemAccess"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeySystemAccess_getConfiguration, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeys_createSession = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeys"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeys_createSession, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeys"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeys_createSession, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeys_setServerCertificate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeys"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeys_setServerCertificate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeys"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeys_setServerCertificate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaKeys_getStatusForPolicy = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaKeys"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaKeys_getStatusForPolicy, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaKeys"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaKeys_getStatusForPolicy, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.NavigationPreloadManager_disable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationPreloadManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NavigationPreloadManager_disable, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "NavigationPreloadManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationPreloadManager_disable, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.NavigationPreloadManager_enable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationPreloadManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NavigationPreloadManager_enable, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "NavigationPreloadManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationPreloadManager_enable, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.NavigationPreloadManager_getState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationPreloadManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NavigationPreloadManager_getState, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "NavigationPreloadManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationPreloadManager_getState, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.NavigationPreloadManager_setHeaderValue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationPreloadManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NavigationPreloadManager_setHeaderValue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "NavigationPreloadManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationPreloadManager_setHeaderValue, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.NavigatorManagedData_get_onmanagedconfigurationchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "NavigatorManagedData"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmanagedconfigurationchange"); + + let result = cbb_wf.getValue(this, 'onmanagedconfigurationchange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigatorManagedData_get_onmanagedconfigurationchange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigatorManagedData_get_onmanagedconfigurationchange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.NavigatorManagedData_set_onmanagedconfigurationchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigatorManagedData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmanagedconfigurationchange", val); - if (cbb_wf.is_log) { - console.log("[*] NavigatorManagedData_set_onmanagedconfigurationchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "NavigatorManagedData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onmanagedconfigurationchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigatorManagedData_set_onmanagedconfigurationchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.NavigatorManagedData_getManagedConfiguration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigatorManagedData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NavigatorManagedData_getManagedConfiguration, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "NavigatorManagedData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigatorManagedData_getManagedConfiguration, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.OrientationSensor_get_quaternion = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OrientationSensor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "quaternion"); + + let result = cbb_wf.getValue(this, 'quaternion'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OrientationSensor_get_quaternion, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OrientationSensor_get_quaternion, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.OrientationSensor_populateMatrix = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "OrientationSensor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] OrientationSensor_populateMatrix, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "OrientationSensor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OrientationSensor_populateMatrix, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PasswordCredential_get_password = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PasswordCredential"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "password"); + + let result = cbb_wf.getValue(this, 'password'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PasswordCredential_get_password, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PasswordCredential_get_password, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PasswordCredential_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PasswordCredential"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PasswordCredential_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PasswordCredential_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PasswordCredential_get_iconURL = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PasswordCredential"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "iconURL"); + + let result = cbb_wf.getValue(this, 'iconURL'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PasswordCredential_get_iconURL, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PasswordCredential_get_iconURL, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.ScreenDetailed_get_left = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenDetailed"); +this.RTCIceTransport_get_role = function () { + let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "left"); + + let result = cbb_wf.getValue(this, 'role'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScreenDetailed_get_left, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceTransport_get_role, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.ScreenDetailed_get_top = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenDetailed"); +this.RTCIceTransport_get_state = function () { + let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "top"); + + let result = cbb_wf.getValue(this, 'state'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScreenDetailed_get_top, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceTransport_get_state, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.ScreenDetailed_get_isPrimary = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenDetailed"); +this.RTCIceTransport_get_gatheringState = function () { + let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "isPrimary"); + + let result = cbb_wf.getValue(this, 'gatheringState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScreenDetailed_get_isPrimary, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceTransport_get_gatheringState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.ScreenDetailed_get_isInternal = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenDetailed"); +this.RTCIceTransport_get_onstatechange = function () { + let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "isInternal"); + + let result = cbb_wf.getValue(this, 'onstatechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScreenDetailed_get_isInternal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceTransport_get_onstatechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.ScreenDetailed_get_devicePixelRatio = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenDetailed"); +this.RTCIceTransport_set_onstatechange = function (val) { + let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "devicePixelRatio"); + cbb_wf.setValue(this, 'onstatechange', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScreenDetailed_get_devicePixelRatio, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceTransport_set_onstatechange, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - -this.ScreenDetailed_get_label = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenDetailed"); +this.RTCIceTransport_get_ongatheringstatechange = function () { + let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "label"); + + let result = cbb_wf.getValue(this, 'ongatheringstatechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScreenDetailed_get_label, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceTransport_get_ongatheringstatechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.ScreenDetails_get_screens = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenDetails"); +this.RTCIceTransport_set_ongatheringstatechange = function (val) { + let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "screens"); + cbb_wf.setValue(this, 'ongatheringstatechange', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScreenDetails_get_screens, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceTransport_set_ongatheringstatechange, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - -this.ScreenDetails_get_currentScreen = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenDetails"); +this.RTCIceTransport_get_onselectedcandidatepairchange = function () { + let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "currentScreen"); + + let result = cbb_wf.getValue(this, 'onselectedcandidatepairchange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScreenDetails_get_currentScreen, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceTransport_get_onselectedcandidatepairchange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.ScreenDetails_get_onscreenschange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenDetails"); +this.RTCIceTransport_set_onselectedcandidatepairchange = function (val) { + let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onscreenschange"); + cbb_wf.setValue(this, 'onselectedcandidatepairchange', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScreenDetails_get_onscreenschange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceTransport_set_onselectedcandidatepairchange, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - -this.ScreenDetails_set_onscreenschange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenDetails"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onscreenschange", val); - if (cbb_wf.is_log) { - console.log("[*] ScreenDetails_set_onscreenschange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.ScreenDetails_get_oncurrentscreenchange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenDetails"); +this.RTCIceTransport_getLocalCandidates = function () { + let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oncurrentscreenchange"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScreenDetails_get_oncurrentscreenchange, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceTransport_getLocalCandidates, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.ScreenDetails_set_oncurrentscreenchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScreenDetails"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncurrentscreenchange", val); - if (cbb_wf.is_log) { - console.log("[*] ScreenDetails_set_oncurrentscreenchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; +this.RTCIceTransport_getLocalParameters = function () { + let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceTransport_getLocalParameters, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.RTCIceTransport_getRemoteCandidates = function () { + let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceTransport_getRemoteCandidates, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.RTCIceTransport_getRemoteParameters = function () { + let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceTransport_getRemoteParameters, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.RTCIceTransport_getSelectedCandidatePair = function () { + let r = cbb_wf.checkIllegal(this, "RTCIceTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RTCIceTransport_getSelectedCandidatePair, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Sensor_get_activated = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Sensor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "activated"); + + let result = cbb_wf.getValue(this, 'activated'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Sensor_get_activated, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Sensor_get_activated, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Sensor_get_hasReading = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Sensor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "hasReading"); + + let result = cbb_wf.getValue(this, 'hasReading'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Sensor_get_hasReading, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Sensor_get_hasReading, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Sensor_get_timestamp = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Sensor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "timestamp"); + + let result = cbb_wf.getValue(this, 'timestamp'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Sensor_get_timestamp, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Sensor_get_timestamp, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Sensor_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Sensor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + + let result = cbb_wf.getValue(this, 'onerror'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Sensor_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Sensor_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Sensor_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Sensor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] Sensor_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "Sensor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Sensor_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Sensor_get_onreading = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Sensor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onreading"); + + let result = cbb_wf.getValue(this, 'onreading'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Sensor_get_onreading, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Sensor_get_onreading, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Sensor_set_onreading = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Sensor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onreading", val); - if (cbb_wf.is_log) { - console.log("[*] Sensor_set_onreading, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Sensor_get_onactivate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Sensor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onactivate"); + cbb_wf.setValue(this, 'onreading', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Sensor_get_onactivate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Sensor_set_onreading, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.Sensor_get_onactivate = function () { + let r = cbb_wf.checkIllegal(this, "Sensor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onactivate'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Sensor_get_onactivate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Sensor_set_onactivate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Sensor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onactivate", val); - if (cbb_wf.is_log) { - console.log("[*] Sensor_set_onactivate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "Sensor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onactivate', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Sensor_set_onactivate, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Sensor_start = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Sensor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Sensor_start, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Sensor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Sensor_start, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Sensor_stop = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Sensor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Sensor_stop, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Sensor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Sensor_stop, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SensorErrorEvent_get_error = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SensorErrorEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "error"); + + let result = cbb_wf.getValue(this, 'error'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SensorErrorEvent_get_error, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SensorErrorEvent_get_error, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorker_get_scriptURL = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorker"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "scriptURL"); + + let result = cbb_wf.getValue(this, 'scriptURL'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorker_get_scriptURL, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorker_get_scriptURL, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorker_get_state = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorker"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "state"); + + let result = cbb_wf.getValue(this, 'state'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorker_get_state, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorker_get_state, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorker_get_onstatechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorker"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onstatechange"); + + let result = cbb_wf.getValue(this, 'onstatechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorker_get_onstatechange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorker_get_onstatechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorker_set_onstatechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onstatechange", val); - if (cbb_wf.is_log) { - console.log("[*] ServiceWorker_set_onstatechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.ServiceWorker_postMessage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ServiceWorker_postMessage, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ServiceWorker_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorker"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + cbb_wf.setValue(this, 'onstatechange', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorker_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorker_set_onstatechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.ServiceWorker_postMessage = function () { + let r = cbb_wf.checkIllegal(this, "ServiceWorker"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorker_postMessage, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.ServiceWorker_get_onerror = function () { + let r = cbb_wf.checkIllegal(this, "ServiceWorker"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'onerror'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorker_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.ServiceWorker_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] ServiceWorker_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ServiceWorker"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorker_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ServiceWorkerContainer_get_controller = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "controller"); + + let result = cbb_wf.getValue(this, 'controller'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerContainer_get_controller, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerContainer_get_controller, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerContainer_get_ready = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ready"); + + let result = cbb_wf.getValue(this, 'ready'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerContainer_get_ready, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerContainer_get_ready, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerContainer_get_oncontrollerchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oncontrollerchange"); + + let result = cbb_wf.getValue(this, 'oncontrollerchange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerContainer_get_oncontrollerchange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerContainer_get_oncontrollerchange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerContainer_set_oncontrollerchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncontrollerchange", val); - if (cbb_wf.is_log) { - console.log("[*] ServiceWorkerContainer_set_oncontrollerchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'oncontrollerchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerContainer_set_oncontrollerchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ServiceWorkerContainer_get_onmessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmessage"); + + let result = cbb_wf.getValue(this, 'onmessage'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerContainer_get_onmessage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerContainer_get_onmessage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerContainer_set_onmessage = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmessage", val); - if (cbb_wf.is_log) { - console.log("[*] ServiceWorkerContainer_set_onmessage, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.ServiceWorkerContainer_get_onmessageerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmessageerror"); + cbb_wf.setValue(this, 'onmessage', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerContainer_get_onmessageerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerContainer_set_onmessage, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.ServiceWorkerContainer_get_onmessageerror = function () { + let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onmessageerror'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerContainer_get_onmessageerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerContainer_set_onmessageerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmessageerror", val); - if (cbb_wf.is_log) { - console.log("[*] ServiceWorkerContainer_set_onmessageerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onmessageerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerContainer_set_onmessageerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ServiceWorkerContainer_getRegistration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ServiceWorkerContainer_getRegistration, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerContainer_getRegistration, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ServiceWorkerContainer_getRegistrations = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ServiceWorkerContainer_getRegistrations, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerContainer_getRegistrations, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ServiceWorkerContainer_register = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ServiceWorkerContainer_register, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerContainer_register, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ServiceWorkerContainer_startMessages = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ServiceWorkerContainer_startMessages, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ServiceWorkerContainer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerContainer_startMessages, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ServiceWorkerRegistration_get_installing = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "installing"); + + let result = cbb_wf.getValue(this, 'installing'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerRegistration_get_installing, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_get_installing, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerRegistration_get_waiting = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "waiting"); + + let result = cbb_wf.getValue(this, 'waiting'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerRegistration_get_waiting, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_get_waiting, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerRegistration_get_active = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "active"); + + let result = cbb_wf.getValue(this, 'active'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerRegistration_get_active, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_get_active, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerRegistration_get_navigationPreload = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "navigationPreload"); + + let result = cbb_wf.getValue(this, 'navigationPreload'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerRegistration_get_navigationPreload, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_get_navigationPreload, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerRegistration_get_scope = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "scope"); + + let result = cbb_wf.getValue(this, 'scope'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerRegistration_get_scope, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_get_scope, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerRegistration_get_updateViaCache = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "updateViaCache"); + + let result = cbb_wf.getValue(this, 'updateViaCache'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerRegistration_get_updateViaCache, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_get_updateViaCache, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerRegistration_get_onupdatefound = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onupdatefound"); + + let result = cbb_wf.getValue(this, 'onupdatefound'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerRegistration_get_onupdatefound, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_get_onupdatefound, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerRegistration_set_onupdatefound = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onupdatefound", val); - if (cbb_wf.is_log) { - console.log("[*] ServiceWorkerRegistration_set_onupdatefound, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onupdatefound', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_set_onupdatefound, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.ServiceWorkerRegistration_unregister = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ServiceWorkerRegistration_unregister, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_unregister, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ServiceWorkerRegistration_update = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ServiceWorkerRegistration_update, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_update, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ServiceWorkerRegistration_get_paymentManager = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "paymentManager"); + + let result = cbb_wf.getValue(this, 'paymentManager'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerRegistration_get_paymentManager, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_get_paymentManager, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerRegistration_get_backgroundFetch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "backgroundFetch"); + + let result = cbb_wf.getValue(this, 'backgroundFetch'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerRegistration_get_backgroundFetch, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_get_backgroundFetch, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerRegistration_get_periodicSync = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "periodicSync"); + + let result = cbb_wf.getValue(this, 'periodicSync'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerRegistration_get_periodicSync, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_get_periodicSync, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerRegistration_get_sync = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sync"); + + let result = cbb_wf.getValue(this, 'sync'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerRegistration_get_sync, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_get_sync, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerRegistration_get_cookies = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "cookies"); + + let result = cbb_wf.getValue(this, 'cookies'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerRegistration_get_cookies, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_get_cookies, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerRegistration_get_pushManager = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pushManager"); + + let result = cbb_wf.getValue(this, 'pushManager'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ServiceWorkerRegistration_get_pushManager, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_get_pushManager, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.ServiceWorkerRegistration_getNotifications = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ServiceWorkerRegistration_getNotifications, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_getNotifications, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.ServiceWorkerRegistration_showNotification = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] ServiceWorkerRegistration_showNotification, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "ServiceWorkerRegistration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ServiceWorkerRegistration_showNotification, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StorageManager_estimate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StorageManager_estimate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StorageManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StorageManager_estimate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StorageManager_persisted = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StorageManager_persisted, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StorageManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StorageManager_persisted, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StorageManager_getDirectory = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StorageManager_getDirectory, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StorageManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StorageManager_getDirectory, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.StorageManager_persist = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StorageManager_persist, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "StorageManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "StorageManager_persist, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SubtleCrypto_decrypt = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SubtleCrypto_decrypt, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SubtleCrypto_decrypt, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SubtleCrypto_deriveBits = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SubtleCrypto_deriveBits, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SubtleCrypto_deriveBits, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SubtleCrypto_deriveKey = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SubtleCrypto_deriveKey, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SubtleCrypto_deriveKey, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SubtleCrypto_digest = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SubtleCrypto_digest, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SubtleCrypto_digest, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SubtleCrypto_encrypt = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SubtleCrypto_encrypt, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SubtleCrypto_encrypt, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SubtleCrypto_exportKey = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SubtleCrypto_exportKey, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SubtleCrypto_exportKey, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SubtleCrypto_generateKey = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SubtleCrypto_generateKey, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SubtleCrypto_generateKey, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SubtleCrypto_importKey = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SubtleCrypto_importKey, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SubtleCrypto_importKey, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SubtleCrypto_sign = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SubtleCrypto_sign, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SubtleCrypto_sign, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SubtleCrypto_unwrapKey = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SubtleCrypto_unwrapKey, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SubtleCrypto_unwrapKey, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SubtleCrypto_verify = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SubtleCrypto_verify, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SubtleCrypto_verify, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SubtleCrypto_wrapKey = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SubtleCrypto_wrapKey, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoDecoder_isConfigSupported = function () { -let r = cbb_wf.checkIllegal(this, "VideoDecoder"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoDecoder_isConfigSupported, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.VideoDecoder_get_decodeQueueSize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoDecoder"); + let r = cbb_wf.checkIllegal(this, "SubtleCrypto"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "decodeQueueSize"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoDecoder_get_decodeQueueSize, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SubtleCrypto_wrapKey, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.VideoDecoder_get_ondequeue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondequeue"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoDecoder_get_ondequeue, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoDecoder_set_ondequeue = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondequeue", val); - if (cbb_wf.is_log) { - console.log("[*] VideoDecoder_set_ondequeue, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.VideoDecoder_get_state = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "state"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoDecoder_get_state, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoDecoder_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoDecoder_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoDecoder_configure = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoDecoder_configure, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoDecoder_decode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoDecoder_decode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoDecoder_flush = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoDecoder_flush, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoDecoder_reset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoDecoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoDecoder_reset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoEncoder_isConfigSupported = function () { -let r = cbb_wf.checkIllegal(this, "VideoEncoder"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoEncoder_isConfigSupported, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.VideoEncoder_get_encodeQueueSize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "encodeQueueSize"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoEncoder_get_encodeQueueSize, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoEncoder_get_ondequeue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ondequeue"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoEncoder_get_ondequeue, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoEncoder_set_ondequeue = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondequeue", val); - if (cbb_wf.is_log) { - console.log("[*] VideoEncoder_set_ondequeue, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.VideoEncoder_get_state = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "state"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoEncoder_get_state, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VideoEncoder_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoEncoder_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoEncoder_configure = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoEncoder_configure, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoEncoder_encode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoEncoder_encode, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoEncoder_flush = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoEncoder_flush, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VideoEncoder_reset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VideoEncoder"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VideoEncoder_reset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VirtualKeyboard_get_boundingRect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VirtualKeyboard"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "boundingRect"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VirtualKeyboard_get_boundingRect, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VirtualKeyboard_get_overlaysContent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VirtualKeyboard"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "overlaysContent"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VirtualKeyboard_get_overlaysContent, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VirtualKeyboard_set_overlaysContent = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VirtualKeyboard"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "overlaysContent", val); - if (cbb_wf.is_log) { - console.log("[*] VirtualKeyboard_set_overlaysContent, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.VirtualKeyboard_get_ongeometrychange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VirtualKeyboard"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ongeometrychange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VirtualKeyboard_get_ongeometrychange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.VirtualKeyboard_set_ongeometrychange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VirtualKeyboard"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ongeometrychange", val); - if (cbb_wf.is_log) { - console.log("[*] VirtualKeyboard_set_ongeometrychange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.VirtualKeyboard_hide = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VirtualKeyboard"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VirtualKeyboard_hide, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.VirtualKeyboard_show = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "VirtualKeyboard"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] VirtualKeyboard_show, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WGSLLanguageFeatures_get_size = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WGSLLanguageFeatures"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "size"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WGSLLanguageFeatures_get_size, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WGSLLanguageFeatures_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WGSLLanguageFeatures"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WGSLLanguageFeatures_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WGSLLanguageFeatures_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WGSLLanguageFeatures"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WGSLLanguageFeatures_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WGSLLanguageFeatures_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WGSLLanguageFeatures"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WGSLLanguageFeatures_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WGSLLanguageFeatures_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WGSLLanguageFeatures"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WGSLLanguageFeatures_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WGSLLanguageFeatures_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WGSLLanguageFeatures"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WGSLLanguageFeatures_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebTransport_get_incomingUnidirectionalStreams = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "incomingUnidirectionalStreams"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransport_get_incomingUnidirectionalStreams, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransport_get_incomingBidirectionalStreams = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "incomingBidirectionalStreams"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransport_get_incomingBidirectionalStreams, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransport_get_datagrams = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "datagrams"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransport_get_datagrams, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransport_get_ready = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ready"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransport_get_ready, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransport_get_closed = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "closed"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransport_get_closed, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransport_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebTransport_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebTransport_createBidirectionalStream = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebTransport_createBidirectionalStream, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebTransport_createUnidirectionalStream = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransport"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebTransport_createUnidirectionalStream, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.WebTransportBidirectionalStream_get_readable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportBidirectionalStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "readable"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransportBidirectionalStream_get_readable, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransportBidirectionalStream_get_writable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportBidirectionalStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "writable"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransportBidirectionalStream_get_writable, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransportDatagramDuplexStream_get_readable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "readable"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransportDatagramDuplexStream_get_readable, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransportDatagramDuplexStream_get_writable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "writable"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransportDatagramDuplexStream_get_writable, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransportDatagramDuplexStream_get_maxDatagramSize = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "maxDatagramSize"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransportDatagramDuplexStream_get_maxDatagramSize, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransportDatagramDuplexStream_get_incomingMaxAge = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "incomingMaxAge"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransportDatagramDuplexStream_get_incomingMaxAge, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransportDatagramDuplexStream_set_incomingMaxAge = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "incomingMaxAge", val); - if (cbb_wf.is_log) { - console.log("[*] WebTransportDatagramDuplexStream_set_incomingMaxAge, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.WebTransportDatagramDuplexStream_get_outgoingMaxAge = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "outgoingMaxAge"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransportDatagramDuplexStream_get_outgoingMaxAge, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransportDatagramDuplexStream_set_outgoingMaxAge = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "outgoingMaxAge", val); - if (cbb_wf.is_log) { - console.log("[*] WebTransportDatagramDuplexStream_set_outgoingMaxAge, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.WebTransportDatagramDuplexStream_get_incomingHighWaterMark = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "incomingHighWaterMark"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransportDatagramDuplexStream_get_incomingHighWaterMark, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransportDatagramDuplexStream_set_incomingHighWaterMark = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "incomingHighWaterMark", val); - if (cbb_wf.is_log) { - console.log("[*] WebTransportDatagramDuplexStream_set_incomingHighWaterMark, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.WebTransportDatagramDuplexStream_get_outgoingHighWaterMark = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "outgoingHighWaterMark"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransportDatagramDuplexStream_get_outgoingHighWaterMark, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransportDatagramDuplexStream_set_outgoingHighWaterMark = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "outgoingHighWaterMark", val); - if (cbb_wf.is_log) { - console.log("[*] WebTransportDatagramDuplexStream_set_outgoingHighWaterMark, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.WebTransportError_get_streamErrorCode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportError"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "streamErrorCode"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransportError_get_streamErrorCode, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.WebTransportError_get_source = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebTransportError"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "source"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebTransportError_get_source, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.Worklet_addModule = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Worklet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Worklet_addModule, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Worklet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Worklet_addModule, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XRDOMOverlayState_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRDOMOverlayState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRDOMOverlayState_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRDOMOverlayState_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.XRWebGLBinding_getCameraImage = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRWebGLBinding"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRWebGLBinding_getCameraImage, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRWebGLBinding_getDepthInformation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRWebGLBinding"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRWebGLBinding_getDepthInformation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.XRWebGLBinding_getReflectionCubeMap = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRWebGLBinding"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRWebGLBinding_getReflectionCubeMap, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRWebGLBinding"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRWebGLBinding_getReflectionCubeMap, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRWebGLBinding_getDepthInformation = function () { + let r = cbb_wf.checkIllegal(this, "XRWebGLBinding"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRWebGLBinding_getDepthInformation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioData_get_format = function () { + let r = cbb_wf.checkIllegal(this, "AudioData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'format'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioData_get_format, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.AudioData_get_sampleRate = function () { + let r = cbb_wf.checkIllegal(this, "AudioData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'sampleRate'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioData_get_sampleRate, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.AudioData_get_numberOfFrames = function () { + let r = cbb_wf.checkIllegal(this, "AudioData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'numberOfFrames'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioData_get_numberOfFrames, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.AudioData_get_numberOfChannels = function () { + let r = cbb_wf.checkIllegal(this, "AudioData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'numberOfChannels'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioData_get_numberOfChannels, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.AudioData_get_duration = function () { + let r = cbb_wf.checkIllegal(this, "AudioData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'duration'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioData_get_duration, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.AudioData_get_timestamp = function () { + let r = cbb_wf.checkIllegal(this, "AudioData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'timestamp'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioData_get_timestamp, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.AudioData_allocationSize = function () { + let r = cbb_wf.checkIllegal(this, "AudioData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioData_allocationSize, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioData_clone = function () { + let r = cbb_wf.checkIllegal(this, "AudioData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioData_clone, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioData_close = function () { + let r = cbb_wf.checkIllegal(this, "AudioData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioData_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioData_copyTo = function () { + let r = cbb_wf.checkIllegal(this, "AudioData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioData_copyTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EncodedAudioChunk_get_type = function () { + let r = cbb_wf.checkIllegal(this, "EncodedAudioChunk"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'type'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EncodedAudioChunk_get_type, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EncodedAudioChunk_get_timestamp = function () { + let r = cbb_wf.checkIllegal(this, "EncodedAudioChunk"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'timestamp'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EncodedAudioChunk_get_timestamp, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EncodedAudioChunk_get_byteLength = function () { + let r = cbb_wf.checkIllegal(this, "EncodedAudioChunk"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'byteLength'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EncodedAudioChunk_get_byteLength, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EncodedAudioChunk_get_duration = function () { + let r = cbb_wf.checkIllegal(this, "EncodedAudioChunk"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'duration'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EncodedAudioChunk_get_duration, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EncodedAudioChunk_copyTo = function () { + let r = cbb_wf.checkIllegal(this, "EncodedAudioChunk"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EncodedAudioChunk_copyTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EncodedVideoChunk_get_type = function () { + let r = cbb_wf.checkIllegal(this, "EncodedVideoChunk"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'type'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EncodedVideoChunk_get_type, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EncodedVideoChunk_get_timestamp = function () { + let r = cbb_wf.checkIllegal(this, "EncodedVideoChunk"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'timestamp'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EncodedVideoChunk_get_timestamp, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EncodedVideoChunk_get_duration = function () { + let r = cbb_wf.checkIllegal(this, "EncodedVideoChunk"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'duration'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EncodedVideoChunk_get_duration, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EncodedVideoChunk_get_byteLength = function () { + let r = cbb_wf.checkIllegal(this, "EncodedVideoChunk"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'byteLength'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EncodedVideoChunk_get_byteLength, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EncodedVideoChunk_copyTo = function () { + let r = cbb_wf.checkIllegal(this, "EncodedVideoChunk"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EncodedVideoChunk_copyTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ImageTrack_get_frameCount = function () { + let r = cbb_wf.checkIllegal(this, "ImageTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'frameCount'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageTrack_get_frameCount, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ImageTrack_get_animated = function () { + let r = cbb_wf.checkIllegal(this, "ImageTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'animated'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageTrack_get_animated, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ImageTrack_get_repetitionCount = function () { + let r = cbb_wf.checkIllegal(this, "ImageTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'repetitionCount'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageTrack_get_repetitionCount, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ImageTrack_get_selected = function () { + let r = cbb_wf.checkIllegal(this, "ImageTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'selected'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageTrack_get_selected, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ImageTrack_set_selected = function (val) { + let r = cbb_wf.checkIllegal(this, "ImageTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'selected', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageTrack_set_selected, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.ImageTrackList_get_length = function () { + let r = cbb_wf.checkIllegal(this, "ImageTrackList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'length'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageTrackList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ImageTrackList_get_selectedIndex = function () { + let r = cbb_wf.checkIllegal(this, "ImageTrackList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'selectedIndex'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageTrackList_get_selectedIndex, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ImageTrackList_get_selectedTrack = function () { + let r = cbb_wf.checkIllegal(this, "ImageTrackList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'selectedTrack'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageTrackList_get_selectedTrack, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ImageTrackList_get_ready = function () { + let r = cbb_wf.checkIllegal(this, "ImageTrackList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ready'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageTrackList_get_ready, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoColorSpace_get_primaries = function () { + let r = cbb_wf.checkIllegal(this, "VideoColorSpace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'primaries'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoColorSpace_get_primaries, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoColorSpace_get_transfer = function () { + let r = cbb_wf.checkIllegal(this, "VideoColorSpace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'transfer'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoColorSpace_get_transfer, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoColorSpace_get_matrix = function () { + let r = cbb_wf.checkIllegal(this, "VideoColorSpace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'matrix'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoColorSpace_get_matrix, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoColorSpace_get_fullRange = function () { + let r = cbb_wf.checkIllegal(this, "VideoColorSpace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'fullRange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoColorSpace_get_fullRange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoColorSpace_toJSON = function () { + let r = cbb_wf.checkIllegal(this, "VideoColorSpace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoColorSpace_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VideoFrame_get_format = function () { + let r = cbb_wf.checkIllegal(this, "VideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'format'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoFrame_get_format, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoFrame_get_timestamp = function () { + let r = cbb_wf.checkIllegal(this, "VideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'timestamp'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoFrame_get_timestamp, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoFrame_get_duration = function () { + let r = cbb_wf.checkIllegal(this, "VideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'duration'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoFrame_get_duration, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoFrame_get_codedWidth = function () { + let r = cbb_wf.checkIllegal(this, "VideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'codedWidth'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoFrame_get_codedWidth, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoFrame_get_codedHeight = function () { + let r = cbb_wf.checkIllegal(this, "VideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'codedHeight'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoFrame_get_codedHeight, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoFrame_get_codedRect = function () { + let r = cbb_wf.checkIllegal(this, "VideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'codedRect'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoFrame_get_codedRect, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoFrame_get_visibleRect = function () { + let r = cbb_wf.checkIllegal(this, "VideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'visibleRect'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoFrame_get_visibleRect, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoFrame_get_displayWidth = function () { + let r = cbb_wf.checkIllegal(this, "VideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'displayWidth'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoFrame_get_displayWidth, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoFrame_get_displayHeight = function () { + let r = cbb_wf.checkIllegal(this, "VideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'displayHeight'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoFrame_get_displayHeight, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoFrame_get_colorSpace = function () { + let r = cbb_wf.checkIllegal(this, "VideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'colorSpace'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoFrame_get_colorSpace, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoFrame_allocationSize = function () { + let r = cbb_wf.checkIllegal(this, "VideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoFrame_allocationSize, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VideoFrame_clone = function () { + let r = cbb_wf.checkIllegal(this, "VideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoFrame_clone, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VideoFrame_close = function () { + let r = cbb_wf.checkIllegal(this, "VideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoFrame_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VideoFrame_copyTo = function () { + let r = cbb_wf.checkIllegal(this, "VideoFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoFrame_copyTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioDecoder_get_decodeQueueSize = function () { + let r = cbb_wf.checkIllegal(this, "AudioDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'decodeQueueSize'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioDecoder_get_decodeQueueSize, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.AudioDecoder_get_state = function () { + let r = cbb_wf.checkIllegal(this, "AudioDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'state'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioDecoder_get_state, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.AudioDecoder_close = function () { + let r = cbb_wf.checkIllegal(this, "AudioDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioDecoder_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioDecoder_configure = function () { + let r = cbb_wf.checkIllegal(this, "AudioDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioDecoder_configure, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioDecoder_decode = function () { + let r = cbb_wf.checkIllegal(this, "AudioDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioDecoder_decode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioDecoder_flush = function () { + let r = cbb_wf.checkIllegal(this, "AudioDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioDecoder_flush, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioDecoder_reset = function () { + let r = cbb_wf.checkIllegal(this, "AudioDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioDecoder_reset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioEncoder_get_encodeQueueSize = function () { + let r = cbb_wf.checkIllegal(this, "AudioEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'encodeQueueSize'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioEncoder_get_encodeQueueSize, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.AudioEncoder_get_state = function () { + let r = cbb_wf.checkIllegal(this, "AudioEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'state'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioEncoder_get_state, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.AudioEncoder_close = function () { + let r = cbb_wf.checkIllegal(this, "AudioEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioEncoder_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioEncoder_configure = function () { + let r = cbb_wf.checkIllegal(this, "AudioEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioEncoder_configure, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioEncoder_encode = function () { + let r = cbb_wf.checkIllegal(this, "AudioEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioEncoder_encode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioEncoder_flush = function () { + let r = cbb_wf.checkIllegal(this, "AudioEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioEncoder_flush, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.AudioEncoder_reset = function () { + let r = cbb_wf.checkIllegal(this, "AudioEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AudioEncoder_reset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ImageDecoder_get_type = function () { + let r = cbb_wf.checkIllegal(this, "ImageDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'type'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageDecoder_get_type, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ImageDecoder_get_complete = function () { + let r = cbb_wf.checkIllegal(this, "ImageDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'complete'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageDecoder_get_complete, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ImageDecoder_get_completed = function () { + let r = cbb_wf.checkIllegal(this, "ImageDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'completed'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageDecoder_get_completed, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ImageDecoder_get_tracks = function () { + let r = cbb_wf.checkIllegal(this, "ImageDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'tracks'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageDecoder_get_tracks, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ImageDecoder_close = function () { + let r = cbb_wf.checkIllegal(this, "ImageDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageDecoder_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ImageDecoder_decode = function () { + let r = cbb_wf.checkIllegal(this, "ImageDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageDecoder_decode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ImageDecoder_reset = function () { + let r = cbb_wf.checkIllegal(this, "ImageDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ImageDecoder_reset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VideoDecoder_get_decodeQueueSize = function () { + let r = cbb_wf.checkIllegal(this, "VideoDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'decodeQueueSize'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoDecoder_get_decodeQueueSize, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoDecoder_get_state = function () { + let r = cbb_wf.checkIllegal(this, "VideoDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'state'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoDecoder_get_state, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoDecoder_close = function () { + let r = cbb_wf.checkIllegal(this, "VideoDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoDecoder_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VideoDecoder_configure = function () { + let r = cbb_wf.checkIllegal(this, "VideoDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoDecoder_configure, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VideoDecoder_decode = function () { + let r = cbb_wf.checkIllegal(this, "VideoDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoDecoder_decode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VideoDecoder_flush = function () { + let r = cbb_wf.checkIllegal(this, "VideoDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoDecoder_flush, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VideoDecoder_reset = function () { + let r = cbb_wf.checkIllegal(this, "VideoDecoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoDecoder_reset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VideoEncoder_get_encodeQueueSize = function () { + let r = cbb_wf.checkIllegal(this, "VideoEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'encodeQueueSize'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoEncoder_get_encodeQueueSize, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoEncoder_get_state = function () { + let r = cbb_wf.checkIllegal(this, "VideoEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'state'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoEncoder_get_state, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VideoEncoder_close = function () { + let r = cbb_wf.checkIllegal(this, "VideoEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoEncoder_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VideoEncoder_configure = function () { + let r = cbb_wf.checkIllegal(this, "VideoEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoEncoder_configure, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VideoEncoder_encode = function () { + let r = cbb_wf.checkIllegal(this, "VideoEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoEncoder_encode, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VideoEncoder_flush = function () { + let r = cbb_wf.checkIllegal(this, "VideoEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoEncoder_flush, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VideoEncoder_reset = function () { + let r = cbb_wf.checkIllegal(this, "VideoEncoder"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoEncoder_reset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AuthenticatorAssertionResponse_get_authenticatorData = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AuthenticatorAssertionResponse"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "authenticatorData"); + + let result = cbb_wf.getValue(this, 'authenticatorData'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AuthenticatorAssertionResponse_get_authenticatorData, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AuthenticatorAssertionResponse_get_authenticatorData, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AuthenticatorAssertionResponse_get_signature = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AuthenticatorAssertionResponse"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "signature"); + + let result = cbb_wf.getValue(this, 'signature'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AuthenticatorAssertionResponse_get_signature, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AuthenticatorAssertionResponse_get_signature, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AuthenticatorAssertionResponse_get_userHandle = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AuthenticatorAssertionResponse"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "userHandle"); + + let result = cbb_wf.getValue(this, 'userHandle'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AuthenticatorAssertionResponse_get_userHandle, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AuthenticatorAssertionResponse_get_userHandle, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AuthenticatorAttestationResponse_get_attestationObject = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AuthenticatorAttestationResponse"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "attestationObject"); + + let result = cbb_wf.getValue(this, 'attestationObject'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AuthenticatorAttestationResponse_get_attestationObject, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AuthenticatorAttestationResponse_get_attestationObject, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.AuthenticatorAttestationResponse_getAuthenticatorData = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AuthenticatorAttestationResponse"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AuthenticatorAttestationResponse_getAuthenticatorData, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AuthenticatorAttestationResponse"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AuthenticatorAttestationResponse_getAuthenticatorData, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AuthenticatorAttestationResponse_getPublicKey = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AuthenticatorAttestationResponse"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AuthenticatorAttestationResponse_getPublicKey, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AuthenticatorAttestationResponse"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AuthenticatorAttestationResponse_getPublicKey, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AuthenticatorAttestationResponse_getPublicKeyAlgorithm = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AuthenticatorAttestationResponse"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AuthenticatorAttestationResponse_getPublicKeyAlgorithm, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AuthenticatorAttestationResponse"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AuthenticatorAttestationResponse_getPublicKeyAlgorithm, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AuthenticatorAttestationResponse_getTransports = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "AuthenticatorAttestationResponse"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] AuthenticatorAttestationResponse_getTransports, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "AuthenticatorAttestationResponse"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AuthenticatorAttestationResponse_getTransports, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.AuthenticatorResponse_get_clientDataJSON = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "AuthenticatorResponse"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "clientDataJSON"); + + let result = cbb_wf.getValue(this, 'clientDataJSON'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] AuthenticatorResponse_get_clientDataJSON, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AuthenticatorResponse_get_clientDataJSON, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.PublicKeyCredential_isConditionalMediationAvailable = function () { -let r = cbb_wf.checkIllegal(this, "PublicKeyCredential"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PublicKeyCredential_isConditionalMediationAvailable, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.PublicKeyCredential_isUserVerifyingPlatformAuthenticatorAvailable = function () { -let r = cbb_wf.checkIllegal(this, "PublicKeyCredential"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PublicKeyCredential_isUserVerifyingPlatformAuthenticatorAvailable, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} this.PublicKeyCredential_get_rawId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PublicKeyCredential"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rawId"); + + let result = cbb_wf.getValue(this, 'rawId'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PublicKeyCredential_get_rawId, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PublicKeyCredential_get_rawId, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PublicKeyCredential_get_response = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PublicKeyCredential"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "response"); + + let result = cbb_wf.getValue(this, 'response'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PublicKeyCredential_get_response, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PublicKeyCredential_get_response, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PublicKeyCredential_get_authenticatorAttachment = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PublicKeyCredential"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "authenticatorAttachment"); + + let result = cbb_wf.getValue(this, 'authenticatorAttachment'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PublicKeyCredential_get_authenticatorAttachment, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PublicKeyCredential_get_authenticatorAttachment, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PublicKeyCredential_getClientExtensionResults = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PublicKeyCredential"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PublicKeyCredential_getClientExtensionResults, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PublicKeyCredential"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PublicKeyCredential_getClientExtensionResults, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.BatteryManager_get_charging = function () { + let r = cbb_wf.checkIllegal(this, "BatteryManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'charging'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BatteryManager_get_charging, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.BatteryManager_get_chargingTime = function () { + let r = cbb_wf.checkIllegal(this, "BatteryManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'chargingTime'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BatteryManager_get_chargingTime, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.BatteryManager_get_dischargingTime = function () { + let r = cbb_wf.checkIllegal(this, "BatteryManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'dischargingTime'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BatteryManager_get_dischargingTime, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.BatteryManager_get_level = function () { + let r = cbb_wf.checkIllegal(this, "BatteryManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'level'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BatteryManager_get_level, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.BatteryManager_get_onchargingchange = function () { + let r = cbb_wf.checkIllegal(this, "BatteryManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onchargingchange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BatteryManager_get_onchargingchange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.BatteryManager_set_onchargingchange = function (val) { + let r = cbb_wf.checkIllegal(this, "BatteryManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onchargingchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BatteryManager_set_onchargingchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.BatteryManager_get_onchargingtimechange = function () { + let r = cbb_wf.checkIllegal(this, "BatteryManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onchargingtimechange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BatteryManager_get_onchargingtimechange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.BatteryManager_set_onchargingtimechange = function (val) { + let r = cbb_wf.checkIllegal(this, "BatteryManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onchargingtimechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BatteryManager_set_onchargingtimechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.BatteryManager_get_ondischargingtimechange = function () { + let r = cbb_wf.checkIllegal(this, "BatteryManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ondischargingtimechange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BatteryManager_get_ondischargingtimechange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.BatteryManager_set_ondischargingtimechange = function (val) { + let r = cbb_wf.checkIllegal(this, "BatteryManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'ondischargingtimechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BatteryManager_set_ondischargingtimechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.BatteryManager_get_onlevelchange = function () { + let r = cbb_wf.checkIllegal(this, "BatteryManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onlevelchange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BatteryManager_get_onlevelchange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.BatteryManager_set_onlevelchange = function (val) { + let r = cbb_wf.checkIllegal(this, "BatteryManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onlevelchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BatteryManager_set_onlevelchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Bluetooth_getAvailability = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Bluetooth"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Bluetooth_getAvailability, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Bluetooth"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Bluetooth_getAvailability, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Bluetooth_requestDevice = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Bluetooth"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Bluetooth_requestDevice, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Bluetooth"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Bluetooth_requestDevice, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothCharacteristicProperties_get_broadcast = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothCharacteristicProperties"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "broadcast"); + + let result = cbb_wf.getValue(this, 'broadcast'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothCharacteristicProperties_get_broadcast, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothCharacteristicProperties_get_broadcast, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothCharacteristicProperties_get_read = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothCharacteristicProperties"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "read"); + + let result = cbb_wf.getValue(this, 'read'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothCharacteristicProperties_get_read, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothCharacteristicProperties_get_read, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothCharacteristicProperties_get_writeWithoutResponse = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothCharacteristicProperties"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "writeWithoutResponse"); + + let result = cbb_wf.getValue(this, 'writeWithoutResponse'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothCharacteristicProperties_get_writeWithoutResponse, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothCharacteristicProperties_get_writeWithoutResponse, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothCharacteristicProperties_get_write = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothCharacteristicProperties"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "write"); + + let result = cbb_wf.getValue(this, 'write'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothCharacteristicProperties_get_write, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothCharacteristicProperties_get_write, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothCharacteristicProperties_get_notify = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothCharacteristicProperties"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "notify"); + + let result = cbb_wf.getValue(this, 'notify'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothCharacteristicProperties_get_notify, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothCharacteristicProperties_get_notify, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothCharacteristicProperties_get_indicate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothCharacteristicProperties"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "indicate"); + + let result = cbb_wf.getValue(this, 'indicate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothCharacteristicProperties_get_indicate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothCharacteristicProperties_get_indicate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothCharacteristicProperties_get_authenticatedSignedWrites = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothCharacteristicProperties"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "authenticatedSignedWrites"); + + let result = cbb_wf.getValue(this, 'authenticatedSignedWrites'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothCharacteristicProperties_get_authenticatedSignedWrites, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothCharacteristicProperties_get_authenticatedSignedWrites, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothCharacteristicProperties_get_reliableWrite = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothCharacteristicProperties"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "reliableWrite"); + + let result = cbb_wf.getValue(this, 'reliableWrite'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothCharacteristicProperties_get_reliableWrite, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothCharacteristicProperties_get_reliableWrite, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothCharacteristicProperties_get_writableAuxiliaries = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothCharacteristicProperties"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "writableAuxiliaries"); + + let result = cbb_wf.getValue(this, 'writableAuxiliaries'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothCharacteristicProperties_get_writableAuxiliaries, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothCharacteristicProperties_get_writableAuxiliaries, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothDevice_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "id"); + + let result = cbb_wf.getValue(this, 'id'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothDevice_get_id, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothDevice_get_id, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothDevice_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothDevice_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothDevice_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothDevice_get_gatt = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "gatt"); + + let result = cbb_wf.getValue(this, 'gatt'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothDevice_get_gatt, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothDevice_get_gatt, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothDevice_get_ongattserverdisconnected = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ongattserverdisconnected"); + + let result = cbb_wf.getValue(this, 'ongattserverdisconnected'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothDevice_get_ongattserverdisconnected, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothDevice_get_ongattserverdisconnected, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothDevice_set_ongattserverdisconnected = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ongattserverdisconnected", val); - if (cbb_wf.is_log) { - console.log("[*] BluetoothDevice_set_ongattserverdisconnected, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "BluetoothDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ongattserverdisconnected', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothDevice_set_ongattserverdisconnected, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.BluetoothRemoteGATTCharacteristic_get_service = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "service"); + + let result = cbb_wf.getValue(this, 'service'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothRemoteGATTCharacteristic_get_service, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTCharacteristic_get_service, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothRemoteGATTCharacteristic_get_uuid = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "uuid"); + + let result = cbb_wf.getValue(this, 'uuid'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothRemoteGATTCharacteristic_get_uuid, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTCharacteristic_get_uuid, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothRemoteGATTCharacteristic_get_properties = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "properties"); + + let result = cbb_wf.getValue(this, 'properties'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothRemoteGATTCharacteristic_get_properties, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTCharacteristic_get_properties, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothRemoteGATTCharacteristic_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "value"); + + let result = cbb_wf.getValue(this, 'value'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothRemoteGATTCharacteristic_get_value, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTCharacteristic_get_value, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothRemoteGATTCharacteristic_get_oncharacteristicvaluechanged = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oncharacteristicvaluechanged"); + + let result = cbb_wf.getValue(this, 'oncharacteristicvaluechanged'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothRemoteGATTCharacteristic_get_oncharacteristicvaluechanged, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTCharacteristic_get_oncharacteristicvaluechanged, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothRemoteGATTCharacteristic_set_oncharacteristicvaluechanged = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncharacteristicvaluechanged", val); - if (cbb_wf.is_log) { - console.log("[*] BluetoothRemoteGATTCharacteristic_set_oncharacteristicvaluechanged, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'oncharacteristicvaluechanged', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTCharacteristic_set_oncharacteristicvaluechanged, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.BluetoothRemoteGATTCharacteristic_getDescriptor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTCharacteristic_getDescriptor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTCharacteristic_getDescriptor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTCharacteristic_getDescriptors = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTCharacteristic_getDescriptors, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTCharacteristic_getDescriptors, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTCharacteristic_readValue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTCharacteristic_readValue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTCharacteristic_readValue, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTCharacteristic_startNotifications = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTCharacteristic_startNotifications, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTCharacteristic_startNotifications, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTCharacteristic_stopNotifications = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTCharacteristic_stopNotifications, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTCharacteristic_stopNotifications, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTCharacteristic_writeValue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTCharacteristic_writeValue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTCharacteristic_writeValue, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTCharacteristic_writeValueWithResponse = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTCharacteristic_writeValueWithResponse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTCharacteristic_writeValueWithResponse, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTCharacteristic_writeValueWithoutResponse = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTCharacteristic_writeValueWithoutResponse, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTCharacteristic"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTCharacteristic_writeValueWithoutResponse, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTDescriptor_get_characteristic = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTDescriptor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "characteristic"); + + let result = cbb_wf.getValue(this, 'characteristic'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothRemoteGATTDescriptor_get_characteristic, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTDescriptor_get_characteristic, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothRemoteGATTDescriptor_get_uuid = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTDescriptor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "uuid"); + + let result = cbb_wf.getValue(this, 'uuid'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothRemoteGATTDescriptor_get_uuid, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTDescriptor_get_uuid, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothRemoteGATTDescriptor_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTDescriptor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "value"); + + let result = cbb_wf.getValue(this, 'value'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothRemoteGATTDescriptor_get_value, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTDescriptor_get_value, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothRemoteGATTDescriptor_readValue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTDescriptor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTDescriptor_readValue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTDescriptor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTDescriptor_readValue, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTDescriptor_writeValue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTDescriptor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTDescriptor_writeValue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTDescriptor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTDescriptor_writeValue, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTServer_get_device = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTServer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "device"); + + let result = cbb_wf.getValue(this, 'device'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothRemoteGATTServer_get_device, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTServer_get_device, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothRemoteGATTServer_get_connected = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTServer"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "connected"); + + let result = cbb_wf.getValue(this, 'connected'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothRemoteGATTServer_get_connected, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTServer_get_connected, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothRemoteGATTServer_connect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTServer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTServer_connect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTServer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTServer_connect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTServer_disconnect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTServer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTServer_disconnect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTServer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTServer_disconnect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTServer_getPrimaryService = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTServer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTServer_getPrimaryService, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTServer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTServer_getPrimaryService, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTServer_getPrimaryServices = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTServer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTServer_getPrimaryServices, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTServer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTServer_getPrimaryServices, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTService_get_device = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTService"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "device"); + + let result = cbb_wf.getValue(this, 'device'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothRemoteGATTService_get_device, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTService_get_device, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothRemoteGATTService_get_uuid = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTService"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "uuid"); + + let result = cbb_wf.getValue(this, 'uuid'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothRemoteGATTService_get_uuid, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTService_get_uuid, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothRemoteGATTService_get_isPrimary = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTService"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "isPrimary"); + + let result = cbb_wf.getValue(this, 'isPrimary'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothRemoteGATTService_get_isPrimary, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTService_get_isPrimary, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BluetoothRemoteGATTService_getCharacteristic = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTService"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTService_getCharacteristic, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTService"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTService_getCharacteristic, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BluetoothRemoteGATTService_getCharacteristics = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTService"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BluetoothRemoteGATTService_getCharacteristics, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CaptureController_setFocusBehavior = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CaptureController"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CaptureController_setFocusBehavior, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.CharacterBoundsUpdateEvent_get_rangeStart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CharacterBoundsUpdateEvent"); + let r = cbb_wf.checkIllegal(this, "BluetoothRemoteGATTService"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rangeStart"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterBoundsUpdateEvent_get_rangeStart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BluetoothRemoteGATTService_getCharacteristics, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.CharacterBoundsUpdateEvent_get_rangeEnd = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CharacterBoundsUpdateEvent"); +this.BrowserCaptureMediaStreamTrack_cropTo = function () { + let r = cbb_wf.checkIllegal(this, "BrowserCaptureMediaStreamTrack"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rangeEnd"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CharacterBoundsUpdateEvent_get_rangeEnd, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BrowserCaptureMediaStreamTrack_cropTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.EditContext_get_text = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "text"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EditContext_get_text, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EditContext_get_selectionStart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "selectionStart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EditContext_get_selectionStart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EditContext_get_selectionEnd = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "selectionEnd"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EditContext_get_selectionEnd, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EditContext_get_characterBoundsRangeStart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "characterBoundsRangeStart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EditContext_get_characterBoundsRangeStart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EditContext_get_ontextupdate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ontextupdate"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EditContext_get_ontextupdate, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EditContext_set_ontextupdate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ontextupdate", val); - if (cbb_wf.is_log) { - console.log("[*] EditContext_set_ontextupdate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.EditContext_get_ontextformatupdate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "ontextformatupdate"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EditContext_get_ontextformatupdate, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EditContext_set_ontextformatupdate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ontextformatupdate", val); - if (cbb_wf.is_log) { - console.log("[*] EditContext_set_ontextformatupdate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.EditContext_get_oncharacterboundsupdate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncharacterboundsupdate"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EditContext_get_oncharacterboundsupdate, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EditContext_set_oncharacterboundsupdate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncharacterboundsupdate", val); - if (cbb_wf.is_log) { - console.log("[*] EditContext_set_oncharacterboundsupdate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.EditContext_get_oncompositionstart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncompositionstart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EditContext_get_oncompositionstart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EditContext_set_oncompositionstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncompositionstart", val); - if (cbb_wf.is_log) { - console.log("[*] EditContext_set_oncompositionstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.EditContext_get_oncompositionend = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "oncompositionend"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] EditContext_get_oncompositionend, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.EditContext_set_oncompositionend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oncompositionend", val); - if (cbb_wf.is_log) { - console.log("[*] EditContext_set_oncompositionend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.EditContext_attachedElements = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EditContext_attachedElements, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.EditContext_characterBounds = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EditContext_characterBounds, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.EditContext_updateCharacterBounds = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EditContext_updateCharacterBounds, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.EditContext_updateControlBounds = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EditContext_updateControlBounds, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.EditContext_updateSelection = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EditContext_updateSelection, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.EditContext_updateSelectionBounds = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EditContext_updateSelectionBounds, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.EditContext_updateText = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EditContext"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EditContext_updateText, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TextFormat_get_rangeStart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextFormat"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "rangeStart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextFormat_get_rangeStart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TextFormat_get_rangeEnd = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextFormat"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "rangeEnd"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextFormat_get_rangeEnd, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TextFormat_get_underlineStyle = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextFormat"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "underlineStyle"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextFormat_get_underlineStyle, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TextFormat_get_underlineThickness = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextFormat"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "underlineThickness"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextFormat_get_underlineThickness, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TextFormatUpdateEvent_getTextFormats = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextFormatUpdateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] TextFormatUpdateEvent_getTextFormats, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.TextUpdateEvent_get_updateRangeStart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextUpdateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "updateRangeStart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextUpdateEvent_get_updateRangeStart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TextUpdateEvent_get_updateRangeEnd = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextUpdateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "updateRangeEnd"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextUpdateEvent_get_updateRangeEnd, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TextUpdateEvent_get_text = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextUpdateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "text"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextUpdateEvent_get_text, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TextUpdateEvent_get_selectionStart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextUpdateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "selectionStart"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextUpdateEvent_get_selectionStart, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.TextUpdateEvent_get_selectionEnd = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "TextUpdateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "selectionEnd"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] TextUpdateEvent_get_selectionEnd, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.CookieDeprecationLabel_getValue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CookieDeprecationLabel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] CookieDeprecationLabel_getValue, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.DocumentPictureInPicture_get_window = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentPictureInPicture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "window"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentPictureInPicture_get_window, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.DocumentPictureInPicture_get_onenter = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentPictureInPicture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onenter"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentPictureInPicture_get_onenter, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.DocumentPictureInPicture_set_onenter = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentPictureInPicture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onenter", val); - if (cbb_wf.is_log) { - console.log("[*] DocumentPictureInPicture_set_onenter, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.DocumentPictureInPicture_requestWindow = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentPictureInPicture"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] DocumentPictureInPicture_requestWindow, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.EyeDropper_open = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "EyeDropper"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] EyeDropper_open, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Fence_getNestedConfigs = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Fence"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Fence_getNestedConfigs, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Fence_reportEvent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Fence"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Fence_reportEvent, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Fence_setReportEventDataForAutomaticBeacons = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Fence"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Fence_setReportEventDataForAutomaticBeacons, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.FencedFrameConfig_get_width = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FencedFrameConfig"); + let r = cbb_wf.checkIllegal(this, "EyeDropper"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FencedFrameConfig_get_width, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "EyeDropper_open, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.FencedFrameConfig_get_height = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FencedFrameConfig"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "height"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FencedFrameConfig_get_height, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.FencedFrameConfig_setSharedStorageContext = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FencedFrameConfig"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FencedFrameConfig_setSharedStorageContext, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.HTMLFencedFrameElement_canLoadOpaqueURL = function () { -let r = cbb_wf.checkIllegal(this, "HTMLFencedFrameElement"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFencedFrameElement_canLoadOpaqueURL, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.HTMLFencedFrameElement_get_width = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFencedFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "width"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFencedFrameElement_get_width, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.HTMLFencedFrameElement_set_width = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFencedFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "width", val); - if (cbb_wf.is_log) { - console.log("[*] HTMLFencedFrameElement_set_width, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.HTMLFencedFrameElement_get_height = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFencedFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "height"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFencedFrameElement_get_height, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.HTMLFencedFrameElement_set_height = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFencedFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "height", val); - if (cbb_wf.is_log) { - console.log("[*] HTMLFencedFrameElement_set_height, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.HTMLFencedFrameElement_get_sandbox = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFencedFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "sandbox"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFencedFrameElement_get_sandbox, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.HTMLFencedFrameElement_set_sandbox = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFencedFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "sandbox", val); - if (cbb_wf.is_log) { - console.log("[*] HTMLFencedFrameElement_set_sandbox, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.HTMLFencedFrameElement_get_onfencedtreeclick = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFencedFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onfencedtreeclick"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFencedFrameElement_get_onfencedtreeclick, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.HTMLFencedFrameElement_set_onfencedtreeclick = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFencedFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onfencedtreeclick", val); - if (cbb_wf.is_log) { - console.log("[*] HTMLFencedFrameElement_set_onfencedtreeclick, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.HTMLFencedFrameElement_get_config = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFencedFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "config"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFencedFrameElement_get_config, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.HTMLFencedFrameElement_set_config = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFencedFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "config", val); - if (cbb_wf.is_log) { - console.log("[*] HTMLFencedFrameElement_set_config, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.HTMLFencedFrameElement_get_allow = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFencedFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "allow"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HTMLFencedFrameElement_get_allow, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.HTMLFencedFrameElement_set_allow = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HTMLFencedFrameElement"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "allow", val); - if (cbb_wf.is_log) { - console.log("[*] HTMLFencedFrameElement_set_allow, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.FileSystemDirectoryHandle_getDirectoryHandle = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemDirectoryHandle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemDirectoryHandle_getDirectoryHandle, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.FileSystemDirectoryHandle_getFileHandle = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemDirectoryHandle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemDirectoryHandle_getFileHandle, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.FileSystemDirectoryHandle_removeEntry = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemDirectoryHandle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemDirectoryHandle_removeEntry, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.FileSystemDirectoryHandle_resolve = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemDirectoryHandle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemDirectoryHandle_resolve, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.FileSystemDirectoryHandle_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemDirectoryHandle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemDirectoryHandle_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileSystemDirectoryHandle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemDirectoryHandle_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FileSystemDirectoryHandle_getDirectoryHandle = function () { + let r = cbb_wf.checkIllegal(this, "FileSystemDirectoryHandle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemDirectoryHandle_getDirectoryHandle, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FileSystemDirectoryHandle_getFileHandle = function () { + let r = cbb_wf.checkIllegal(this, "FileSystemDirectoryHandle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemDirectoryHandle_getFileHandle, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FileSystemDirectoryHandle_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemDirectoryHandle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemDirectoryHandle_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileSystemDirectoryHandle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemDirectoryHandle_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FileSystemDirectoryHandle_removeEntry = function () { + let r = cbb_wf.checkIllegal(this, "FileSystemDirectoryHandle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemDirectoryHandle_removeEntry, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FileSystemDirectoryHandle_resolve = function () { + let r = cbb_wf.checkIllegal(this, "FileSystemDirectoryHandle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemDirectoryHandle_resolve, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FileSystemDirectoryHandle_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemDirectoryHandle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemDirectoryHandle_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileSystemDirectoryHandle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemDirectoryHandle_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FileSystemFileHandle_createWritable = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemFileHandle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemFileHandle_createWritable, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileSystemFileHandle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemFileHandle_createWritable, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FileSystemFileHandle_getFile = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemFileHandle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemFileHandle_getFile, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileSystemFileHandle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemFileHandle_getFile, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FileSystemFileHandle_move = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemFileHandle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemFileHandle_move, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileSystemFileHandle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemFileHandle_move, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FileSystemHandle_get_kind = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FileSystemHandle"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "kind"); + + let result = cbb_wf.getValue(this, 'kind'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FileSystemHandle_get_kind, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemHandle_get_kind, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FileSystemHandle_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FileSystemHandle"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FileSystemHandle_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemHandle_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FileSystemHandle_isSameEntry = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemHandle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemHandle_isSameEntry, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileSystemHandle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemHandle_isSameEntry, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FileSystemHandle_queryPermission = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemHandle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemHandle_queryPermission, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileSystemHandle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.FileSystemHandle_remove = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemHandle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemHandle_remove, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemHandle_queryPermission, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } + return result; +} this.FileSystemHandle_requestPermission = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemHandle"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemHandle_requestPermission, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FileSystemHandle"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemHandle_requestPermission, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.FileSystemWritableFileStream_seek = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemWritableFileStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemWritableFileStream_seek, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.FileSystemWritableFileStream_truncate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemWritableFileStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemWritableFileStream_truncate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.FileSystemWritableFileStream_write = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FileSystemWritableFileStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FileSystemWritableFileStream_write, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.FileSystemWritableFileStream_get_mode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FileSystemWritableFileStream"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "mode"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FileSystemWritableFileStream_get_mode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemWritableFileStream_seek, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FileSystemWritableFileStream_truncate = function () { + let r = cbb_wf.checkIllegal(this, "FileSystemWritableFileStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemWritableFileStream_truncate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FileSystemWritableFileStream_write = function () { + let r = cbb_wf.checkIllegal(this, "FileSystemWritableFileStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FileSystemWritableFileStream_write, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - this.FontData_get_postscriptName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontData"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "postscriptName"); + + let result = cbb_wf.getValue(this, 'postscriptName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontData_get_postscriptName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontData_get_postscriptName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontData_get_fullName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontData"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "fullName"); + + let result = cbb_wf.getValue(this, 'fullName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontData_get_fullName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontData_get_fullName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontData_get_family = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontData"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "family"); + + let result = cbb_wf.getValue(this, 'family'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontData_get_family, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontData_get_family, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontData_get_style = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "FontData"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "style"); + + let result = cbb_wf.getValue(this, 'style'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] FontData_get_style, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontData_get_style, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.FontData_blob = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "FontData"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] FontData_blob, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "FontData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "FontData_blob, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.HID_get_onconnect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HID"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onconnect"); + + let result = cbb_wf.getValue(this, 'onconnect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HID_get_onconnect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HID_get_onconnect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.HID_set_onconnect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HID"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onconnect", val); - if (cbb_wf.is_log) { - console.log("[*] HID_set_onconnect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.HID_get_ondisconnect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HID"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ondisconnect"); + cbb_wf.setValue(this, 'onconnect', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HID_get_ondisconnect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HID_set_onconnect, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.HID_get_ondisconnect = function () { + let r = cbb_wf.checkIllegal(this, "HID"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ondisconnect'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HID_get_ondisconnect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.HID_set_ondisconnect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HID"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondisconnect", val); - if (cbb_wf.is_log) { - console.log("[*] HID_set_ondisconnect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "HID"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ondisconnect', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HID_set_ondisconnect, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.HID_getDevices = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HID"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HID_getDevices, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "HID"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HID_getDevices, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.HID_requestDevice = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HID"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HID_requestDevice, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "HID"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HID_requestDevice, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.HIDConnectionEvent_get_device = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HIDConnectionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "device"); + + let result = cbb_wf.getValue(this, 'device'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HIDConnectionEvent_get_device, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDConnectionEvent_get_device, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.HIDDevice_get_oninputreport = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HIDDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oninputreport"); + + let result = cbb_wf.getValue(this, 'oninputreport'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HIDDevice_get_oninputreport, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDDevice_get_oninputreport, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.HIDDevice_set_oninputreport = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HIDDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oninputreport", val); - if (cbb_wf.is_log) { - console.log("[*] HIDDevice_set_oninputreport, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "HIDDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'oninputreport', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDDevice_set_oninputreport, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.HIDDevice_get_opened = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HIDDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "opened"); + + let result = cbb_wf.getValue(this, 'opened'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HIDDevice_get_opened, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDDevice_get_opened, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.HIDDevice_get_vendorId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HIDDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "vendorId"); + + let result = cbb_wf.getValue(this, 'vendorId'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HIDDevice_get_vendorId, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDDevice_get_vendorId, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.HIDDevice_get_productId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HIDDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "productId"); + + let result = cbb_wf.getValue(this, 'productId'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HIDDevice_get_productId, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDDevice_get_productId, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.HIDDevice_get_productName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HIDDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "productName"); + + let result = cbb_wf.getValue(this, 'productName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HIDDevice_get_productName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDDevice_get_productName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.HIDDevice_get_collections = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HIDDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "collections"); + + let result = cbb_wf.getValue(this, 'collections'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HIDDevice_get_collections, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDDevice_get_collections, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.HIDDevice_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HIDDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HIDDevice_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "HIDDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.HIDDevice_forget = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HIDDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HIDDevice_forget, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDDevice_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } + return result; +} this.HIDDevice_open = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HIDDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HIDDevice_open, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "HIDDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDDevice_open, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.HIDDevice_receiveFeatureReport = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HIDDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HIDDevice_receiveFeatureReport, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "HIDDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDDevice_receiveFeatureReport, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.HIDDevice_sendFeatureReport = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HIDDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HIDDevice_sendFeatureReport, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "HIDDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDDevice_sendFeatureReport, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.HIDDevice_sendReport = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "HIDDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] HIDDevice_sendReport, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "HIDDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDDevice_sendReport, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.HIDDevice_forget = function () { + let r = cbb_wf.checkIllegal(this, "HIDDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDDevice_forget, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.HIDInputReportEvent_get_device = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HIDInputReportEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "device"); + + let result = cbb_wf.getValue(this, 'device'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HIDInputReportEvent_get_device, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDInputReportEvent_get_device, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.HIDInputReportEvent_get_reportId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HIDInputReportEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "reportId"); + + let result = cbb_wf.getValue(this, 'reportId'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HIDInputReportEvent_get_reportId, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDInputReportEvent_get_reportId, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.HIDInputReportEvent_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "HIDInputReportEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "data"); + + let result = cbb_wf.getValue(this, 'data'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] HIDInputReportEvent_get_data, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "HIDInputReportEvent_get_data, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.IdentityCredential_disconnect = function () { -let r = cbb_wf.checkIllegal(this, "IdentityCredential"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IdentityCredential_disconnect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.IdentityCredential_get_token = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IdentityCredential"); +this.IdleDetector_get_userState = function () { + let r = cbb_wf.checkIllegal(this, "IdleDetector"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "token"); + + let result = cbb_wf.getValue(this, 'userState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IdentityCredential_get_token, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IdleDetector_get_userState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.IdentityCredential_get_isAutoSelected = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IdentityCredential"); +this.IdleDetector_get_screenState = function () { + let r = cbb_wf.checkIllegal(this, "IdleDetector"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "isAutoSelected"); + + let result = cbb_wf.getValue(this, 'screenState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IdentityCredential_get_isAutoSelected, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IdleDetector_get_screenState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.IdentityProvider_getUserInfo = function () { -let r = cbb_wf.checkIllegal(this, "IdentityProvider"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IdentityProvider_getUserInfo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.IdentityProvider_close = function () { -let r = cbb_wf.checkIllegal(this, "IdentityProvider"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IdentityProvider_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.IdentityCredentialError_get_code = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IdentityCredentialError"); +this.IdleDetector_get_onchange = function () { + let r = cbb_wf.checkIllegal(this, "IdleDetector"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "code"); + + let result = cbb_wf.getValue(this, 'onchange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IdentityCredentialError_get_code, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IdleDetector_get_onchange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.IdentityCredentialError_get_url = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "IdentityCredentialError"); +this.IdleDetector_set_onchange = function (val) { + let r = cbb_wf.checkIllegal(this, "IdleDetector"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "url"); + cbb_wf.setValue(this, 'onchange', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] IdentityCredentialError_get_url, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IdleDetector_set_onchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.IdleDetector_start = function () { + let r = cbb_wf.checkIllegal(this, "IdleDetector"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "IdleDetector_start, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - this.LaunchParams_get_files = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "LaunchParams"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "files"); + + let result = cbb_wf.getValue(this, 'files'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LaunchParams_get_files, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LaunchParams_get_files, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.LaunchParams_get_targetURL = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "LaunchParams"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "targetURL"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] LaunchParams_get_targetURL, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.LaunchQueue_setConsumer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "LaunchQueue"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] LaunchQueue_setConsumer, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.MutationEvent_get_relatedNode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MutationEvent"); + let r = cbb_wf.checkIllegal(this, "LaunchQueue"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "relatedNode"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MutationEvent_get_relatedNode, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "LaunchQueue_setConsumer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.MutationEvent_get_prevValue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MutationEvent"); +this.MediaStreamTrackGenerator_get_writable = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackGenerator"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "prevValue"); + + let result = cbb_wf.getValue(this, 'writable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MutationEvent_get_prevValue, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrackGenerator_get_writable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.MutationEvent_get_newValue = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MutationEvent"); +this.MediaStreamTrackProcessor_get_readable = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackProcessor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "newValue"); + + let result = cbb_wf.getValue(this, 'readable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MutationEvent_get_newValue, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrackProcessor_get_readable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.MutationEvent_get_attrName = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MutationEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "attrName"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MutationEvent_get_attrName, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MutationEvent_get_attrChange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MutationEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "attrChange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MutationEvent_get_attrChange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.MutationEvent_initMutationEvent = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MutationEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MutationEvent_initMutationEvent, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.NavigatorLogin_setStatus = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigatorLogin"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NavigatorLogin_setStatus, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.NotRestoredReasonDetails_get_reason = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NotRestoredReasonDetails"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "reason"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NotRestoredReasonDetails_get_reason, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NotRestoredReasonDetails_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NotRestoredReasonDetails"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NotRestoredReasonDetails_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.NotRestoredReasons_get_src = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NotRestoredReasons"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "src"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NotRestoredReasons_get_src, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NotRestoredReasons_get_id = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NotRestoredReasons"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "id"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NotRestoredReasons_get_id, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NotRestoredReasons_get_name = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NotRestoredReasons"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "name"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NotRestoredReasons_get_name, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NotRestoredReasons_get_url = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NotRestoredReasons"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "url"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NotRestoredReasons_get_url, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NotRestoredReasons_get_reasons = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NotRestoredReasons"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "reasons"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NotRestoredReasons_get_reasons, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NotRestoredReasons_get_children = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NotRestoredReasons"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "children"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NotRestoredReasons_get_children, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.NotRestoredReasons_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NotRestoredReasons"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] NotRestoredReasons_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.OTPCredential_get_code = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "OTPCredential"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "code"); + + let result = cbb_wf.getValue(this, 'code'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] OTPCredential_get_code, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "OTPCredential_get_code, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentAddress_get_city = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentAddress"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "city"); + + let result = cbb_wf.getValue(this, 'city'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentAddress_get_city, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentAddress_get_city, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentAddress_get_country = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentAddress"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "country"); + + let result = cbb_wf.getValue(this, 'country'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentAddress_get_country, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentAddress_get_country, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentAddress_get_dependentLocality = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentAddress"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "dependentLocality"); + + let result = cbb_wf.getValue(this, 'dependentLocality'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentAddress_get_dependentLocality, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentAddress_get_dependentLocality, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentAddress_get_organization = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentAddress"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "organization"); + + let result = cbb_wf.getValue(this, 'organization'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentAddress_get_organization, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentAddress_get_organization, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentAddress_get_phone = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentAddress"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "phone"); + + let result = cbb_wf.getValue(this, 'phone'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentAddress_get_phone, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentAddress_get_phone, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentAddress_get_postalCode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentAddress"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "postalCode"); + + let result = cbb_wf.getValue(this, 'postalCode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentAddress_get_postalCode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentAddress_get_postalCode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentAddress_get_recipient = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentAddress"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "recipient"); + + let result = cbb_wf.getValue(this, 'recipient'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentAddress_get_recipient, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentAddress_get_recipient, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentAddress_get_region = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentAddress"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "region"); + + let result = cbb_wf.getValue(this, 'region'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentAddress_get_region, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentAddress_get_region, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentAddress_get_sortingCode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentAddress"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "sortingCode"); + + let result = cbb_wf.getValue(this, 'sortingCode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentAddress_get_sortingCode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentAddress_get_sortingCode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentAddress_get_addressLine = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentAddress"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "addressLine"); + + let result = cbb_wf.getValue(this, 'addressLine'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentAddress_get_addressLine, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentAddress_get_addressLine, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentAddress_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentAddress"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PaymentAddress_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PaymentAddress"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentAddress_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PaymentRequest_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "id"); + + let result = cbb_wf.getValue(this, 'id'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentRequest_get_id, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequest_get_id, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentRequest_get_shippingAddress = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shippingAddress"); + + let result = cbb_wf.getValue(this, 'shippingAddress'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentRequest_get_shippingAddress, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequest_get_shippingAddress, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentRequest_get_shippingOption = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shippingOption"); + + let result = cbb_wf.getValue(this, 'shippingOption'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentRequest_get_shippingOption, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequest_get_shippingOption, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentRequest_get_shippingType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shippingType"); + + let result = cbb_wf.getValue(this, 'shippingType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentRequest_get_shippingType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequest_get_shippingType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentRequest_get_onshippingaddresschange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onshippingaddresschange"); + + let result = cbb_wf.getValue(this, 'onshippingaddresschange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentRequest_get_onshippingaddresschange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequest_get_onshippingaddresschange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentRequest_set_onshippingaddresschange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onshippingaddresschange", val); - if (cbb_wf.is_log) { - console.log("[*] PaymentRequest_set_onshippingaddresschange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PaymentRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onshippingaddresschange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequest_set_onshippingaddresschange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PaymentRequest_get_onshippingoptionchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onshippingoptionchange"); + + let result = cbb_wf.getValue(this, 'onshippingoptionchange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentRequest_get_onshippingoptionchange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequest_get_onshippingoptionchange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentRequest_set_onshippingoptionchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onshippingoptionchange", val); - if (cbb_wf.is_log) { - console.log("[*] PaymentRequest_set_onshippingoptionchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.PaymentRequest_abort = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PaymentRequest_abort, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.PaymentRequest_canMakePayment = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PaymentRequest_canMakePayment, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.PaymentRequest_hasEnrolledInstrument = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PaymentRequest_hasEnrolledInstrument, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.PaymentRequest_show = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PaymentRequest_show, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.PaymentRequest_get_onpaymentmethodchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onpaymentmethodchange"); + cbb_wf.setValue(this, 'onshippingoptionchange', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentRequest_get_onpaymentmethodchange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequest_set_onshippingoptionchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.PaymentRequest_abort = function () { + let r = cbb_wf.checkIllegal(this, "PaymentRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequest_abort, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.PaymentRequest_canMakePayment = function () { + let r = cbb_wf.checkIllegal(this, "PaymentRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequest_canMakePayment, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.PaymentRequest_hasEnrolledInstrument = function () { + let r = cbb_wf.checkIllegal(this, "PaymentRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequest_hasEnrolledInstrument, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.PaymentRequest_show = function () { + let r = cbb_wf.checkIllegal(this, "PaymentRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequest_show, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.PaymentRequest_get_onpaymentmethodchange = function () { + let r = cbb_wf.checkIllegal(this, "PaymentRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'onpaymentmethodchange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequest_get_onpaymentmethodchange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.PaymentRequest_set_onpaymentmethodchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpaymentmethodchange", val); - if (cbb_wf.is_log) { - console.log("[*] PaymentRequest_set_onpaymentmethodchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PaymentRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.PaymentRequestUpdateEvent_updateWith = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentRequestUpdateEvent"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PaymentRequestUpdateEvent_updateWith, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + cbb_wf.setValue(this, 'onpaymentmethodchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequest_set_onpaymentmethodchange, this =>", toString.call(this), ", val => ", '' + val, info); } +} this.PaymentResponse_get_requestId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentResponse"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "requestId"); + + let result = cbb_wf.getValue(this, 'requestId'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentResponse_get_requestId, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentResponse_get_requestId, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentResponse_get_methodName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentResponse"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "methodName"); + + let result = cbb_wf.getValue(this, 'methodName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentResponse_get_methodName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentResponse_get_methodName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentResponse_get_details = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentResponse"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "details"); + + let result = cbb_wf.getValue(this, 'details'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentResponse_get_details, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentResponse_get_details, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentResponse_get_shippingAddress = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentResponse"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shippingAddress"); + + let result = cbb_wf.getValue(this, 'shippingAddress'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentResponse_get_shippingAddress, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentResponse_get_shippingAddress, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentResponse_get_shippingOption = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentResponse"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "shippingOption"); + + let result = cbb_wf.getValue(this, 'shippingOption'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentResponse_get_shippingOption, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentResponse_get_shippingOption, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentResponse_get_payerName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentResponse"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "payerName"); + + let result = cbb_wf.getValue(this, 'payerName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentResponse_get_payerName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentResponse_get_payerName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentResponse_get_payerEmail = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentResponse"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "payerEmail"); + + let result = cbb_wf.getValue(this, 'payerEmail'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentResponse_get_payerEmail, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentResponse_get_payerEmail, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentResponse_get_payerPhone = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentResponse"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "payerPhone"); + + let result = cbb_wf.getValue(this, 'payerPhone'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentResponse_get_payerPhone, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentResponse_get_payerPhone, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.PaymentResponse_get_onpayerdetailchange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentResponse"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onpayerdetailchange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentResponse_get_onpayerdetailchange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.PaymentResponse_set_onpayerdetailchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentResponse"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpayerdetailchange", val); - if (cbb_wf.is_log) { - console.log("[*] PaymentResponse_set_onpayerdetailchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } this.PaymentResponse_complete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentResponse"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PaymentResponse_complete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PaymentResponse"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.PaymentResponse_retry = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentResponse"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PaymentResponse_retry, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentResponse_complete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } + return result; +} this.PaymentResponse_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentResponse"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PaymentResponse_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.PaymentManager_get_userHint = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentManager"); + let r = cbb_wf.checkIllegal(this, "PaymentResponse"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "userHint"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentManager_get_userHint, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentResponse_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.PaymentResponse_get_onpayerdetailchange = function () { + let r = cbb_wf.checkIllegal(this, "PaymentResponse"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } -this.PaymentManager_set_userHint = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "userHint", val); - if (cbb_wf.is_log) { - console.log("[*] PaymentManager_set_userHint, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let result = cbb_wf.getValue(this, 'onpayerdetailchange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentResponse_get_onpayerdetailchange, this =>", toString.call(this), ", result => ", '' + result, info); } -this.PaymentManager_enableDelegations = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PaymentManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PaymentManager_enableDelegations, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + return result; +} +this.PaymentResponse_set_onpayerdetailchange = function (val) { + let r = cbb_wf.checkIllegal(this, "PaymentResponse"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onpayerdetailchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentResponse_set_onpayerdetailchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.PaymentResponse_retry = function () { + let r = cbb_wf.checkIllegal(this, "PaymentResponse"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentResponse_retry, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PaymentMethodChangeEvent_get_methodName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentMethodChangeEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "methodName"); + + let result = cbb_wf.getValue(this, 'methodName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentMethodChangeEvent_get_methodName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentMethodChangeEvent_get_methodName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PaymentMethodChangeEvent_get_methodDetails = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PaymentMethodChangeEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "methodDetails"); + + let result = cbb_wf.getValue(this, 'methodDetails'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PaymentMethodChangeEvent_get_methodDetails, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentMethodChangeEvent_get_methodDetails, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Presentation_get_defaultRequest = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Presentation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "defaultRequest"); + + let result = cbb_wf.getValue(this, 'defaultRequest'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Presentation_get_defaultRequest, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Presentation_get_defaultRequest, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Presentation_set_defaultRequest = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Presentation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "defaultRequest", val); - if (cbb_wf.is_log) { - console.log("[*] Presentation_set_defaultRequest, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Presentation_get_receiver = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Presentation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "receiver"); + cbb_wf.setValue(this, 'defaultRequest', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Presentation_get_receiver, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Presentation_set_defaultRequest, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.Presentation_get_receiver = function () { + let r = cbb_wf.checkIllegal(this, "Presentation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'receiver'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Presentation_get_receiver, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationAvailability_get_value = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationAvailability"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "value"); + + let result = cbb_wf.getValue(this, 'value'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationAvailability_get_value, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationAvailability_get_value, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationAvailability_get_onchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationAvailability"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onchange"); + + let result = cbb_wf.getValue(this, 'onchange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationAvailability_get_onchange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationAvailability_get_onchange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationAvailability_set_onchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PresentationAvailability"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onchange", val); - if (cbb_wf.is_log) { - console.log("[*] PresentationAvailability_set_onchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PresentationAvailability"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationAvailability_set_onchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PresentationConnection_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "id"); + + let result = cbb_wf.getValue(this, 'id'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationConnection_get_id, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_get_id, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationConnection_get_url = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "url"); + + let result = cbb_wf.getValue(this, 'url'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationConnection_get_url, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_get_url, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationConnection_get_state = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "state"); + + let result = cbb_wf.getValue(this, 'state'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationConnection_get_state, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_get_state, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationConnection_get_onconnect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onconnect"); + + let result = cbb_wf.getValue(this, 'onconnect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationConnection_get_onconnect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_get_onconnect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationConnection_set_onconnect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PresentationConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onconnect", val); - if (cbb_wf.is_log) { - console.log("[*] PresentationConnection_set_onconnect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PresentationConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onconnect', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_set_onconnect, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PresentationConnection_get_onclose = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onclose"); + + let result = cbb_wf.getValue(this, 'onclose'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationConnection_get_onclose, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_get_onclose, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationConnection_set_onclose = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PresentationConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onclose", val); - if (cbb_wf.is_log) { - console.log("[*] PresentationConnection_set_onclose, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PresentationConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onclose', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_set_onclose, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PresentationConnection_get_onterminate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onterminate"); + + let result = cbb_wf.getValue(this, 'onterminate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationConnection_get_onterminate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_get_onterminate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationConnection_set_onterminate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PresentationConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onterminate", val); - if (cbb_wf.is_log) { - console.log("[*] PresentationConnection_set_onterminate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PresentationConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onterminate', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_set_onterminate, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PresentationConnection_get_binaryType = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "binaryType"); + + let result = cbb_wf.getValue(this, 'binaryType'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationConnection_get_binaryType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_get_binaryType, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationConnection_set_binaryType = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PresentationConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "binaryType", val); - if (cbb_wf.is_log) { - console.log("[*] PresentationConnection_set_binaryType, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.PresentationConnection_get_onmessage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationConnection"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmessage"); + cbb_wf.setValue(this, 'binaryType', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationConnection_get_onmessage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_set_binaryType, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.PresentationConnection_get_onmessage = function () { + let r = cbb_wf.checkIllegal(this, "PresentationConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onmessage'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_get_onmessage, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationConnection_set_onmessage = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PresentationConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmessage", val); - if (cbb_wf.is_log) { - console.log("[*] PresentationConnection_set_onmessage, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PresentationConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onmessage', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_set_onmessage, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PresentationConnection_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PresentationConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PresentationConnection_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PresentationConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PresentationConnection_send = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PresentationConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PresentationConnection_send, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PresentationConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_send, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PresentationConnection_terminate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PresentationConnection"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PresentationConnection_terminate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PresentationConnection"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnection_terminate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PresentationConnectionAvailableEvent_get_connection = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationConnectionAvailableEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "connection"); + + let result = cbb_wf.getValue(this, 'connection'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationConnectionAvailableEvent_get_connection, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnectionAvailableEvent_get_connection, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationConnectionCloseEvent_get_reason = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationConnectionCloseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "reason"); + + let result = cbb_wf.getValue(this, 'reason'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationConnectionCloseEvent_get_reason, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnectionCloseEvent_get_reason, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationConnectionCloseEvent_get_message = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationConnectionCloseEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "message"); + + let result = cbb_wf.getValue(this, 'message'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationConnectionCloseEvent_get_message, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnectionCloseEvent_get_message, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationConnectionList_get_connections = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationConnectionList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "connections"); + + let result = cbb_wf.getValue(this, 'connections'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationConnectionList_get_connections, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnectionList_get_connections, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationConnectionList_get_onconnectionavailable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationConnectionList"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onconnectionavailable"); + + let result = cbb_wf.getValue(this, 'onconnectionavailable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationConnectionList_get_onconnectionavailable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnectionList_get_onconnectionavailable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationConnectionList_set_onconnectionavailable = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PresentationConnectionList"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onconnectionavailable", val); - if (cbb_wf.is_log) { - console.log("[*] PresentationConnectionList_set_onconnectionavailable, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PresentationConnectionList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onconnectionavailable', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationConnectionList_set_onconnectionavailable, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PresentationReceiver_get_connectionList = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationReceiver"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "connectionList"); + + let result = cbb_wf.getValue(this, 'connectionList'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationReceiver_get_connectionList, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationReceiver_get_connectionList, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationRequest_get_onconnectionavailable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PresentationRequest"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onconnectionavailable"); + + let result = cbb_wf.getValue(this, 'onconnectionavailable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PresentationRequest_get_onconnectionavailable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationRequest_get_onconnectionavailable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PresentationRequest_set_onconnectionavailable = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PresentationRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onconnectionavailable", val); - if (cbb_wf.is_log) { - console.log("[*] PresentationRequest_set_onconnectionavailable, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PresentationRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onconnectionavailable', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationRequest_set_onconnectionavailable, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PresentationRequest_getAvailability = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PresentationRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PresentationRequest_getAvailability, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PresentationRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationRequest_getAvailability, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PresentationRequest_reconnect = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PresentationRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PresentationRequest_reconnect, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PresentationRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationRequest_reconnect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PresentationRequest_start = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PresentationRequest"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PresentationRequest_start, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PresentationRequest"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PresentationRequest_start, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Profiler_get_sampleInterval = function () { + let r = cbb_wf.checkIllegal(this, "Profiler"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'sampleInterval'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Profiler_get_sampleInterval, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Profiler_get_stopped = function () { + let r = cbb_wf.checkIllegal(this, "Profiler"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'stopped'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Profiler_get_stopped, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Profiler_stop = function () { + let r = cbb_wf.checkIllegal(this, "Profiler"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Profiler_stop, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ScreenDetailed_get_left = function () { + let r = cbb_wf.checkIllegal(this, "ScreenDetailed"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'left'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenDetailed_get_left, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ScreenDetailed_get_top = function () { + let r = cbb_wf.checkIllegal(this, "ScreenDetailed"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'top'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenDetailed_get_top, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ScreenDetailed_get_isPrimary = function () { + let r = cbb_wf.checkIllegal(this, "ScreenDetailed"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'isPrimary'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenDetailed_get_isPrimary, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ScreenDetailed_get_isInternal = function () { + let r = cbb_wf.checkIllegal(this, "ScreenDetailed"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'isInternal'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenDetailed_get_isInternal, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ScreenDetailed_get_devicePixelRatio = function () { + let r = cbb_wf.checkIllegal(this, "ScreenDetailed"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'devicePixelRatio'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenDetailed_get_devicePixelRatio, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ScreenDetailed_get_label = function () { + let r = cbb_wf.checkIllegal(this, "ScreenDetailed"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'label'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenDetailed_get_label, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ScreenDetails_get_screens = function () { + let r = cbb_wf.checkIllegal(this, "ScreenDetails"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'screens'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenDetails_get_screens, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ScreenDetails_get_currentScreen = function () { + let r = cbb_wf.checkIllegal(this, "ScreenDetails"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'currentScreen'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenDetails_get_currentScreen, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ScreenDetails_get_onscreenschange = function () { + let r = cbb_wf.checkIllegal(this, "ScreenDetails"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onscreenschange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenDetails_get_onscreenschange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ScreenDetails_set_onscreenschange = function (val) { + let r = cbb_wf.checkIllegal(this, "ScreenDetails"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onscreenschange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenDetails_set_onscreenschange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.ScreenDetails_get_oncurrentscreenchange = function () { + let r = cbb_wf.checkIllegal(this, "ScreenDetails"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'oncurrentscreenchange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenDetails_get_oncurrentscreenchange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ScreenDetails_set_oncurrentscreenchange = function (val) { + let r = cbb_wf.checkIllegal(this, "ScreenDetails"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'oncurrentscreenchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "ScreenDetails_set_oncurrentscreenchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Serial_get_onconnect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Serial"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onconnect"); + + let result = cbb_wf.getValue(this, 'onconnect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Serial_get_onconnect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Serial_get_onconnect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Serial_set_onconnect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Serial"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onconnect", val); - if (cbb_wf.is_log) { - console.log("[*] Serial_set_onconnect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.Serial_get_ondisconnect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Serial"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ondisconnect"); + cbb_wf.setValue(this, 'onconnect', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Serial_get_ondisconnect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Serial_set_onconnect, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.Serial_get_ondisconnect = function () { + let r = cbb_wf.checkIllegal(this, "Serial"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ondisconnect'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Serial_get_ondisconnect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Serial_set_ondisconnect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Serial"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondisconnect", val); - if (cbb_wf.is_log) { - console.log("[*] Serial_set_ondisconnect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "Serial"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ondisconnect', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Serial_set_ondisconnect, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Serial_getPorts = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Serial"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Serial_getPorts, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Serial"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Serial_getPorts, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.Serial_requestPort = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Serial"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Serial_requestPort, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Serial"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Serial_requestPort, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SerialPort_get_onconnect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SerialPort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onconnect"); + + let result = cbb_wf.getValue(this, 'onconnect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SerialPort_get_onconnect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SerialPort_get_onconnect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SerialPort_set_onconnect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SerialPort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onconnect", val); - if (cbb_wf.is_log) { - console.log("[*] SerialPort_set_onconnect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SerialPort"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onconnect', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SerialPort_set_onconnect, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SerialPort_get_ondisconnect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SerialPort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ondisconnect"); + + let result = cbb_wf.getValue(this, 'ondisconnect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SerialPort_get_ondisconnect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SerialPort_get_ondisconnect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SerialPort_set_ondisconnect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SerialPort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondisconnect", val); - if (cbb_wf.is_log) { - console.log("[*] SerialPort_set_ondisconnect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SerialPort"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ondisconnect', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SerialPort_set_ondisconnect, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SerialPort_get_readable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SerialPort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "readable"); + + let result = cbb_wf.getValue(this, 'readable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SerialPort_get_readable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SerialPort_get_readable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SerialPort_get_writable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SerialPort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "writable"); + + let result = cbb_wf.getValue(this, 'writable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SerialPort_get_writable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SerialPort_get_writable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SerialPort_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SerialPort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SerialPort_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SerialPort"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.SerialPort_forget = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SerialPort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SerialPort_forget, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SerialPort_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } + return result; +} this.SerialPort_getInfo = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SerialPort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SerialPort_getInfo, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SerialPort"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SerialPort_getInfo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SerialPort_getSignals = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SerialPort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SerialPort_getSignals, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SerialPort"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SerialPort_getSignals, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SerialPort_open = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SerialPort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SerialPort_open, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "SerialPort"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SerialPort_open, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.SerialPort_setSignals = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SerialPort"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SerialPort_setSignals, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SharedStorage_append = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SharedStorage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SharedStorage_append, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SharedStorage_clear = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SharedStorage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SharedStorage_clear, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SharedStorage_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SharedStorage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SharedStorage_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SharedStorage_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SharedStorage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SharedStorage_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SharedStorage_set = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SharedStorage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SharedStorage_set, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SharedStorage_get_worklet = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SharedStorage"); + let r = cbb_wf.checkIllegal(this, "SerialPort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "worklet"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SharedStorage_get_worklet, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SerialPort_setSignals, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.SharedStorage_run = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SharedStorage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SharedStorage_run, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SharedStorage_selectURL = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SharedStorage"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SharedStorage_selectURL, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SharedStorageWorklet_addModule = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SharedStorageWorklet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SharedStorageWorklet_addModule, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.StorageBucket_get_name = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageBucket"); +this.SerialPort_forget = function () { + let r = cbb_wf.checkIllegal(this, "SerialPort"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StorageBucket_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SerialPort_forget, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.StorageBucket_get_indexedDB = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageBucket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "indexedDB"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StorageBucket_get_indexedDB, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.StorageBucket_get_caches = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageBucket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "caches"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] StorageBucket_get_caches, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.StorageBucket_estimate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageBucket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StorageBucket_estimate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.StorageBucket_expires = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageBucket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StorageBucket_expires, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.StorageBucket_getDirectory = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageBucket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StorageBucket_getDirectory, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.StorageBucket_persisted = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageBucket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StorageBucket_persisted, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.StorageBucket_setExpires = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageBucket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StorageBucket_setExpires, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.StorageBucket_persist = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageBucket"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StorageBucket_persist, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.StorageBucketManager_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageBucketManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StorageBucketManager_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.StorageBucketManager_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageBucketManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StorageBucketManager_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.StorageBucketManager_open = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "StorageBucketManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] StorageBucketManager_open, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.USB_get_onconnect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USB"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onconnect"); + + let result = cbb_wf.getValue(this, 'onconnect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USB_get_onconnect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USB_get_onconnect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USB_set_onconnect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USB"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onconnect", val); - if (cbb_wf.is_log) { - console.log("[*] USB_set_onconnect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.USB_get_ondisconnect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USB"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ondisconnect"); + cbb_wf.setValue(this, 'onconnect', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USB_get_ondisconnect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USB_set_onconnect, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.USB_get_ondisconnect = function () { + let r = cbb_wf.checkIllegal(this, "USB"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ondisconnect'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USB_get_ondisconnect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USB_set_ondisconnect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USB"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondisconnect", val); - if (cbb_wf.is_log) { - console.log("[*] USB_set_ondisconnect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "USB"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ondisconnect', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USB_set_ondisconnect, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.USB_getDevices = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USB"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USB_getDevices, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USB"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USB_getDevices, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USB_requestDevice = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USB"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USB_requestDevice, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USB"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USB_requestDevice, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USBAlternateInterface_get_alternateSetting = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBAlternateInterface"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "alternateSetting"); + + let result = cbb_wf.getValue(this, 'alternateSetting'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBAlternateInterface_get_alternateSetting, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBAlternateInterface_get_alternateSetting, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBAlternateInterface_get_interfaceClass = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBAlternateInterface"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "interfaceClass"); + + let result = cbb_wf.getValue(this, 'interfaceClass'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBAlternateInterface_get_interfaceClass, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBAlternateInterface_get_interfaceClass, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBAlternateInterface_get_interfaceSubclass = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBAlternateInterface"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "interfaceSubclass"); + + let result = cbb_wf.getValue(this, 'interfaceSubclass'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBAlternateInterface_get_interfaceSubclass, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBAlternateInterface_get_interfaceSubclass, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBAlternateInterface_get_interfaceProtocol = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBAlternateInterface"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "interfaceProtocol"); + + let result = cbb_wf.getValue(this, 'interfaceProtocol'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBAlternateInterface_get_interfaceProtocol, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBAlternateInterface_get_interfaceProtocol, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBAlternateInterface_get_interfaceName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBAlternateInterface"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "interfaceName"); + + let result = cbb_wf.getValue(this, 'interfaceName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBAlternateInterface_get_interfaceName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBAlternateInterface_get_interfaceName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBAlternateInterface_get_endpoints = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBAlternateInterface"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "endpoints"); + + let result = cbb_wf.getValue(this, 'endpoints'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBAlternateInterface_get_endpoints, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBAlternateInterface_get_endpoints, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBConfiguration_get_configurationValue = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBConfiguration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "configurationValue"); + + let result = cbb_wf.getValue(this, 'configurationValue'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBConfiguration_get_configurationValue, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBConfiguration_get_configurationValue, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBConfiguration_get_configurationName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBConfiguration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "configurationName"); + + let result = cbb_wf.getValue(this, 'configurationName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBConfiguration_get_configurationName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBConfiguration_get_configurationName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBConfiguration_get_interfaces = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBConfiguration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "interfaces"); + + let result = cbb_wf.getValue(this, 'interfaces'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBConfiguration_get_interfaces, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBConfiguration_get_interfaces, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBConnectionEvent_get_device = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBConnectionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "device"); + + let result = cbb_wf.getValue(this, 'device'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBConnectionEvent_get_device, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBConnectionEvent_get_device, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_usbVersionMajor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "usbVersionMajor"); + + let result = cbb_wf.getValue(this, 'usbVersionMajor'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_usbVersionMajor, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_usbVersionMajor, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_usbVersionMinor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "usbVersionMinor"); + + let result = cbb_wf.getValue(this, 'usbVersionMinor'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_usbVersionMinor, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_usbVersionMinor, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_usbVersionSubminor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "usbVersionSubminor"); + + let result = cbb_wf.getValue(this, 'usbVersionSubminor'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_usbVersionSubminor, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_usbVersionSubminor, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_deviceClass = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "deviceClass"); + + let result = cbb_wf.getValue(this, 'deviceClass'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_deviceClass, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_deviceClass, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_deviceSubclass = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "deviceSubclass"); + + let result = cbb_wf.getValue(this, 'deviceSubclass'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_deviceSubclass, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_deviceSubclass, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_deviceProtocol = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "deviceProtocol"); + + let result = cbb_wf.getValue(this, 'deviceProtocol'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_deviceProtocol, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_deviceProtocol, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_vendorId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "vendorId"); + + let result = cbb_wf.getValue(this, 'vendorId'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_vendorId, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_vendorId, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_productId = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "productId"); + + let result = cbb_wf.getValue(this, 'productId'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_productId, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_productId, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_deviceVersionMajor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "deviceVersionMajor"); + + let result = cbb_wf.getValue(this, 'deviceVersionMajor'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_deviceVersionMajor, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_deviceVersionMajor, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_deviceVersionMinor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "deviceVersionMinor"); + + let result = cbb_wf.getValue(this, 'deviceVersionMinor'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_deviceVersionMinor, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_deviceVersionMinor, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_deviceVersionSubminor = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "deviceVersionSubminor"); + + let result = cbb_wf.getValue(this, 'deviceVersionSubminor'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_deviceVersionSubminor, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_deviceVersionSubminor, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_manufacturerName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "manufacturerName"); + + let result = cbb_wf.getValue(this, 'manufacturerName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_manufacturerName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_manufacturerName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_productName = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "productName"); + + let result = cbb_wf.getValue(this, 'productName'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_productName, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_productName, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_serialNumber = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "serialNumber"); + + let result = cbb_wf.getValue(this, 'serialNumber'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_serialNumber, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_serialNumber, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_configuration = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "configuration"); + + let result = cbb_wf.getValue(this, 'configuration'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_configuration, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_configuration, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_configurations = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "configurations"); + + let result = cbb_wf.getValue(this, 'configurations'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_configurations, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_configurations, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_get_opened = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBDevice"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "opened"); + + let result = cbb_wf.getValue(this, 'opened'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBDevice_get_opened, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_get_opened, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBDevice_claimInterface = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_claimInterface, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_claimInterface, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USBDevice_clearHalt = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_clearHalt, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_clearHalt, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USBDevice_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USBDevice_controlTransferIn = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_controlTransferIn, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_controlTransferIn, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USBDevice_controlTransferOut = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_controlTransferOut, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.USBDevice_forget = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_forget, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_controlTransferOut, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } + return result; +} this.USBDevice_isochronousTransferIn = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_isochronousTransferIn, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_isochronousTransferIn, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USBDevice_isochronousTransferOut = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_isochronousTransferOut, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_isochronousTransferOut, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USBDevice_open = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_open, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_open, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USBDevice_releaseInterface = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_releaseInterface, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_releaseInterface, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USBDevice_reset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_reset, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_reset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USBDevice_selectAlternateInterface = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_selectAlternateInterface, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_selectAlternateInterface, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USBDevice_selectConfiguration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_selectConfiguration, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_selectConfiguration, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USBDevice_transferIn = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_transferIn, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_transferIn, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USBDevice_transferOut = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "USBDevice"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] USBDevice_transferOut, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_transferOut, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.USBDevice_forget = function () { + let r = cbb_wf.checkIllegal(this, "USBDevice"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBDevice_forget, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.USBEndpoint_get_endpointNumber = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBEndpoint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "endpointNumber"); + + let result = cbb_wf.getValue(this, 'endpointNumber'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBEndpoint_get_endpointNumber, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBEndpoint_get_endpointNumber, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBEndpoint_get_direction = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBEndpoint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "direction"); + + let result = cbb_wf.getValue(this, 'direction'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBEndpoint_get_direction, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBEndpoint_get_direction, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBEndpoint_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBEndpoint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBEndpoint_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBEndpoint_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBEndpoint_get_packetSize = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBEndpoint"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "packetSize"); + + let result = cbb_wf.getValue(this, 'packetSize'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBEndpoint_get_packetSize, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBEndpoint_get_packetSize, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBInTransferResult_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBInTransferResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "data"); + + let result = cbb_wf.getValue(this, 'data'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBInTransferResult_get_data, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBInTransferResult_get_data, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBInTransferResult_get_status = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBInTransferResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "status"); + + let result = cbb_wf.getValue(this, 'status'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBInTransferResult_get_status, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBInTransferResult_get_status, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBInterface_get_interfaceNumber = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBInterface"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "interfaceNumber"); + + let result = cbb_wf.getValue(this, 'interfaceNumber'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBInterface_get_interfaceNumber, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBInterface_get_interfaceNumber, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBInterface_get_alternate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBInterface"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "alternate"); + + let result = cbb_wf.getValue(this, 'alternate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBInterface_get_alternate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBInterface_get_alternate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBInterface_get_alternates = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBInterface"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "alternates"); + + let result = cbb_wf.getValue(this, 'alternates'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBInterface_get_alternates, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBInterface_get_alternates, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBInterface_get_claimed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBInterface"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "claimed"); + + let result = cbb_wf.getValue(this, 'claimed'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBInterface_get_claimed, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBInterface_get_claimed, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBIsochronousInTransferPacket_get_status = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBIsochronousInTransferPacket"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "status"); + + let result = cbb_wf.getValue(this, 'status'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBIsochronousInTransferPacket_get_status, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBIsochronousInTransferPacket_get_status, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBIsochronousInTransferPacket_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBIsochronousInTransferPacket"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "data"); + + let result = cbb_wf.getValue(this, 'data'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBIsochronousInTransferPacket_get_data, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBIsochronousInTransferPacket_get_data, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBIsochronousInTransferResult_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBIsochronousInTransferResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "data"); + + let result = cbb_wf.getValue(this, 'data'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBIsochronousInTransferResult_get_data, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBIsochronousInTransferResult_get_data, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBIsochronousInTransferResult_get_packets = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBIsochronousInTransferResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "packets"); + + let result = cbb_wf.getValue(this, 'packets'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBIsochronousInTransferResult_get_packets, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBIsochronousInTransferResult_get_packets, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBIsochronousOutTransferPacket_get_bytesWritten = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBIsochronousOutTransferPacket"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "bytesWritten"); + + let result = cbb_wf.getValue(this, 'bytesWritten'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBIsochronousOutTransferPacket_get_bytesWritten, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBIsochronousOutTransferPacket_get_bytesWritten, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBIsochronousOutTransferPacket_get_status = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBIsochronousOutTransferPacket"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "status"); + + let result = cbb_wf.getValue(this, 'status'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBIsochronousOutTransferPacket_get_status, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBIsochronousOutTransferPacket_get_status, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBIsochronousOutTransferResult_get_packets = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBIsochronousOutTransferResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "packets"); + + let result = cbb_wf.getValue(this, 'packets'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBIsochronousOutTransferResult_get_packets, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBIsochronousOutTransferResult_get_packets, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBOutTransferResult_get_bytesWritten = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBOutTransferResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "bytesWritten"); + + let result = cbb_wf.getValue(this, 'bytesWritten'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBOutTransferResult_get_bytesWritten, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBOutTransferResult_get_bytesWritten, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.USBOutTransferResult_get_status = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "USBOutTransferResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "status"); + + let result = cbb_wf.getValue(this, 'status'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] USBOutTransferResult_get_status, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "USBOutTransferResult_get_status, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } +this.VirtualKeyboard_get_boundingRect = function () { + let r = cbb_wf.checkIllegal(this, "VirtualKeyboard"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'boundingRect'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VirtualKeyboard_get_boundingRect, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VirtualKeyboard_get_overlaysContent = function () { + let r = cbb_wf.checkIllegal(this, "VirtualKeyboard"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'overlaysContent'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VirtualKeyboard_get_overlaysContent, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VirtualKeyboard_set_overlaysContent = function (val) { + let r = cbb_wf.checkIllegal(this, "VirtualKeyboard"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'overlaysContent', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VirtualKeyboard_set_overlaysContent, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.VirtualKeyboard_get_ongeometrychange = function () { + let r = cbb_wf.checkIllegal(this, "VirtualKeyboard"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ongeometrychange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VirtualKeyboard_get_ongeometrychange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.VirtualKeyboard_set_ongeometrychange = function (val) { + let r = cbb_wf.checkIllegal(this, "VirtualKeyboard"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'ongeometrychange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VirtualKeyboard_set_ongeometrychange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.VirtualKeyboard_hide = function () { + let r = cbb_wf.checkIllegal(this, "VirtualKeyboard"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VirtualKeyboard_hide, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.VirtualKeyboard_show = function () { + let r = cbb_wf.checkIllegal(this, "VirtualKeyboard"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VirtualKeyboard_show, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.WakeLock_request = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WakeLock"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WakeLock_request, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WakeLock"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WakeLock_request, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.WakeLockSentinel_get_onrelease = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WakeLockSentinel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onrelease"); + + let result = cbb_wf.getValue(this, 'onrelease'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WakeLockSentinel_get_onrelease, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WakeLockSentinel_get_onrelease, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WakeLockSentinel_set_onrelease = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WakeLockSentinel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onrelease", val); - if (cbb_wf.is_log) { - console.log("[*] WakeLockSentinel_set_onrelease, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "WakeLockSentinel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onrelease', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WakeLockSentinel_set_onrelease, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.WakeLockSentinel_get_released = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WakeLockSentinel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "released"); + + let result = cbb_wf.getValue(this, 'released'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WakeLockSentinel_get_released, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WakeLockSentinel_get_released, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WakeLockSentinel_get_type = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WakeLockSentinel"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "type"); + + let result = cbb_wf.getValue(this, 'type'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WakeLockSentinel_get_type, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WakeLockSentinel_get_type, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WakeLockSentinel_release = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WakeLockSentinel"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WakeLockSentinel_release, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WakeLockSentinel"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WakeLockSentinel_release, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebTransport_get_incomingUnidirectionalStreams = function () { + let r = cbb_wf.checkIllegal(this, "WebTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'incomingUnidirectionalStreams'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransport_get_incomingUnidirectionalStreams, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransport_get_incomingBidirectionalStreams = function () { + let r = cbb_wf.checkIllegal(this, "WebTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'incomingBidirectionalStreams'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransport_get_incomingBidirectionalStreams, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransport_get_datagrams = function () { + let r = cbb_wf.checkIllegal(this, "WebTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'datagrams'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransport_get_datagrams, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransport_get_ready = function () { + let r = cbb_wf.checkIllegal(this, "WebTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ready'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransport_get_ready, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransport_get_closed = function () { + let r = cbb_wf.checkIllegal(this, "WebTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'closed'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransport_get_closed, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransport_close = function () { + let r = cbb_wf.checkIllegal(this, "WebTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransport_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebTransport_createBidirectionalStream = function () { + let r = cbb_wf.checkIllegal(this, "WebTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransport_createBidirectionalStream, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebTransport_createUnidirectionalStream = function () { + let r = cbb_wf.checkIllegal(this, "WebTransport"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransport_createUnidirectionalStream, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebTransportBidirectionalStream_get_readable = function () { + let r = cbb_wf.checkIllegal(this, "WebTransportBidirectionalStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'readable'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportBidirectionalStream_get_readable, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransportBidirectionalStream_get_writable = function () { + let r = cbb_wf.checkIllegal(this, "WebTransportBidirectionalStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'writable'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportBidirectionalStream_get_writable, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransportDatagramDuplexStream_get_readable = function () { + let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'readable'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportDatagramDuplexStream_get_readable, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransportDatagramDuplexStream_get_writable = function () { + let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'writable'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportDatagramDuplexStream_get_writable, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransportDatagramDuplexStream_get_maxDatagramSize = function () { + let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'maxDatagramSize'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportDatagramDuplexStream_get_maxDatagramSize, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransportDatagramDuplexStream_get_incomingMaxAge = function () { + let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'incomingMaxAge'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportDatagramDuplexStream_get_incomingMaxAge, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransportDatagramDuplexStream_set_incomingMaxAge = function (val) { + let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'incomingMaxAge', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportDatagramDuplexStream_set_incomingMaxAge, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.WebTransportDatagramDuplexStream_get_outgoingMaxAge = function () { + let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'outgoingMaxAge'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportDatagramDuplexStream_get_outgoingMaxAge, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransportDatagramDuplexStream_set_outgoingMaxAge = function (val) { + let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'outgoingMaxAge', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportDatagramDuplexStream_set_outgoingMaxAge, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.WebTransportDatagramDuplexStream_get_incomingHighWaterMark = function () { + let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'incomingHighWaterMark'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportDatagramDuplexStream_get_incomingHighWaterMark, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransportDatagramDuplexStream_set_incomingHighWaterMark = function (val) { + let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'incomingHighWaterMark', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportDatagramDuplexStream_set_incomingHighWaterMark, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.WebTransportDatagramDuplexStream_get_outgoingHighWaterMark = function () { + let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'outgoingHighWaterMark'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportDatagramDuplexStream_get_outgoingHighWaterMark, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransportDatagramDuplexStream_set_outgoingHighWaterMark = function (val) { + let r = cbb_wf.checkIllegal(this, "WebTransportDatagramDuplexStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'outgoingHighWaterMark', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportDatagramDuplexStream_set_outgoingHighWaterMark, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.WebTransportError_get_streamErrorCode = function () { + let r = cbb_wf.checkIllegal(this, "WebTransportError"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'streamErrorCode'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportError_get_streamErrorCode, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.WebTransportError_get_source = function () { + let r = cbb_wf.checkIllegal(this, "WebTransportError"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'source'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "WebTransportError_get_source, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.XRAnchor_get_anchorSpace = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRAnchor"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "anchorSpace"); + + let result = cbb_wf.getValue(this, 'anchorSpace'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRAnchor_get_anchorSpace, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRAnchor_get_anchorSpace, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRAnchor_delete = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRAnchor"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRAnchor_delete, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRAnchor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRAnchor_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XRAnchorSet_get_size = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRAnchorSet"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "size"); + + let result = cbb_wf.getValue(this, 'size'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRAnchorSet_get_size, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRAnchorSet_get_size, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRAnchorSet_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRAnchorSet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRAnchorSet_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRAnchorSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRAnchorSet_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XRAnchorSet_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRAnchorSet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRAnchorSet_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRAnchorSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRAnchorSet_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XRAnchorSet_has = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRAnchorSet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRAnchorSet_has, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRAnchorSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRAnchorSet_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XRAnchorSet_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRAnchorSet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRAnchorSet_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRAnchorSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRAnchorSet_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XRAnchorSet_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRAnchorSet"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRAnchorSet_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRAnchorSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRAnchorSet_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XRBoundedReferenceSpace_get_boundsGeometry = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRBoundedReferenceSpace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "boundsGeometry"); + + let result = cbb_wf.getValue(this, 'boundsGeometry'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRBoundedReferenceSpace_get_boundsGeometry, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRBoundedReferenceSpace_get_boundsGeometry, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.XRCPUDepthInformation_get_data = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRCPUDepthInformation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "data"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRCPUDepthInformation_get_data, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRCPUDepthInformation_getDepthInMeters = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRCPUDepthInformation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRCPUDepthInformation_getDepthInMeters, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRCamera_get_width = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRCamera"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "width"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRCamera_get_width, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRCamera_get_height = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRCamera"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "height"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRCamera_get_height, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRDepthInformation_get_width = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRDepthInformation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "width"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRDepthInformation_get_width, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRDepthInformation_get_height = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRDepthInformation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "height"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRDepthInformation_get_height, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRDepthInformation_get_normDepthBufferFromNormView = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRDepthInformation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "normDepthBufferFromNormView"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRDepthInformation_get_normDepthBufferFromNormView, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRDepthInformation_get_rawValueToMeters = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRDepthInformation"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "rawValueToMeters"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRDepthInformation_get_rawValueToMeters, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.XRFrame_get_session = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRFrame"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "session"); + + let result = cbb_wf.getValue(this, 'session'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRFrame_get_session, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRFrame_get_session, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRFrame_getPose = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRFrame_getPose, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRFrame_getViewerPose = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRFrame_getViewerPose, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRFrame_get_trackedAnchors = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRFrame"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "trackedAnchors"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRFrame_get_trackedAnchors, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRFrame_getPose, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.XRFrame_getViewerPose = function () { + let r = cbb_wf.checkIllegal(this, "XRFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRFrame_getViewerPose, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRFrame_get_trackedAnchors = function () { + let r = cbb_wf.checkIllegal(this, "XRFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'trackedAnchors'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRFrame_get_trackedAnchors, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.XRFrame_createAnchor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRFrame_createAnchor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.XRFrame_getDepthInformation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRFrame_getDepthInformation, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRFrame_createAnchor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } + return result; +} this.XRFrame_getHitTestResults = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRFrame_getHitTestResults, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRFrame_getHitTestResults, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XRFrame_getHitTestResultsForTransientInput = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRFrame_getHitTestResultsForTransientInput, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRFrame_getHitTestResultsForTransientInput, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XRFrame_getLightEstimate = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRFrame"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRFrame_getLightEstimate, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.XRHitTestResult_getPose = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRHitTestResult"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRHitTestResult_getPose, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRFrame_getLightEstimate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } -this.XRHitTestResult_createAnchor = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRHitTestResult"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRHitTestResult_createAnchor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + return result; +} +this.XRFrame_getDepthInformation = function () { + let r = cbb_wf.checkIllegal(this, "XRFrame"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } -this.XRHitTestSource_cancel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRHitTestSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRHitTestSource_cancel, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRFrame_getDepthInformation, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } + return result; +} this.XRInputSource_get_handedness = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRInputSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "handedness"); + + let result = cbb_wf.getValue(this, 'handedness'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRInputSource_get_handedness, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSource_get_handedness, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRInputSource_get_targetRayMode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRInputSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "targetRayMode"); + + let result = cbb_wf.getValue(this, 'targetRayMode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRInputSource_get_targetRayMode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSource_get_targetRayMode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRInputSource_get_targetRaySpace = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRInputSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "targetRaySpace"); + + let result = cbb_wf.getValue(this, 'targetRaySpace'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRInputSource_get_targetRaySpace, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSource_get_targetRaySpace, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRInputSource_get_gripSpace = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRInputSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "gripSpace"); + + let result = cbb_wf.getValue(this, 'gripSpace'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRInputSource_get_gripSpace, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSource_get_gripSpace, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRInputSource_get_gamepad = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRInputSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "gamepad"); + + let result = cbb_wf.getValue(this, 'gamepad'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRInputSource_get_gamepad, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSource_get_gamepad, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRInputSource_get_profiles = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRInputSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "profiles"); + + let result = cbb_wf.getValue(this, 'profiles'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRInputSource_get_profiles, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSource_get_profiles, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRInputSourceArray_entries = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRInputSourceArray"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRInputSourceArray_entries, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRInputSourceArray_keys = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRInputSourceArray"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRInputSourceArray_keys, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRInputSourceArray_values = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRInputSourceArray"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRInputSourceArray_values, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRInputSourceArray_forEach = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRInputSourceArray"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRInputSourceArray_forEach, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRInputSourceArray_get_length = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRInputSourceArray"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "length"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRInputSourceArray_get_length, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSourceArray_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.XRInputSourceArray_keys = function () { + let r = cbb_wf.checkIllegal(this, "XRInputSourceArray"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSourceArray_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRInputSourceArray_values = function () { + let r = cbb_wf.checkIllegal(this, "XRInputSourceArray"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSourceArray_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRInputSourceArray_forEach = function () { + let r = cbb_wf.checkIllegal(this, "XRInputSourceArray"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSourceArray_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRInputSourceArray_get_length = function () { + let r = cbb_wf.checkIllegal(this, "XRInputSourceArray"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'length'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSourceArray_get_length, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.XRInputSourceEvent_get_frame = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRInputSourceEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "frame"); + + let result = cbb_wf.getValue(this, 'frame'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRInputSourceEvent_get_frame, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSourceEvent_get_frame, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRInputSourceEvent_get_inputSource = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRInputSourceEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "inputSource"); + + let result = cbb_wf.getValue(this, 'inputSource'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRInputSourceEvent_get_inputSource, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSourceEvent_get_inputSource, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRInputSourcesChangeEvent_get_session = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRInputSourcesChangeEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "session"); + + let result = cbb_wf.getValue(this, 'session'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRInputSourcesChangeEvent_get_session, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSourcesChangeEvent_get_session, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRInputSourcesChangeEvent_get_added = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRInputSourcesChangeEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "added"); + + let result = cbb_wf.getValue(this, 'added'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRInputSourcesChangeEvent_get_added, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSourcesChangeEvent_get_added, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRInputSourcesChangeEvent_get_removed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRInputSourcesChangeEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "removed"); + + let result = cbb_wf.getValue(this, 'removed'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRInputSourcesChangeEvent_get_removed, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRInputSourcesChangeEvent_get_removed, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.XRLightEstimate_get_sphericalHarmonicsCoefficients = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRLightEstimate"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "sphericalHarmonicsCoefficients"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRLightEstimate_get_sphericalHarmonicsCoefficients, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRLightEstimate_get_primaryLightDirection = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRLightEstimate"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "primaryLightDirection"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRLightEstimate_get_primaryLightDirection, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRLightEstimate_get_primaryLightIntensity = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRLightEstimate"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "primaryLightIntensity"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRLightEstimate_get_primaryLightIntensity, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRLightProbe_get_probeSpace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRLightProbe"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "probeSpace"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRLightProbe_get_probeSpace, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRLightProbe_get_onreflectionchange = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRLightProbe"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onreflectionchange"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRLightProbe_get_onreflectionchange, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRLightProbe_set_onreflectionchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRLightProbe"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onreflectionchange", val); - if (cbb_wf.is_log) { - console.log("[*] XRLightProbe_set_onreflectionchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } this.XRPose_get_transform = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRPose"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "transform"); + + let result = cbb_wf.getValue(this, 'transform'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRPose_get_transform, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRPose_get_transform, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRPose_get_emulatedPosition = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRPose"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "emulatedPosition"); + + let result = cbb_wf.getValue(this, 'emulatedPosition'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRPose_get_emulatedPosition, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRPose_get_emulatedPosition, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.XRRay_get_origin = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRRay"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "origin"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRRay_get_origin, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRRay_get_direction = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRRay"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "direction"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRRay_get_direction, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRRay_get_matrix = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRRay"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "matrix"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRRay_get_matrix, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.XRReferenceSpace_get_onreset = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRReferenceSpace"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onreset"); + + let result = cbb_wf.getValue(this, 'onreset'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRReferenceSpace_get_onreset, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRReferenceSpace_get_onreset, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRReferenceSpace_set_onreset = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRReferenceSpace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onreset", val); - if (cbb_wf.is_log) { - console.log("[*] XRReferenceSpace_set_onreset, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XRReferenceSpace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onreset', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRReferenceSpace_set_onreset, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XRReferenceSpace_getOffsetReferenceSpace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRReferenceSpace"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRReferenceSpace_getOffsetReferenceSpace, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRReferenceSpace"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRReferenceSpace_getOffsetReferenceSpace, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XRReferenceSpaceEvent_get_referenceSpace = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRReferenceSpaceEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "referenceSpace"); + + let result = cbb_wf.getValue(this, 'referenceSpace'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRReferenceSpaceEvent_get_referenceSpace, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRReferenceSpaceEvent_get_referenceSpace, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRReferenceSpaceEvent_get_transform = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRReferenceSpaceEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "transform"); + + let result = cbb_wf.getValue(this, 'transform'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRReferenceSpaceEvent_get_transform, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRReferenceSpaceEvent_get_transform, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRRenderState_get_depthNear = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRRenderState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "depthNear"); + + let result = cbb_wf.getValue(this, 'depthNear'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRRenderState_get_depthNear, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRRenderState_get_depthNear, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRRenderState_get_depthFar = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRRenderState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "depthFar"); + + let result = cbb_wf.getValue(this, 'depthFar'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRRenderState_get_depthFar, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRRenderState_get_depthFar, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRRenderState_get_inlineVerticalFieldOfView = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRRenderState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "inlineVerticalFieldOfView"); + + let result = cbb_wf.getValue(this, 'inlineVerticalFieldOfView'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRRenderState_get_inlineVerticalFieldOfView, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRRenderState_get_inlineVerticalFieldOfView, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRRenderState_get_baseLayer = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRRenderState"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "baseLayer"); + + let result = cbb_wf.getValue(this, 'baseLayer'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRRenderState_get_baseLayer, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRRenderState_get_baseLayer, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRRigidTransform_get_position = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRRigidTransform"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "position"); + + let result = cbb_wf.getValue(this, 'position'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRRigidTransform_get_position, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRRigidTransform_get_position, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRRigidTransform_get_orientation = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRRigidTransform"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "orientation"); + + let result = cbb_wf.getValue(this, 'orientation'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRRigidTransform_get_orientation, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRRigidTransform_get_orientation, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRRigidTransform_get_matrix = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRRigidTransform"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "matrix"); + + let result = cbb_wf.getValue(this, 'matrix'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRRigidTransform_get_matrix, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRRigidTransform_get_matrix, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRRigidTransform_get_inverse = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRRigidTransform"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "inverse"); + + let result = cbb_wf.getValue(this, 'inverse'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRRigidTransform_get_inverse, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRRigidTransform_get_inverse, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.XRSession_get_environmentBlendMode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "environmentBlendMode"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_environmentBlendMode, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRSession_get_interactionMode = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "interactionMode"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_interactionMode, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.XRSession_get_visibilityState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "visibilityState"); + + let result = cbb_wf.getValue(this, 'visibilityState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_visibilityState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_visibilityState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRSession_get_renderState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "renderState"); + + let result = cbb_wf.getValue(this, 'renderState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_renderState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_renderState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRSession_get_inputSources = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "inputSources"); + + let result = cbb_wf.getValue(this, 'inputSources'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_inputSources, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_inputSources, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRSession_get_domOverlayState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "domOverlayState"); + + let result = cbb_wf.getValue(this, 'domOverlayState'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_domOverlayState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_domOverlayState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.XRSession_get_preferredReflectionFormat = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "preferredReflectionFormat"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_preferredReflectionFormat, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.XRSession_get_onend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onend"); + + let result = cbb_wf.getValue(this, 'onend'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_onend, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_onend, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRSession_set_onend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onend", val); - if (cbb_wf.is_log) { - console.log("[*] XRSession_set_onend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onend', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_set_onend, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XRSession_get_onselect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onselect"); + + let result = cbb_wf.getValue(this, 'onselect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_onselect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_onselect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRSession_set_onselect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onselect", val); - if (cbb_wf.is_log) { - console.log("[*] XRSession_set_onselect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onselect', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_set_onselect, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XRSession_get_oninputsourceschange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "oninputsourceschange"); + + let result = cbb_wf.getValue(this, 'oninputsourceschange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_oninputsourceschange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_oninputsourceschange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRSession_set_oninputsourceschange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "oninputsourceschange", val); - if (cbb_wf.is_log) { - console.log("[*] XRSession_set_oninputsourceschange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'oninputsourceschange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_set_oninputsourceschange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XRSession_get_onselectstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onselectstart"); + + let result = cbb_wf.getValue(this, 'onselectstart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_onselectstart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_onselectstart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRSession_set_onselectstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onselectstart", val); - if (cbb_wf.is_log) { - console.log("[*] XRSession_set_onselectstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onselectstart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_set_onselectstart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XRSession_get_onselectend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onselectend"); + + let result = cbb_wf.getValue(this, 'onselectend'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_onselectend, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_onselectend, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRSession_set_onselectend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onselectend", val); - if (cbb_wf.is_log) { - console.log("[*] XRSession_set_onselectend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onselectend', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_set_onselectend, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XRSession_get_onvisibilitychange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onvisibilitychange"); + + let result = cbb_wf.getValue(this, 'onvisibilitychange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_onvisibilitychange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_onvisibilitychange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRSession_set_onvisibilitychange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onvisibilitychange", val); - if (cbb_wf.is_log) { - console.log("[*] XRSession_set_onvisibilitychange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onvisibilitychange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_set_onvisibilitychange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XRSession_get_onsqueeze = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onsqueeze"); + + let result = cbb_wf.getValue(this, 'onsqueeze'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_onsqueeze, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_onsqueeze, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRSession_set_onsqueeze = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onsqueeze", val); - if (cbb_wf.is_log) { - console.log("[*] XRSession_set_onsqueeze, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onsqueeze', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_set_onsqueeze, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XRSession_get_onsqueezestart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onsqueezestart"); + + let result = cbb_wf.getValue(this, 'onsqueezestart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_onsqueezestart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_onsqueezestart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRSession_set_onsqueezestart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onsqueezestart", val); - if (cbb_wf.is_log) { - console.log("[*] XRSession_set_onsqueezestart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onsqueezestart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_set_onsqueezestart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XRSession_get_onsqueezeend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onsqueezeend"); + + let result = cbb_wf.getValue(this, 'onsqueezeend'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_onsqueezeend, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_onsqueezeend, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRSession_set_onsqueezeend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onsqueezeend", val); - if (cbb_wf.is_log) { - console.log("[*] XRSession_set_onsqueezeend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.XRSession_get_depthUsage = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "depthUsage"); + cbb_wf.setValue(this, 'onsqueezeend', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_depthUsage, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_set_onsqueezeend, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - -this.XRSession_get_depthDataFormat = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "depthDataFormat"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_depthDataFormat, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.XRSession_cancelAnimationFrame = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRSession_cancelAnimationFrame, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRSession_end = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRSession_end, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRSession_requestAnimationFrame = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRSession_requestAnimationFrame, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRSession_requestHitTestSource = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRSession_requestHitTestSource, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRSession_requestHitTestSourceForTransientInput = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRSession_requestHitTestSourceForTransientInput, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRSession_requestLightProbe = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRSession_requestLightProbe, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRSession_requestReferenceSpace = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRSession_requestReferenceSpace, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRSession_updateRenderState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRSession_updateRenderState, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRSession_get_enabledFeatures = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "enabledFeatures"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSession_get_enabledFeatures, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_cancelAnimationFrame, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.XRSession_end = function () { + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_end, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRSession_requestAnimationFrame = function () { + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_requestAnimationFrame, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRSession_requestReferenceSpace = function () { + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_requestReferenceSpace, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRSession_updateRenderState = function () { + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_updateRenderState, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRSession_get_environmentBlendMode = function () { + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'environmentBlendMode'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_environmentBlendMode, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRSession_get_interactionMode = function () { + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'interactionMode'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_interactionMode, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRSession_get_preferredReflectionFormat = function () { + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'preferredReflectionFormat'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_preferredReflectionFormat, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRSession_requestHitTestSource = function () { + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_requestHitTestSource, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRSession_requestHitTestSourceForTransientInput = function () { + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_requestHitTestSourceForTransientInput, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRSession_requestLightProbe = function () { + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_requestLightProbe, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRSession_get_depthUsage = function () { + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'depthUsage'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_depthUsage, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRSession_get_depthDataFormat = function () { + let r = cbb_wf.checkIllegal(this, "XRSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'depthDataFormat'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSession_get_depthDataFormat, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.XRSessionEvent_get_session = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSessionEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "session"); + + let result = cbb_wf.getValue(this, 'session'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSessionEvent_get_session, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSessionEvent_get_session, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRSystem_get_ondevicechange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRSystem"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ondevicechange"); + + let result = cbb_wf.getValue(this, 'ondevicechange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRSystem_get_ondevicechange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSystem_get_ondevicechange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRSystem_set_ondevicechange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSystem"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondevicechange", val); - if (cbb_wf.is_log) { - console.log("[*] XRSystem_set_ondevicechange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "XRSystem"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ondevicechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSystem_set_ondevicechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.XRSystem_isSessionSupported = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSystem"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRSystem_isSessionSupported, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRSystem"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSystem_isSessionSupported, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XRSystem_requestSession = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSystem"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRSystem_requestSession, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRSystem"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSystem_requestSession, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XRSystem_supportsSession = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRSystem"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRSystem_supportsSession, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.XRTransientInputHitTestResult_get_inputSource = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRTransientInputHitTestResult"); + let r = cbb_wf.checkIllegal(this, "XRSystem"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "inputSource"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRTransientInputHitTestResult_get_inputSource, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRSystem_supportsSession, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.XRTransientInputHitTestResult_get_results = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRTransientInputHitTestResult"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "results"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRTransientInputHitTestResult_get_results, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.XRTransientInputHitTestSource_cancel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRTransientInputHitTestSource"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRTransientInputHitTestSource_cancel, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.XRView_get_eye = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRView"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "eye"); + + let result = cbb_wf.getValue(this, 'eye'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRView_get_eye, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRView_get_eye, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRView_get_projectionMatrix = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRView"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "projectionMatrix"); + + let result = cbb_wf.getValue(this, 'projectionMatrix'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRView_get_projectionMatrix, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRView_get_projectionMatrix, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRView_get_transform = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRView"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "transform"); + + let result = cbb_wf.getValue(this, 'transform'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRView_get_transform, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRView_get_transform, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.XRView_get_recommendedViewportScale = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRView"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "recommendedViewportScale"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRView_get_recommendedViewportScale, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - this.XRView_get_isFirstPersonObserver = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRView"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "isFirstPersonObserver"); + + let result = cbb_wf.getValue(this, 'isFirstPersonObserver'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRView_get_isFirstPersonObserver, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRView_get_isFirstPersonObserver, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.XRView_get_camera = function () { - // 非法调用 +this.XRView_get_recommendedViewportScale = function () { let r = cbb_wf.checkIllegal(this, "XRView"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "camera"); + + let result = cbb_wf.getValue(this, 'recommendedViewportScale'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRView_get_camera, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRView_get_recommendedViewportScale, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRView_requestViewportScale = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRView"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRView_requestViewportScale, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "XRView"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRView_requestViewportScale, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.XRViewerPose_get_views = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRViewerPose"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "views"); + + let result = cbb_wf.getValue(this, 'views'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRViewerPose_get_views, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRViewerPose_get_views, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRViewport_get_x = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRViewport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "x"); + + let result = cbb_wf.getValue(this, 'x'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRViewport_get_x, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRViewport_get_x, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRViewport_get_y = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRViewport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "y"); + + let result = cbb_wf.getValue(this, 'y'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRViewport_get_y, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRViewport_get_y, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRViewport_get_width = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRViewport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "width"); + + let result = cbb_wf.getValue(this, 'width'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRViewport_get_width, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRViewport_get_width, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.XRViewport_get_height = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRViewport"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "height"); + + let result = cbb_wf.getValue(this, 'height'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRViewport_get_height, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRViewport_get_height, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } +this.XRWebGLLayer_get_antialias = function () { + let r = cbb_wf.checkIllegal(this, "XRWebGLLayer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'antialias'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRWebGLLayer_get_antialias, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRWebGLLayer_get_ignoreDepthValues = function () { + let r = cbb_wf.checkIllegal(this, "XRWebGLLayer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ignoreDepthValues'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRWebGLLayer_get_ignoreDepthValues, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRWebGLLayer_get_framebufferWidth = function () { + let r = cbb_wf.checkIllegal(this, "XRWebGLLayer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'framebufferWidth'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRWebGLLayer_get_framebufferWidth, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRWebGLLayer_get_framebufferHeight = function () { + let r = cbb_wf.checkIllegal(this, "XRWebGLLayer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'framebufferHeight'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRWebGLLayer_get_framebufferHeight, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRWebGLLayer_get_framebuffer = function () { + let r = cbb_wf.checkIllegal(this, "XRWebGLLayer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'framebuffer'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRWebGLLayer_get_framebuffer, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRWebGLLayer_getViewport = function () { + let r = cbb_wf.checkIllegal(this, "XRWebGLLayer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRWebGLLayer_getViewport, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRCPUDepthInformation_get_data = function () { + let r = cbb_wf.checkIllegal(this, "XRCPUDepthInformation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'data'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRCPUDepthInformation_get_data, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRCPUDepthInformation_getDepthInMeters = function () { + let r = cbb_wf.checkIllegal(this, "XRCPUDepthInformation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRCPUDepthInformation_getDepthInMeters, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRDepthInformation_get_width = function () { + let r = cbb_wf.checkIllegal(this, "XRDepthInformation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'width'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRDepthInformation_get_width, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRDepthInformation_get_height = function () { + let r = cbb_wf.checkIllegal(this, "XRDepthInformation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'height'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRDepthInformation_get_height, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRDepthInformation_get_normDepthBufferFromNormView = function () { + let r = cbb_wf.checkIllegal(this, "XRDepthInformation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'normDepthBufferFromNormView'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRDepthInformation_get_normDepthBufferFromNormView, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRDepthInformation_get_rawValueToMeters = function () { + let r = cbb_wf.checkIllegal(this, "XRDepthInformation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'rawValueToMeters'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRDepthInformation_get_rawValueToMeters, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.XRWebGLDepthInformation_get_texture = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "XRWebGLDepthInformation"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "texture"); + + let result = cbb_wf.getValue(this, 'texture'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRWebGLDepthInformation_get_texture, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRWebGLDepthInformation_get_texture, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.XRWebGLLayer_getNativeFramebufferScaleFactor = function () { -let r = cbb_wf.checkIllegal(this, "XRWebGLLayer"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRWebGLLayer_getNativeFramebufferScaleFactor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.XRWebGLLayer_get_antialias = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRWebGLLayer"); +this.XRHitTestResult_getPose = function () { + let r = cbb_wf.checkIllegal(this, "XRHitTestResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "antialias"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRWebGLLayer_get_antialias, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRHitTestResult_getPose, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.XRWebGLLayer_get_ignoreDepthValues = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRWebGLLayer"); +this.XRHitTestResult_createAnchor = function () { + let r = cbb_wf.checkIllegal(this, "XRHitTestResult"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ignoreDepthValues"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRWebGLLayer_get_ignoreDepthValues, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRHitTestResult_createAnchor, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.XRWebGLLayer_get_framebufferWidth = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRWebGLLayer"); +this.XRHitTestSource_cancel = function () { + let r = cbb_wf.checkIllegal(this, "XRHitTestSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "framebufferWidth"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRWebGLLayer_get_framebufferWidth, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRHitTestSource_cancel, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.XRWebGLLayer_get_framebufferHeight = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRWebGLLayer"); +this.XRRay_get_origin = function () { + let r = cbb_wf.checkIllegal(this, "XRRay"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "framebufferHeight"); + + let result = cbb_wf.getValue(this, 'origin'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRWebGLLayer_get_framebufferHeight, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRRay_get_origin, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.XRWebGLLayer_get_framebuffer = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRWebGLLayer"); +this.XRRay_get_direction = function () { + let r = cbb_wf.checkIllegal(this, "XRRay"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "framebuffer"); + + let result = cbb_wf.getValue(this, 'direction'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] XRWebGLLayer_get_framebuffer, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRRay_get_direction, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.XRWebGLLayer_getViewport = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "XRWebGLLayer"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] XRWebGLLayer_getViewport, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - +this.XRRay_get_matrix = function () { + let r = cbb_wf.checkIllegal(this, "XRRay"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + + let result = cbb_wf.getValue(this, 'matrix'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRRay_get_matrix, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRTransientInputHitTestResult_get_inputSource = function () { + let r = cbb_wf.checkIllegal(this, "XRTransientInputHitTestResult"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'inputSource'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRTransientInputHitTestResult_get_inputSource, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRTransientInputHitTestResult_get_results = function () { + let r = cbb_wf.checkIllegal(this, "XRTransientInputHitTestResult"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'results'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRTransientInputHitTestResult_get_results, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRTransientInputHitTestSource_cancel = function () { + let r = cbb_wf.checkIllegal(this, "XRTransientInputHitTestSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRTransientInputHitTestSource_cancel, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRLightEstimate_get_sphericalHarmonicsCoefficients = function () { + let r = cbb_wf.checkIllegal(this, "XRLightEstimate"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'sphericalHarmonicsCoefficients'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRLightEstimate_get_sphericalHarmonicsCoefficients, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRLightEstimate_get_primaryLightDirection = function () { + let r = cbb_wf.checkIllegal(this, "XRLightEstimate"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'primaryLightDirection'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRLightEstimate_get_primaryLightDirection, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRLightEstimate_get_primaryLightIntensity = function () { + let r = cbb_wf.checkIllegal(this, "XRLightEstimate"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'primaryLightIntensity'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRLightEstimate_get_primaryLightIntensity, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRLightProbe_get_probeSpace = function () { + let r = cbb_wf.checkIllegal(this, "XRLightProbe"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'probeSpace'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRLightProbe_get_probeSpace, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRLightProbe_get_onreflectionchange = function () { + let r = cbb_wf.checkIllegal(this, "XRLightProbe"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onreflectionchange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRLightProbe_get_onreflectionchange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRLightProbe_set_onreflectionchange = function (val) { + let r = cbb_wf.checkIllegal(this, "XRLightProbe"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onreflectionchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XRLightProbe_set_onreflectionchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.AnimationPlaybackEvent_get_currentTime = function () { + let r = cbb_wf.checkIllegal(this, "AnimationPlaybackEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'currentTime'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnimationPlaybackEvent_get_currentTime, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.AnimationPlaybackEvent_get_timelineTime = function () { + let r = cbb_wf.checkIllegal(this, "AnimationPlaybackEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'timelineTime'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnimationPlaybackEvent_get_timelineTime, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.AnimationTimeline_get_currentTime = function () { + let r = cbb_wf.checkIllegal(this, "AnimationTimeline"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'currentTime'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "AnimationTimeline_get_currentTime, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSAnimation_get_animationName = function () { + let r = cbb_wf.checkIllegal(this, "CSSAnimation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'animationName'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSAnimation_get_animationName, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSTransition_get_transitionProperty = function () { + let r = cbb_wf.checkIllegal(this, "CSSTransition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'transitionProperty'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSTransition_get_transitionProperty, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} this.BackgroundFetchManager_fetch = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BackgroundFetchManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BackgroundFetchManager_fetch, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BackgroundFetchManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchManager_fetch, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BackgroundFetchManager_get = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BackgroundFetchManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BackgroundFetchManager_get, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BackgroundFetchManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchManager_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BackgroundFetchManager_getIds = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BackgroundFetchManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BackgroundFetchManager_getIds, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BackgroundFetchManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchManager_getIds, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BackgroundFetchRecord_get_request = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BackgroundFetchRecord"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "request"); + + let result = cbb_wf.getValue(this, 'request'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BackgroundFetchRecord_get_request, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRecord_get_request, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BackgroundFetchRecord_get_responseReady = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BackgroundFetchRecord"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "responseReady"); + + let result = cbb_wf.getValue(this, 'responseReady'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BackgroundFetchRecord_get_responseReady, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRecord_get_responseReady, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BackgroundFetchRegistration_get_id = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "id"); + + let result = cbb_wf.getValue(this, 'id'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BackgroundFetchRegistration_get_id, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRegistration_get_id, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BackgroundFetchRegistration_get_uploadTotal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "uploadTotal"); + + let result = cbb_wf.getValue(this, 'uploadTotal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BackgroundFetchRegistration_get_uploadTotal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRegistration_get_uploadTotal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BackgroundFetchRegistration_get_uploaded = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "uploaded"); + + let result = cbb_wf.getValue(this, 'uploaded'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BackgroundFetchRegistration_get_uploaded, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRegistration_get_uploaded, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BackgroundFetchRegistration_get_downloadTotal = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "downloadTotal"); + + let result = cbb_wf.getValue(this, 'downloadTotal'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BackgroundFetchRegistration_get_downloadTotal, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRegistration_get_downloadTotal, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BackgroundFetchRegistration_get_downloaded = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "downloaded"); + + let result = cbb_wf.getValue(this, 'downloaded'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BackgroundFetchRegistration_get_downloaded, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRegistration_get_downloaded, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BackgroundFetchRegistration_get_result = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "result"); + + let result = cbb_wf.getValue(this, 'result'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BackgroundFetchRegistration_get_result, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRegistration_get_result, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BackgroundFetchRegistration_get_failureReason = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "failureReason"); + + let result = cbb_wf.getValue(this, 'failureReason'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BackgroundFetchRegistration_get_failureReason, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRegistration_get_failureReason, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BackgroundFetchRegistration_get_recordsAvailable = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "recordsAvailable"); + + let result = cbb_wf.getValue(this, 'recordsAvailable'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BackgroundFetchRegistration_get_recordsAvailable, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRegistration_get_recordsAvailable, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BackgroundFetchRegistration_get_onprogress = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onprogress"); + + let result = cbb_wf.getValue(this, 'onprogress'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BackgroundFetchRegistration_get_onprogress, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRegistration_get_onprogress, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.BackgroundFetchRegistration_set_onprogress = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onprogress", val); - if (cbb_wf.is_log) { - console.log("[*] BackgroundFetchRegistration_set_onprogress, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onprogress', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRegistration_set_onprogress, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.BackgroundFetchRegistration_abort = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BackgroundFetchRegistration_abort, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRegistration_abort, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BackgroundFetchRegistration_match = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BackgroundFetchRegistration_match, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRegistration_match, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.BackgroundFetchRegistration_matchAll = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] BackgroundFetchRegistration_matchAll, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.BluetoothUUID_canonicalUUID = function () { -let r = cbb_wf.checkIllegal(this, "BluetoothUUID"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothUUID_canonicalUUID, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.BluetoothUUID_getCharacteristic = function () { -let r = cbb_wf.checkIllegal(this, "BluetoothUUID"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothUUID_getCharacteristic, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.BluetoothUUID_getDescriptor = function () { -let r = cbb_wf.checkIllegal(this, "BluetoothUUID"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothUUID_getDescriptor, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.BluetoothUUID_getService = function () { -let r = cbb_wf.checkIllegal(this, "BluetoothUUID"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] BluetoothUUID_getService, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.CSSScopeRule_get_start = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSScopeRule"); + let r = cbb_wf.checkIllegal(this, "BackgroundFetchRegistration"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "start"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSScopeRule_get_start, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "BackgroundFetchRegistration_matchAll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.CSSScopeRule_get_end = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "CSSScopeRule"); +this.CSSFontPaletteValuesRule_get_name = function () { + let r = cbb_wf.checkIllegal(this, "CSSFontPaletteValuesRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "end"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CSSScopeRule_get_end, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSFontPaletteValuesRule_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.CropTarget_fromElement = function () { -let r = cbb_wf.checkIllegal(this, "CropTarget"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] CropTarget_fromElement, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; - -} -this.DocumentPictureInPictureEvent_get_window = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "DocumentPictureInPictureEvent"); +this.CSSFontPaletteValuesRule_get_fontFamily = function () { + let r = cbb_wf.checkIllegal(this, "CSSFontPaletteValuesRule"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "window"); + + let result = cbb_wf.getValue(this, 'fontFamily'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] DocumentPictureInPictureEvent_get_window, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSFontPaletteValuesRule_get_fontFamily, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } +this.CSSFontPaletteValuesRule_get_basePalette = function () { + let r = cbb_wf.checkIllegal(this, "CSSFontPaletteValuesRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'basePalette'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSFontPaletteValuesRule_get_basePalette, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSFontPaletteValuesRule_get_overrideColors = function () { + let r = cbb_wf.checkIllegal(this, "CSSFontPaletteValuesRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'overrideColors'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CSSFontPaletteValuesRule_get_overrideColors, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CustomStateSet_get_size = function () { + let r = cbb_wf.checkIllegal(this, "CustomStateSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'size'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomStateSet_get_size, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CustomStateSet_add = function () { + let r = cbb_wf.checkIllegal(this, "CustomStateSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomStateSet_add, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CustomStateSet_clear = function () { + let r = cbb_wf.checkIllegal(this, "CustomStateSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomStateSet_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CustomStateSet_delete = function () { + let r = cbb_wf.checkIllegal(this, "CustomStateSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomStateSet_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CustomStateSet_entries = function () { + let r = cbb_wf.checkIllegal(this, "CustomStateSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomStateSet_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CustomStateSet_forEach = function () { + let r = cbb_wf.checkIllegal(this, "CustomStateSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomStateSet_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CustomStateSet_has = function () { + let r = cbb_wf.checkIllegal(this, "CustomStateSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomStateSet_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CustomStateSet_keys = function () { + let r = cbb_wf.checkIllegal(this, "CustomStateSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomStateSet_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CustomStateSet_values = function () { + let r = cbb_wf.checkIllegal(this, "CustomStateSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "CustomStateSet_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DelegatedInkTrailPresenter_get_presentationArea = function () { + let r = cbb_wf.checkIllegal(this, "DelegatedInkTrailPresenter"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'presentationArea'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DelegatedInkTrailPresenter_get_presentationArea, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.DelegatedInkTrailPresenter_get_expectedImprovement = function () { + let r = cbb_wf.checkIllegal(this, "DelegatedInkTrailPresenter"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'expectedImprovement'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DelegatedInkTrailPresenter_get_expectedImprovement, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.DelegatedInkTrailPresenter_updateInkTrailStartPoint = function () { + let r = cbb_wf.checkIllegal(this, "DelegatedInkTrailPresenter"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "DelegatedInkTrailPresenter_updateInkTrailStartPoint, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Ink_requestPresenter = function () { + let r = cbb_wf.checkIllegal(this, "Ink"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Ink_requestPresenter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaMetadata_get_title = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaMetadata"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "title"); + + let result = cbb_wf.getValue(this, 'title'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaMetadata_get_title, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaMetadata_get_title, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaMetadata_set_title = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaMetadata"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "title", val); - if (cbb_wf.is_log) { - console.log("[*] MediaMetadata_set_title, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaMetadata"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'title', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaMetadata_set_title, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaMetadata_get_artist = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaMetadata"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "artist"); + + let result = cbb_wf.getValue(this, 'artist'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaMetadata_get_artist, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaMetadata_get_artist, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaMetadata_set_artist = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaMetadata"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "artist", val); - if (cbb_wf.is_log) { - console.log("[*] MediaMetadata_set_artist, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaMetadata"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'artist', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaMetadata_set_artist, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaMetadata_get_album = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaMetadata"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "album"); + + let result = cbb_wf.getValue(this, 'album'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaMetadata_get_album, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaMetadata_get_album, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaMetadata_set_album = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaMetadata"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "album", val); - if (cbb_wf.is_log) { - console.log("[*] MediaMetadata_set_album, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MediaMetadata_get_artwork = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaMetadata"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "artwork"); + cbb_wf.setValue(this, 'album', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaMetadata_get_artwork, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaMetadata_set_album, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaMetadata_get_artwork = function () { + let r = cbb_wf.checkIllegal(this, "MediaMetadata"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'artwork'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaMetadata_get_artwork, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaMetadata_set_artwork = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaMetadata"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "artwork", val); - if (cbb_wf.is_log) { - console.log("[*] MediaMetadata_set_artwork, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaMetadata"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'artwork', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaMetadata_set_artwork, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaSession_get_metadata = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "metadata"); + + let result = cbb_wf.getValue(this, 'metadata'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaSession_get_metadata, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSession_get_metadata, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaSession_set_metadata = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "metadata", val); - if (cbb_wf.is_log) { - console.log("[*] MediaSession_set_metadata, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.MediaSession_get_playbackState = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "MediaSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "playbackState"); + cbb_wf.setValue(this, 'metadata', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] MediaSession_get_playbackState, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSession_set_metadata, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaSession_get_playbackState = function () { + let r = cbb_wf.checkIllegal(this, "MediaSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'playbackState'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSession_get_playbackState, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.MediaSession_set_playbackState = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "playbackState", val); - if (cbb_wf.is_log) { - console.log("[*] MediaSession_set_playbackState, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "MediaSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'playbackState', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSession_set_playbackState, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.MediaSession_setActionHandler = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaSession_setActionHandler, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSession_setActionHandler, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaSession_setCameraActive = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaSession_setCameraActive, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSession_setCameraActive, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaSession_setMicrophoneActive = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaSession_setMicrophoneActive, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "MediaSession"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSession_setMicrophoneActive, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.MediaSession_setPositionState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "MediaSession"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] MediaSession_setPositionState, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.NavigationActivation_get_entry = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationActivation"); + let r = cbb_wf.checkIllegal(this, "MediaSession"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "entry"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationActivation_get_entry, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSession_setPositionState, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.NavigationActivation_get_from = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationActivation"); +this.MediaSource_get_sourceBuffers = function () { + let r = cbb_wf.checkIllegal(this, "MediaSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "from"); + + let result = cbb_wf.getValue(this, 'sourceBuffers'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationActivation_get_from, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_get_sourceBuffers, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.NavigationActivation_get_navigationType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "NavigationActivation"); +this.MediaSource_get_activeSourceBuffers = function () { + let r = cbb_wf.checkIllegal(this, "MediaSource"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "navigationType"); + + let result = cbb_wf.getValue(this, 'activeSourceBuffers'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] NavigationActivation_get_navigationType, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_get_activeSourceBuffers, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.Notification_requestPermission = function () { -let r = cbb_wf.checkIllegal(this, "Notification"); -let ctx = r[0]; -let result; -if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" +this.MediaSource_get_duration = function () { + let r = cbb_wf.checkIllegal(this, "MediaSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - console.log("[*] Notification_requestPermission, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', info); -} -return result; + let result = cbb_wf.getValue(this, 'duration'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_get_duration, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaSource_set_duration = function (val) { + let r = cbb_wf.checkIllegal(this, "MediaSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'duration', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_set_duration, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaSource_get_onsourceopen = function () { + let r = cbb_wf.checkIllegal(this, "MediaSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onsourceopen'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_get_onsourceopen, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaSource_set_onsourceopen = function (val) { + let r = cbb_wf.checkIllegal(this, "MediaSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onsourceopen', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_set_onsourceopen, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaSource_get_onsourceended = function () { + let r = cbb_wf.checkIllegal(this, "MediaSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onsourceended'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_get_onsourceended, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaSource_set_onsourceended = function (val) { + let r = cbb_wf.checkIllegal(this, "MediaSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onsourceended', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_set_onsourceended, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaSource_get_onsourceclose = function () { + let r = cbb_wf.checkIllegal(this, "MediaSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onsourceclose'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_get_onsourceclose, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaSource_set_onsourceclose = function (val) { + let r = cbb_wf.checkIllegal(this, "MediaSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onsourceclose', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_set_onsourceclose, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaSource_get_readyState = function () { + let r = cbb_wf.checkIllegal(this, "MediaSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'readyState'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_get_readyState, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaSource_addSourceBuffer = function () { + let r = cbb_wf.checkIllegal(this, "MediaSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_addSourceBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MediaSource_clearLiveSeekableRange = function () { + let r = cbb_wf.checkIllegal(this, "MediaSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_clearLiveSeekableRange, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MediaSource_endOfStream = function () { + let r = cbb_wf.checkIllegal(this, "MediaSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_endOfStream, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MediaSource_removeSourceBuffer = function () { + let r = cbb_wf.checkIllegal(this, "MediaSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_removeSourceBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MediaSource_setLiveSeekableRange = function () { + let r = cbb_wf.checkIllegal(this, "MediaSource"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaSource_setLiveSeekableRange, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SourceBuffer_get_mode = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'mode'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_get_mode, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SourceBuffer_set_mode = function (val) { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'mode', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_set_mode, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SourceBuffer_get_updating = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'updating'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_get_updating, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SourceBuffer_get_buffered = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'buffered'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_get_buffered, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SourceBuffer_get_timestampOffset = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'timestampOffset'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_get_timestampOffset, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SourceBuffer_set_timestampOffset = function (val) { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'timestampOffset', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_set_timestampOffset, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SourceBuffer_get_appendWindowStart = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'appendWindowStart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_get_appendWindowStart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SourceBuffer_set_appendWindowStart = function (val) { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'appendWindowStart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_set_appendWindowStart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SourceBuffer_get_appendWindowEnd = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'appendWindowEnd'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_get_appendWindowEnd, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SourceBuffer_set_appendWindowEnd = function (val) { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'appendWindowEnd', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_set_appendWindowEnd, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SourceBuffer_get_onupdatestart = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onupdatestart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_get_onupdatestart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SourceBuffer_set_onupdatestart = function (val) { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onupdatestart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_set_onupdatestart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SourceBuffer_get_onupdate = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onupdate'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_get_onupdate, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SourceBuffer_set_onupdate = function (val) { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onupdate', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_set_onupdate, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SourceBuffer_get_onupdateend = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onupdateend'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_get_onupdateend, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SourceBuffer_set_onupdateend = function (val) { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onupdateend', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_set_onupdateend, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SourceBuffer_get_onerror = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onerror'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SourceBuffer_set_onerror = function (val) { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SourceBuffer_get_onabort = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onabort'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_get_onabort, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SourceBuffer_set_onabort = function (val) { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onabort', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_set_onabort, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SourceBuffer_abort = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_abort, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SourceBuffer_appendBuffer = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_appendBuffer, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SourceBuffer_changeType = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_changeType, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SourceBuffer_remove = function () { + let r = cbb_wf.checkIllegal(this, "SourceBuffer"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBuffer_remove, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SourceBufferList_get_length = function () { + let r = cbb_wf.checkIllegal(this, "SourceBufferList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'length'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBufferList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SourceBufferList_get_onaddsourcebuffer = function () { + let r = cbb_wf.checkIllegal(this, "SourceBufferList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onaddsourcebuffer'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBufferList_get_onaddsourcebuffer, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SourceBufferList_set_onaddsourcebuffer = function (val) { + let r = cbb_wf.checkIllegal(this, "SourceBufferList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onaddsourcebuffer', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBufferList_set_onaddsourcebuffer, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SourceBufferList_get_onremovesourcebuffer = function () { + let r = cbb_wf.checkIllegal(this, "SourceBufferList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onremovesourcebuffer'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBufferList_get_onremovesourcebuffer, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SourceBufferList_set_onremovesourcebuffer = function (val) { + let r = cbb_wf.checkIllegal(this, "SourceBufferList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onremovesourcebuffer', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SourceBufferList_set_onremovesourcebuffer, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaStreamTrack_get_kind = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'kind'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_get_kind, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrack_get_id = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'id'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_get_id, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrack_get_label = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'label'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_get_label, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrack_get_enabled = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'enabled'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_get_enabled, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrack_set_enabled = function (val) { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'enabled', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_set_enabled, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaStreamTrack_get_muted = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'muted'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_get_muted, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrack_get_onmute = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onmute'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_get_onmute, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrack_set_onmute = function (val) { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onmute', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_set_onmute, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaStreamTrack_get_onunmute = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onunmute'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_get_onunmute, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrack_set_onunmute = function (val) { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onunmute', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_set_onunmute, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaStreamTrack_get_readyState = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'readyState'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_get_readyState, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrack_get_onended = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onended'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_get_onended, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrack_set_onended = function (val) { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onended', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_set_onended, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaStreamTrack_get_contentHint = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'contentHint'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_get_contentHint, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrack_set_contentHint = function (val) { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'contentHint', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_set_contentHint, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaStreamTrack_applyConstraints = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_applyConstraints, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MediaStreamTrack_clone = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_clone, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MediaStreamTrack_getCapabilities = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_getCapabilities, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MediaStreamTrack_getConstraints = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_getConstraints, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MediaStreamTrack_getSettings = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_getSettings, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MediaStreamTrack_stop = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_stop, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MediaStreamTrack_get_oncapturehandlechange = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'oncapturehandlechange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_get_oncapturehandlechange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrack_set_oncapturehandlechange = function (val) { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'oncapturehandlechange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_set_oncapturehandlechange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.MediaStreamTrack_getCaptureHandle = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrack"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "MediaStreamTrack_getCaptureHandle, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.NavigateEvent_get_navigationType = function () { + let r = cbb_wf.checkIllegal(this, "NavigateEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'navigationType'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigateEvent_get_navigationType, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigateEvent_get_destination = function () { + let r = cbb_wf.checkIllegal(this, "NavigateEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'destination'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigateEvent_get_destination, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigateEvent_get_canTransition = function () { + let r = cbb_wf.checkIllegal(this, "NavigateEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'canTransition'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigateEvent_get_canTransition, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigateEvent_get_userInitiated = function () { + let r = cbb_wf.checkIllegal(this, "NavigateEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'userInitiated'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigateEvent_get_userInitiated, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigateEvent_get_hashChange = function () { + let r = cbb_wf.checkIllegal(this, "NavigateEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'hashChange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigateEvent_get_hashChange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigateEvent_get_signal = function () { + let r = cbb_wf.checkIllegal(this, "NavigateEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'signal'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigateEvent_get_signal, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigateEvent_get_formData = function () { + let r = cbb_wf.checkIllegal(this, "NavigateEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'formData'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigateEvent_get_formData, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigateEvent_get_downloadRequest = function () { + let r = cbb_wf.checkIllegal(this, "NavigateEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'downloadRequest'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigateEvent_get_downloadRequest, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigateEvent_get_info = function () { + let r = cbb_wf.checkIllegal(this, "NavigateEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'info'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigateEvent_get_info, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigateEvent_restoreScroll = function () { + let r = cbb_wf.checkIllegal(this, "NavigateEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigateEvent_restoreScroll, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.NavigateEvent_transitionWhile = function () { + let r = cbb_wf.checkIllegal(this, "NavigateEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigateEvent_transitionWhile, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Navigation_get_currentEntry = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'currentEntry'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_get_currentEntry, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Navigation_get_transition = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'transition'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_get_transition, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Navigation_get_canGoBack = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'canGoBack'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_get_canGoBack, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Navigation_get_canGoForward = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'canGoForward'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_get_canGoForward, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Navigation_get_onnavigate = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onnavigate'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_get_onnavigate, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Navigation_set_onnavigate = function (val) { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onnavigate', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_set_onnavigate, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.Navigation_get_onnavigatesuccess = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onnavigatesuccess'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_get_onnavigatesuccess, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Navigation_set_onnavigatesuccess = function (val) { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onnavigatesuccess', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_set_onnavigatesuccess, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.Navigation_get_onnavigateerror = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onnavigateerror'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_get_onnavigateerror, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Navigation_set_onnavigateerror = function (val) { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onnavigateerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_set_onnavigateerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.Navigation_get_oncurrententrychange = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'oncurrententrychange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_get_oncurrententrychange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.Navigation_set_oncurrententrychange = function (val) { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'oncurrententrychange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_set_oncurrententrychange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.Navigation_back = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_back, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Navigation_entries = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Navigation_forward = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_forward, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Navigation_navigate = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_navigate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Navigation_reload = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_reload, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Navigation_traverseTo = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_traverseTo, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Navigation_updateCurrentEntry = function () { + let r = cbb_wf.checkIllegal(this, "Navigation"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Navigation_updateCurrentEntry, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.NavigationCurrentEntryChangeEvent_get_navigationType = function () { + let r = cbb_wf.checkIllegal(this, "NavigationCurrentEntryChangeEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'navigationType'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationCurrentEntryChangeEvent_get_navigationType, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationCurrentEntryChangeEvent_get_from = function () { + let r = cbb_wf.checkIllegal(this, "NavigationCurrentEntryChangeEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'from'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationCurrentEntryChangeEvent_get_from, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationDestination_get_key = function () { + let r = cbb_wf.checkIllegal(this, "NavigationDestination"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'key'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationDestination_get_key, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationDestination_get_id = function () { + let r = cbb_wf.checkIllegal(this, "NavigationDestination"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'id'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationDestination_get_id, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationDestination_get_url = function () { + let r = cbb_wf.checkIllegal(this, "NavigationDestination"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'url'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationDestination_get_url, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationDestination_get_index = function () { + let r = cbb_wf.checkIllegal(this, "NavigationDestination"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'index'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationDestination_get_index, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationDestination_get_sameDocument = function () { + let r = cbb_wf.checkIllegal(this, "NavigationDestination"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'sameDocument'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationDestination_get_sameDocument, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationDestination_getState = function () { + let r = cbb_wf.checkIllegal(this, "NavigationDestination"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationDestination_getState, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.NavigationHistoryEntry_get_key = function () { + let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'key'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationHistoryEntry_get_key, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationHistoryEntry_get_id = function () { + let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'id'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationHistoryEntry_get_id, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationHistoryEntry_get_url = function () { + let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'url'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationHistoryEntry_get_url, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationHistoryEntry_get_index = function () { + let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'index'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationHistoryEntry_get_index, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationHistoryEntry_get_sameDocument = function () { + let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'sameDocument'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationHistoryEntry_get_sameDocument, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationHistoryEntry_get_ondispose = function () { + let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ondispose'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationHistoryEntry_get_ondispose, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationHistoryEntry_set_ondispose = function (val) { + let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'ondispose', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationHistoryEntry_set_ondispose, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.NavigationHistoryEntry_getState = function () { + let r = cbb_wf.checkIllegal(this, "NavigationHistoryEntry"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationHistoryEntry_getState, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.NavigationTransition_get_navigationType = function () { + let r = cbb_wf.checkIllegal(this, "NavigationTransition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'navigationType'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationTransition_get_navigationType, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationTransition_get_from = function () { + let r = cbb_wf.checkIllegal(this, "NavigationTransition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'from'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationTransition_get_from, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationTransition_get_finished = function () { + let r = cbb_wf.checkIllegal(this, "NavigationTransition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'finished'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigationTransition_get_finished, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigatorUAData_get_brands = function () { + let r = cbb_wf.checkIllegal(this, "NavigatorUAData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'brands'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigatorUAData_get_brands, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigatorUAData_get_mobile = function () { + let r = cbb_wf.checkIllegal(this, "NavigatorUAData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'mobile'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigatorUAData_get_mobile, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigatorUAData_get_platform = function () { + let r = cbb_wf.checkIllegal(this, "NavigatorUAData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'platform'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigatorUAData_get_platform, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigatorUAData_getHighEntropyValues = function () { + let r = cbb_wf.checkIllegal(this, "NavigatorUAData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigatorUAData_getHighEntropyValues, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.NavigatorUAData_toJSON = function () { + let r = cbb_wf.checkIllegal(this, "NavigatorUAData"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "NavigatorUAData_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; } this.Notification_get_onclick = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onclick"); + + let result = cbb_wf.getValue(this, 'onclick'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_onclick, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_onclick, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_set_onclick = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Notification"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onclick", val); - if (cbb_wf.is_log) { - console.log("[*] Notification_set_onclick, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "Notification"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onclick', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_set_onclick, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Notification_get_onshow = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onshow"); + + let result = cbb_wf.getValue(this, 'onshow'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_onshow, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_onshow, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_set_onshow = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Notification"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onshow", val); - if (cbb_wf.is_log) { - console.log("[*] Notification_set_onshow, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "Notification"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onshow', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_set_onshow, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Notification_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + + let result = cbb_wf.getValue(this, 'onerror'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Notification"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] Notification_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "Notification"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Notification_get_onclose = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onclose"); + + let result = cbb_wf.getValue(this, 'onclose'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_onclose, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_onclose, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_set_onclose = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Notification"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onclose", val); - if (cbb_wf.is_log) { - console.log("[*] Notification_set_onclose, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "Notification"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onclose', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_set_onclose, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Notification_get_title = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "title"); + + let result = cbb_wf.getValue(this, 'title'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_title, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_title, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_get_dir = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "dir"); + + let result = cbb_wf.getValue(this, 'dir'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_dir, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_dir, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_get_lang = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lang"); + + let result = cbb_wf.getValue(this, 'lang'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_lang, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_lang, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_get_body = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "body"); + + let result = cbb_wf.getValue(this, 'body'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_body, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_body, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_get_tag = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "tag"); + + let result = cbb_wf.getValue(this, 'tag'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_tag, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_tag, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_get_icon = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "icon"); + + let result = cbb_wf.getValue(this, 'icon'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_icon, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_icon, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_get_badge = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "badge"); + + let result = cbb_wf.getValue(this, 'badge'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_badge, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_badge, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_get_vibrate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "vibrate"); + + let result = cbb_wf.getValue(this, 'vibrate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_vibrate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_vibrate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_get_timestamp = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "timestamp"); + + let result = cbb_wf.getValue(this, 'timestamp'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_timestamp, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_timestamp, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_get_renotify = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "renotify"); + + let result = cbb_wf.getValue(this, 'renotify'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_renotify, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_renotify, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_get_silent = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "silent"); + + let result = cbb_wf.getValue(this, 'silent'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_silent, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_silent, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_get_requireInteraction = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "requireInteraction"); + + let result = cbb_wf.getValue(this, 'requireInteraction'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_requireInteraction, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_requireInteraction, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_get_data = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "data"); + + let result = cbb_wf.getValue(this, 'data'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_data, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_data, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_get_actions = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "actions"); + + let result = cbb_wf.getValue(this, 'actions'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_actions, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_actions, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.Notification_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Notification"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Notification_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.Notification_get_image = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "image"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] Notification_get_image, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.PageSwapEvent_get_activation = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PageSwapEvent"); +this.Notification_get_image = function () { + let r = cbb_wf.checkIllegal(this, "Notification"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "activation"); + + let result = cbb_wf.getValue(this, 'image'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PageSwapEvent_get_activation, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Notification_get_image, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.PerformanceLongAnimationFrameTiming_get_renderStart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceLongAnimationFrameTiming"); +this.PaymentInstruments_clear = function () { + let r = cbb_wf.checkIllegal(this, "PaymentInstruments"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "renderStart"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceLongAnimationFrameTiming_get_renderStart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentInstruments_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.PerformanceLongAnimationFrameTiming_get_styleAndLayoutStart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceLongAnimationFrameTiming"); +this.PaymentInstruments_delete = function () { + let r = cbb_wf.checkIllegal(this, "PaymentInstruments"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "styleAndLayoutStart"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceLongAnimationFrameTiming_get_styleAndLayoutStart, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentInstruments_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.PerformanceLongAnimationFrameTiming_get_firstUIEventTimestamp = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceLongAnimationFrameTiming"); +this.PaymentInstruments_get = function () { + let r = cbb_wf.checkIllegal(this, "PaymentInstruments"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "firstUIEventTimestamp"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceLongAnimationFrameTiming_get_firstUIEventTimestamp, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentInstruments_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.PerformanceLongAnimationFrameTiming_get_blockingDuration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceLongAnimationFrameTiming"); +this.PaymentInstruments_has = function () { + let r = cbb_wf.checkIllegal(this, "PaymentInstruments"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "blockingDuration"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceLongAnimationFrameTiming_get_blockingDuration, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentInstruments_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.PerformanceLongAnimationFrameTiming_get_scripts = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceLongAnimationFrameTiming"); +this.PaymentInstruments_keys = function () { + let r = cbb_wf.checkIllegal(this, "PaymentInstruments"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "scripts"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceLongAnimationFrameTiming_get_scripts, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentInstruments_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.PerformanceLongAnimationFrameTiming_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceLongAnimationFrameTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceLongAnimationFrameTiming_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.PerformanceScriptTiming_get_invokerType = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); +this.PaymentInstruments_set = function () { + let r = cbb_wf.checkIllegal(this, "PaymentInstruments"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "invokerType"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceScriptTiming_get_invokerType, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentInstruments_set, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.PerformanceScriptTiming_get_invoker = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); +this.PaymentManager_get_instruments = function () { + let r = cbb_wf.checkIllegal(this, "PaymentManager"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "invoker"); + + let result = cbb_wf.getValue(this, 'instruments'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceScriptTiming_get_invoker, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentManager_get_instruments, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.PerformanceScriptTiming_get_windowAttribution = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); +this.PaymentManager_get_userHint = function () { + let r = cbb_wf.checkIllegal(this, "PaymentManager"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "windowAttribution"); + + let result = cbb_wf.getValue(this, 'userHint'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceScriptTiming_get_windowAttribution, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentManager_get_userHint, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.PerformanceScriptTiming_get_executionStart = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); +this.PaymentManager_set_userHint = function (val) { + let r = cbb_wf.checkIllegal(this, "PaymentManager"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "executionStart"); + cbb_wf.setValue(this, 'userHint', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceScriptTiming_get_executionStart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentManager_set_userHint, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - -this.PerformanceScriptTiming_get_forcedStyleAndLayoutDuration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); +this.PaymentManager_enableDelegations = function () { + let r = cbb_wf.checkIllegal(this, "PaymentManager"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "forcedStyleAndLayoutDuration"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceScriptTiming_get_forcedStyleAndLayoutDuration, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentManager_enableDelegations, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.PerformanceScriptTiming_get_pauseDuration = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); +this.PaymentRequestUpdateEvent_updateWith = function () { + let r = cbb_wf.checkIllegal(this, "PaymentRequestUpdateEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pauseDuration"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceScriptTiming_get_pauseDuration, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PaymentRequestUpdateEvent_updateWith, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.PerformanceScriptTiming_get_window = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "window"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceScriptTiming_get_window, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.PerformanceScriptTiming_get_sourceURL = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "sourceURL"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceScriptTiming_get_sourceURL, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.PerformanceScriptTiming_get_sourceFunctionName = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "sourceFunctionName"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceScriptTiming_get_sourceFunctionName, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.PerformanceScriptTiming_get_sourceCharPosition = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "sourceCharPosition"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PerformanceScriptTiming_get_sourceCharPosition, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.PerformanceScriptTiming_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PerformanceScriptTiming_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.PeriodicSyncManager_getTags = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PeriodicSyncManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PeriodicSyncManager_getTags, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PeriodicSyncManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PeriodicSyncManager_getTags, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PeriodicSyncManager_register = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PeriodicSyncManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PeriodicSyncManager_register, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PeriodicSyncManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PeriodicSyncManager_register, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PeriodicSyncManager_unregister = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PeriodicSyncManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PeriodicSyncManager_unregister, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PeriodicSyncManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PeriodicSyncManager_unregister, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PermissionStatus_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PermissionStatus"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PermissionStatus_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PermissionStatus_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PermissionStatus_get_state = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PermissionStatus"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "state"); + + let result = cbb_wf.getValue(this, 'state'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PermissionStatus_get_state, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PermissionStatus_get_state, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PermissionStatus_get_onchange = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PermissionStatus"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onchange"); + + let result = cbb_wf.getValue(this, 'onchange'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PermissionStatus_get_onchange, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PermissionStatus_get_onchange, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PermissionStatus_set_onchange = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PermissionStatus"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onchange", val); - if (cbb_wf.is_log) { - console.log("[*] PermissionStatus_set_onchange, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "PermissionStatus"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onchange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PermissionStatus_set_onchange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.Permissions_query = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "Permissions"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] Permissions_query, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "Permissions"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Permissions_query, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.PictureInPictureEvent_get_pictureInPictureWindow = function () { + let r = cbb_wf.checkIllegal(this, "PictureInPictureEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'pictureInPictureWindow'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PictureInPictureEvent_get_pictureInPictureWindow, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PictureInPictureWindow_get_width = function () { + let r = cbb_wf.checkIllegal(this, "PictureInPictureWindow"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'width'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PictureInPictureWindow_get_width, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PictureInPictureWindow_get_height = function () { + let r = cbb_wf.checkIllegal(this, "PictureInPictureWindow"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'height'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PictureInPictureWindow_get_height, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PictureInPictureWindow_get_onresize = function () { + let r = cbb_wf.checkIllegal(this, "PictureInPictureWindow"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onresize'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PictureInPictureWindow_get_onresize, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PictureInPictureWindow_set_onresize = function (val) { + let r = cbb_wf.checkIllegal(this, "PictureInPictureWindow"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onresize', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PictureInPictureWindow_set_onresize, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.PushManager_getSubscription = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PushManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PushManager_getSubscription, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PushManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PushManager_getSubscription, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PushManager_permissionState = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PushManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PushManager_permissionState, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PushManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PushManager_permissionState, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PushManager_subscribe = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PushManager"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PushManager_subscribe, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PushManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PushManager_subscribe, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PushSubscription_get_endpoint = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PushSubscription"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "endpoint"); + + let result = cbb_wf.getValue(this, 'endpoint'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PushSubscription_get_endpoint, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PushSubscription_get_endpoint, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PushSubscription_get_expirationTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PushSubscription"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "expirationTime"); + + let result = cbb_wf.getValue(this, 'expirationTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PushSubscription_get_expirationTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PushSubscription_get_expirationTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PushSubscription_get_options = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PushSubscription"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "options"); + + let result = cbb_wf.getValue(this, 'options'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PushSubscription_get_options, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PushSubscription_get_options, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PushSubscription_getKey = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PushSubscription"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PushSubscription_getKey, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PushSubscription"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PushSubscription_getKey, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PushSubscription_toJSON = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PushSubscription"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PushSubscription_toJSON, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PushSubscription"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PushSubscription_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PushSubscription_unsubscribe = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "PushSubscription"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] PushSubscription_unsubscribe, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "PushSubscription"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PushSubscription_unsubscribe, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.PushSubscriptionOptions_get_userVisibleOnly = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PushSubscriptionOptions"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "userVisibleOnly"); + + let result = cbb_wf.getValue(this, 'userVisibleOnly'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PushSubscriptionOptions_get_userVisibleOnly, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PushSubscriptionOptions_get_userVisibleOnly, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.PushSubscriptionOptions_get_applicationServerKey = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "PushSubscriptionOptions"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "applicationServerKey"); + + let result = cbb_wf.getValue(this, 'applicationServerKey'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] PushSubscriptionOptions_get_applicationServerKey, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "PushSubscriptionOptions_get_applicationServerKey, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RemotePlayback_get_state = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RemotePlayback"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "state"); + + let result = cbb_wf.getValue(this, 'state'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RemotePlayback_get_state, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RemotePlayback_get_state, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RemotePlayback_get_onconnecting = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RemotePlayback"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onconnecting"); + + let result = cbb_wf.getValue(this, 'onconnecting'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RemotePlayback_get_onconnecting, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RemotePlayback_get_onconnecting, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RemotePlayback_set_onconnecting = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RemotePlayback"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onconnecting", val); - if (cbb_wf.is_log) { - console.log("[*] RemotePlayback_set_onconnecting, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RemotePlayback"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onconnecting', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RemotePlayback_set_onconnecting, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RemotePlayback_get_onconnect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RemotePlayback"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onconnect"); + + let result = cbb_wf.getValue(this, 'onconnect'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RemotePlayback_get_onconnect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RemotePlayback_get_onconnect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RemotePlayback_set_onconnect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RemotePlayback"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onconnect", val); - if (cbb_wf.is_log) { - console.log("[*] RemotePlayback_set_onconnect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.RemotePlayback_get_ondisconnect = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "RemotePlayback"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "ondisconnect"); + cbb_wf.setValue(this, 'onconnect', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] RemotePlayback_get_ondisconnect, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RemotePlayback_set_onconnect, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.RemotePlayback_get_ondisconnect = function () { + let r = cbb_wf.checkIllegal(this, "RemotePlayback"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ondisconnect'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RemotePlayback_get_ondisconnect, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.RemotePlayback_set_ondisconnect = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RemotePlayback"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "ondisconnect", val); - if (cbb_wf.is_log) { - console.log("[*] RemotePlayback_set_ondisconnect, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "RemotePlayback"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'ondisconnect', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RemotePlayback_set_ondisconnect, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.RemotePlayback_cancelWatchAvailability = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RemotePlayback"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RemotePlayback_cancelWatchAvailability, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RemotePlayback"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RemotePlayback_cancelWatchAvailability, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RemotePlayback_prompt = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RemotePlayback"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RemotePlayback_prompt, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "RemotePlayback"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RemotePlayback_prompt, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.RemotePlayback_watchAvailability = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "RemotePlayback"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] RemotePlayback_watchAvailability, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.ScrollTimeline_get_source = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScrollTimeline"); + let r = cbb_wf.checkIllegal(this, "RemotePlayback"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "source"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScrollTimeline_get_source, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "RemotePlayback_watchAvailability, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.ScrollTimeline_get_axis = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ScrollTimeline"); +this.Scheduler_postTask = function () { + let r = cbb_wf.checkIllegal(this, "Scheduler"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "axis"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ScrollTimeline_get_axis, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "Scheduler_postTask, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.ViewTimeline_get_subject = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ViewTimeline"); +this.TaskController_setPriority = function () { + let r = cbb_wf.checkIllegal(this, "TaskController"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "subject"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ViewTimeline_get_subject, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TaskController_setPriority, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.ViewTimeline_get_startOffset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ViewTimeline"); +this.TaskPriorityChangeEvent_get_previousPriority = function () { + let r = cbb_wf.checkIllegal(this, "TaskPriorityChangeEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "startOffset"); + + let result = cbb_wf.getValue(this, 'previousPriority'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ViewTimeline_get_startOffset, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TaskPriorityChangeEvent_get_previousPriority, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - -this.ViewTimeline_get_endOffset = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "ViewTimeline"); +this.TaskSignal_get_priority = function () { + let r = cbb_wf.checkIllegal(this, "TaskSignal"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "endOffset"); + + let result = cbb_wf.getValue(this, 'priority'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] ViewTimeline_get_endOffset, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TaskSignal_get_priority, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } +this.TaskSignal_get_onprioritychange = function () { + let r = cbb_wf.checkIllegal(this, "TaskSignal"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'onprioritychange'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TaskSignal_get_onprioritychange, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TaskSignal_set_onprioritychange = function (val) { + let r = cbb_wf.checkIllegal(this, "TaskSignal"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onprioritychange', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TaskSignal_set_onprioritychange, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SharedWorker_get_port = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SharedWorker"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "port"); + + let result = cbb_wf.getValue(this, 'port'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SharedWorker_get_port, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SharedWorker_get_port, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SharedWorker_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SharedWorker"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + + let result = cbb_wf.getValue(this, 'onerror'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SharedWorker_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SharedWorker_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SharedWorker_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SharedWorker"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] SharedWorker_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SpeechSynthesis_get_pending = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let r = cbb_wf.checkIllegal(this, "SharedWorker"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pending"); + cbb_wf.setValue(this, 'onerror', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesis_get_pending, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SharedWorker_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); } - return result; } - -this.SpeechSynthesis_get_speaking = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "speaking"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesis_get_speaking, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SpeechSynthesis_get_paused = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "paused"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesis_get_paused, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SpeechSynthesis_get_onvoiceschanged = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result = cbb_wf.getValue(this, "onvoiceschanged"); - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesis_get_onvoiceschanged, this =>", this + '', ", result =>", result + '', info); - } - return result; -} - -this.SpeechSynthesis_set_onvoiceschanged = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onvoiceschanged", val); - if (cbb_wf.is_log) { - console.log("[*] SpeechSynthesis_set_onvoiceschanged, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SpeechSynthesis_cancel = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SpeechSynthesis_cancel, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SpeechSynthesis_getVoices = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SpeechSynthesis_getVoices, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SpeechSynthesis_pause = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SpeechSynthesis_pause, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SpeechSynthesis_resume = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SpeechSynthesis_resume, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } -this.SpeechSynthesis_speak = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] SpeechSynthesis_speak, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - - } this.SpeechSynthesisErrorEvent_get_error = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisErrorEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "error"); + + let result = cbb_wf.getValue(this, 'error'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisErrorEvent_get_error, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisErrorEvent_get_error, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisEvent_get_utterance = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "utterance"); + + let result = cbb_wf.getValue(this, 'utterance'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisEvent_get_utterance, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisEvent_get_utterance, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisEvent_get_charIndex = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "charIndex"); + + let result = cbb_wf.getValue(this, 'charIndex'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisEvent_get_charIndex, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisEvent_get_charIndex, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisEvent_get_charLength = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "charLength"); + + let result = cbb_wf.getValue(this, 'charLength'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisEvent_get_charLength, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisEvent_get_charLength, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisEvent_get_elapsedTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "elapsedTime"); + + let result = cbb_wf.getValue(this, 'elapsedTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisEvent_get_elapsedTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisEvent_get_elapsedTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisEvent_get_name = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisEvent"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + + let result = cbb_wf.getValue(this, 'name'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisEvent_get_name, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisEvent_get_name, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisUtterance_get_text = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "text"); + + let result = cbb_wf.getValue(this, 'text'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisUtterance_get_text, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_get_text, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisUtterance_set_text = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "text", val); - if (cbb_wf.is_log) { - console.log("[*] SpeechSynthesisUtterance_set_text, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'text', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_set_text, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SpeechSynthesisUtterance_get_lang = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lang"); + + let result = cbb_wf.getValue(this, 'lang'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisUtterance_get_lang, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_get_lang, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisUtterance_set_lang = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "lang", val); - if (cbb_wf.is_log) { - console.log("[*] SpeechSynthesisUtterance_set_lang, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'lang', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_set_lang, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SpeechSynthesisUtterance_get_voice = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "voice"); + + let result = cbb_wf.getValue(this, 'voice'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisUtterance_get_voice, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_get_voice, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisUtterance_set_voice = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "voice", val); - if (cbb_wf.is_log) { - console.log("[*] SpeechSynthesisUtterance_set_voice, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'voice', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_set_voice, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SpeechSynthesisUtterance_get_volume = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "volume"); + + let result = cbb_wf.getValue(this, 'volume'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisUtterance_get_volume, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_get_volume, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisUtterance_set_volume = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "volume", val); - if (cbb_wf.is_log) { - console.log("[*] SpeechSynthesisUtterance_set_volume, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'volume', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_set_volume, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SpeechSynthesisUtterance_get_rate = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "rate"); + + let result = cbb_wf.getValue(this, 'rate'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisUtterance_get_rate, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_get_rate, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisUtterance_set_rate = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "rate", val); - if (cbb_wf.is_log) { - console.log("[*] SpeechSynthesisUtterance_set_rate, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'rate', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_set_rate, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SpeechSynthesisUtterance_get_pitch = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "pitch"); + + let result = cbb_wf.getValue(this, 'pitch'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisUtterance_get_pitch, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_get_pitch, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisUtterance_set_pitch = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "pitch", val); - if (cbb_wf.is_log) { - console.log("[*] SpeechSynthesisUtterance_set_pitch, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'pitch', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_set_pitch, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SpeechSynthesisUtterance_get_onstart = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onstart"); + + let result = cbb_wf.getValue(this, 'onstart'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisUtterance_get_onstart, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_get_onstart, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisUtterance_set_onstart = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onstart", val); - if (cbb_wf.is_log) { - console.log("[*] SpeechSynthesisUtterance_set_onstart, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onstart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_set_onstart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SpeechSynthesisUtterance_get_onend = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onend"); + + let result = cbb_wf.getValue(this, 'onend'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisUtterance_get_onend, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_get_onend, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisUtterance_set_onend = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onend", val); - if (cbb_wf.is_log) { - console.log("[*] SpeechSynthesisUtterance_set_onend, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onend', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_set_onend, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SpeechSynthesisUtterance_get_onerror = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onerror"); + + let result = cbb_wf.getValue(this, 'onerror'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisUtterance_get_onerror, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisUtterance_set_onerror = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onerror", val); - if (cbb_wf.is_log) { - console.log("[*] SpeechSynthesisUtterance_set_onerror, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SpeechSynthesisUtterance_get_onpause = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onpause"); + + let result = cbb_wf.getValue(this, 'onpause'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisUtterance_get_onpause, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_get_onpause, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisUtterance_set_onpause = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onpause", val); - if (cbb_wf.is_log) { - console.log("[*] SpeechSynthesisUtterance_set_onpause, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onpause', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_set_onpause, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SpeechSynthesisUtterance_get_onresume = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onresume"); + + let result = cbb_wf.getValue(this, 'onresume'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisUtterance_get_onresume, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_get_onresume, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisUtterance_set_onresume = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onresume", val); - if (cbb_wf.is_log) { - console.log("[*] SpeechSynthesisUtterance_set_onresume, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + cbb_wf.setValue(this, 'onresume', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_set_onresume, this =>", toString.call(this), ", val => ", '' + val, info); + } +} this.SpeechSynthesisUtterance_get_onmark = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onmark"); + + let result = cbb_wf.getValue(this, 'onmark'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisUtterance_get_onmark, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_get_onmark, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisUtterance_set_onmark = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onmark", val); - if (cbb_wf.is_log) { - console.log("[*] SpeechSynthesisUtterance_set_onmark, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SpeechSynthesisUtterance_get_onboundary = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "onboundary"); + cbb_wf.setValue(this, 'onmark', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisUtterance_get_onboundary, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_set_onmark, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechSynthesisUtterance_get_onboundary = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onboundary'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_get_onboundary, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.SpeechSynthesisUtterance_set_onboundary = function (val) { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - cbb_wf.setValue(this, "onboundary", val); - if (cbb_wf.is_log) { - console.log("[*] SpeechSynthesisUtterance_set_onboundary, this =>", this + '', ", val =>", val + '', ". 暂时未处理"); - } - return; - } -this.SpeechSynthesisVoice_get_voiceURI = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisVoice"); + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisUtterance"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "voiceURI"); + cbb_wf.setValue(this, 'onboundary', val); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisVoice_get_voiceURI, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "SpeechSynthesisUtterance_set_onboundary, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.TrustedHTML_toJSON = function () { + let r = cbb_wf.checkIllegal(this, "TrustedHTML"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedHTML_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.SpeechSynthesisVoice_get_name = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisVoice"); +this.TrustedHTML_toString = function () { + let r = cbb_wf.checkIllegal(this, "TrustedHTML"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "name"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisVoice_get_name, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedHTML_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.SpeechSynthesisVoice_get_lang = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisVoice"); +this.TrustedScript_toJSON = function () { + let r = cbb_wf.checkIllegal(this, "TrustedScript"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "lang"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisVoice_get_lang, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedScript_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.SpeechSynthesisVoice_get_localService = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisVoice"); +this.TrustedScript_toString = function () { + let r = cbb_wf.checkIllegal(this, "TrustedScript"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "localService"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisVoice_get_localService, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedScript_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } - -this.SpeechSynthesisVoice_get_default = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "SpeechSynthesisVoice"); +this.TrustedScriptURL_toJSON = function () { + let r = cbb_wf.checkIllegal(this, "TrustedScriptURL"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "default"); + let result; if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] SpeechSynthesisVoice_get_default, this =>", this + '', ", result =>", result + '', info); + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedScriptURL_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.TrustedScriptURL_toString = function () { + let r = cbb_wf.checkIllegal(this, "TrustedScriptURL"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedScriptURL_toString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.TrustedTypePolicy_get_name = function () { + let r = cbb_wf.checkIllegal(this, "TrustedTypePolicy"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'name'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedTypePolicy_get_name, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TrustedTypePolicy_createHTML = function () { + let r = cbb_wf.checkIllegal(this, "TrustedTypePolicy"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedTypePolicy_createHTML, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.TrustedTypePolicy_createScript = function () { + let r = cbb_wf.checkIllegal(this, "TrustedTypePolicy"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedTypePolicy_createScript, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.TrustedTypePolicy_createScriptURL = function () { + let r = cbb_wf.checkIllegal(this, "TrustedTypePolicy"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedTypePolicy_createScriptURL, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.TrustedTypePolicyFactory_get_emptyHTML = function () { + let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'emptyHTML'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedTypePolicyFactory_get_emptyHTML, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TrustedTypePolicyFactory_get_emptyScript = function () { + let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'emptyScript'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedTypePolicyFactory_get_emptyScript, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TrustedTypePolicyFactory_get_defaultPolicy = function () { + let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'defaultPolicy'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedTypePolicyFactory_get_defaultPolicy, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TrustedTypePolicyFactory_createPolicy = function () { + let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedTypePolicyFactory_createPolicy, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.TrustedTypePolicyFactory_getAttributeType = function () { + let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedTypePolicyFactory_getAttributeType, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.TrustedTypePolicyFactory_getPropertyType = function () { + let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedTypePolicyFactory_getPropertyType, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.TrustedTypePolicyFactory_getTypeMapping = function () { + let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedTypePolicyFactory_getTypeMapping, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.TrustedTypePolicyFactory_isHTML = function () { + let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedTypePolicyFactory_isHTML, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.TrustedTypePolicyFactory_isScript = function () { + let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedTypePolicyFactory_isScript, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.TrustedTypePolicyFactory_isScriptURL = function () { + let r = cbb_wf.checkIllegal(this, "TrustedTypePolicyFactory"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "TrustedTypePolicyFactory_isScriptURL, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.URLPattern_get_protocol = function () { + let r = cbb_wf.checkIllegal(this, "URLPattern"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'protocol'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLPattern_get_protocol, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.URLPattern_get_username = function () { + let r = cbb_wf.checkIllegal(this, "URLPattern"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'username'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLPattern_get_username, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.URLPattern_get_password = function () { + let r = cbb_wf.checkIllegal(this, "URLPattern"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'password'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLPattern_get_password, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.URLPattern_get_hostname = function () { + let r = cbb_wf.checkIllegal(this, "URLPattern"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'hostname'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLPattern_get_hostname, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.URLPattern_get_port = function () { + let r = cbb_wf.checkIllegal(this, "URLPattern"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'port'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLPattern_get_port, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.URLPattern_get_pathname = function () { + let r = cbb_wf.checkIllegal(this, "URLPattern"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'pathname'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLPattern_get_pathname, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.URLPattern_get_search = function () { + let r = cbb_wf.checkIllegal(this, "URLPattern"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'search'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLPattern_get_search, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.URLPattern_get_hash = function () { + let r = cbb_wf.checkIllegal(this, "URLPattern"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'hash'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLPattern_get_hash, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.URLPattern_exec = function () { + let r = cbb_wf.checkIllegal(this, "URLPattern"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLPattern_exec, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.URLPattern_test = function () { + let r = cbb_wf.checkIllegal(this, "URLPattern"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "URLPattern_test, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.VideoPlaybackQuality_get_creationTime = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "VideoPlaybackQuality"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "creationTime"); + + let result = cbb_wf.getValue(this, 'creationTime'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoPlaybackQuality_get_creationTime, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoPlaybackQuality_get_creationTime, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.VideoPlaybackQuality_get_totalVideoFrames = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "VideoPlaybackQuality"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "totalVideoFrames"); + + let result = cbb_wf.getValue(this, 'totalVideoFrames'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoPlaybackQuality_get_totalVideoFrames, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoPlaybackQuality_get_totalVideoFrames, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.VideoPlaybackQuality_get_droppedVideoFrames = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "VideoPlaybackQuality"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "droppedVideoFrames"); + + let result = cbb_wf.getValue(this, 'droppedVideoFrames'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoPlaybackQuality_get_droppedVideoFrames, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoPlaybackQuality_get_droppedVideoFrames, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.VideoPlaybackQuality_get_corruptedVideoFrames = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "VideoPlaybackQuality"); let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "corruptedVideoFrames"); + + let result = cbb_wf.getValue(this, 'corruptedVideoFrames'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] VideoPlaybackQuality_get_corruptedVideoFrames, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "VideoPlaybackQuality_get_corruptedVideoFrames, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XSLTProcessor_clearParameters = function () { + let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XSLTProcessor_clearParameters, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XSLTProcessor_getParameter = function () { + let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XSLTProcessor_getParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XSLTProcessor_importStylesheet = function () { + let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XSLTProcessor_importStylesheet, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XSLTProcessor_removeParameter = function () { + let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XSLTProcessor_removeParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XSLTProcessor_reset = function () { + let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XSLTProcessor_reset, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XSLTProcessor_setParameter = function () { + let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XSLTProcessor_setParameter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XSLTProcessor_transformToDocument = function () { + let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XSLTProcessor_transformToDocument, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XSLTProcessor_transformToFragment = function () { + let r = cbb_wf.checkIllegal(this, "XSLTProcessor"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] " + ctx.my_api.memory.vm_index + "XSLTProcessor_transformToFragment, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); } return result; } +this.ProtectedAudience_queryFeatureSupport = function () { + let r = cbb_wf.checkIllegal(this, "ProtectedAudience"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] ProtectedAudience_queryFeatureSupport, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.StorageBucketManager_delete = function () { + let r = cbb_wf.checkIllegal(this, "StorageBucketManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] StorageBucketManager_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.StorageBucketManager_keys = function () { + let r = cbb_wf.checkIllegal(this, "StorageBucketManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] StorageBucketManager_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.StorageBucketManager_open = function () { + let r = cbb_wf.checkIllegal(this, "StorageBucketManager"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] StorageBucketManager_open, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.TextUpdateEvent_get_updateRangeStart = function () { + let r = cbb_wf.checkIllegal(this, "TextUpdateEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'updateRangeStart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] TextUpdateEvent_get_updateRangeStart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TextUpdateEvent_get_updateRangeEnd = function () { + let r = cbb_wf.checkIllegal(this, "TextUpdateEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'updateRangeEnd'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] TextUpdateEvent_get_updateRangeEnd, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TextUpdateEvent_get_text = function () { + let r = cbb_wf.checkIllegal(this, "TextUpdateEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'text'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] TextUpdateEvent_get_text, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TextUpdateEvent_get_selectionStart = function () { + let r = cbb_wf.checkIllegal(this, "TextUpdateEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'selectionStart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] TextUpdateEvent_get_selectionStart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TextUpdateEvent_get_selectionEnd = function () { + let r = cbb_wf.checkIllegal(this, "TextUpdateEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'selectionEnd'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] TextUpdateEvent_get_selectionEnd, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TextFormatUpdateEvent_getTextFormats = function () { + let r = cbb_wf.checkIllegal(this, "TextFormatUpdateEvent"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] TextFormatUpdateEvent_getTextFormats, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.TextFormat_get_rangeStart = function () { + let r = cbb_wf.checkIllegal(this, "TextFormat"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'rangeStart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] TextFormat_get_rangeStart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TextFormat_get_rangeEnd = function () { + let r = cbb_wf.checkIllegal(this, "TextFormat"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'rangeEnd'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] TextFormat_get_rangeEnd, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TextFormat_get_underlineStyle = function () { + let r = cbb_wf.checkIllegal(this, "TextFormat"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'underlineStyle'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] TextFormat_get_underlineStyle, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.TextFormat_get_underlineThickness = function () { + let r = cbb_wf.checkIllegal(this, "TextFormat"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'underlineThickness'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] TextFormat_get_underlineThickness, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrackVideoStats_get_deliveredFrames = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackVideoStats"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'deliveredFrames'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] MediaStreamTrackVideoStats_get_deliveredFrames, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrackVideoStats_get_discardedFrames = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackVideoStats"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'discardedFrames'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] MediaStreamTrackVideoStats_get_discardedFrames, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrackVideoStats_get_totalFrames = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackVideoStats"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'totalFrames'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] MediaStreamTrackVideoStats_get_totalFrames, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrackVideoStats_toJSON = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackVideoStats"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] MediaStreamTrackVideoStats_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MediaStreamTrackAudioStats_get_deliveredFrames = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackAudioStats"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'deliveredFrames'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] MediaStreamTrackAudioStats_get_deliveredFrames, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrackAudioStats_get_deliveredFramesDuration = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackAudioStats"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'deliveredFramesDuration'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] MediaStreamTrackAudioStats_get_deliveredFramesDuration, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrackAudioStats_get_totalFrames = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackAudioStats"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'totalFrames'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] MediaStreamTrackAudioStats_get_totalFrames, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrackAudioStats_get_totalFramesDuration = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackAudioStats"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'totalFramesDuration'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] MediaStreamTrackAudioStats_get_totalFramesDuration, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrackAudioStats_get_latency = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackAudioStats"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'latency'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] MediaStreamTrackAudioStats_get_latency, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrackAudioStats_get_averageLatency = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackAudioStats"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'averageLatency'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] MediaStreamTrackAudioStats_get_averageLatency, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrackAudioStats_get_minimumLatency = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackAudioStats"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'minimumLatency'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] MediaStreamTrackAudioStats_get_minimumLatency, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrackAudioStats_get_maximumLatency = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackAudioStats"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'maximumLatency'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] MediaStreamTrackAudioStats_get_maximumLatency, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.MediaStreamTrackAudioStats_resetLatency = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackAudioStats"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] MediaStreamTrackAudioStats_resetLatency, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MediaStreamTrackAudioStats_toJSON = function () { + let r = cbb_wf.checkIllegal(this, "MediaStreamTrackAudioStats"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] MediaStreamTrackAudioStats_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EditContext_get_text = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'text'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] EditContext_get_text, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EditContext_get_selectionStart = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'selectionStart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] EditContext_get_selectionStart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EditContext_get_selectionEnd = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'selectionEnd'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] EditContext_get_selectionEnd, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EditContext_get_characterBoundsRangeStart = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'characterBoundsRangeStart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] EditContext_get_characterBoundsRangeStart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EditContext_get_ontextupdate = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ontextupdate'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] EditContext_get_ontextupdate, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EditContext_set_ontextupdate = function (val) { + let r = cbb_wf.checkIllegal(this, "EditContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'ontextupdate', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] EditContext_set_ontextupdate, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.EditContext_get_ontextformatupdate = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'ontextformatupdate'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] EditContext_get_ontextformatupdate, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EditContext_set_ontextformatupdate = function (val) { + let r = cbb_wf.checkIllegal(this, "EditContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'ontextformatupdate', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] EditContext_set_ontextformatupdate, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.EditContext_get_oncharacterboundsupdate = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'oncharacterboundsupdate'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] EditContext_get_oncharacterboundsupdate, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EditContext_set_oncharacterboundsupdate = function (val) { + let r = cbb_wf.checkIllegal(this, "EditContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'oncharacterboundsupdate', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] EditContext_set_oncharacterboundsupdate, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.EditContext_get_oncompositionstart = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'oncompositionstart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] EditContext_get_oncompositionstart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EditContext_set_oncompositionstart = function (val) { + let r = cbb_wf.checkIllegal(this, "EditContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'oncompositionstart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] EditContext_set_oncompositionstart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.EditContext_get_oncompositionend = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'oncompositionend'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] EditContext_get_oncompositionend, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.EditContext_set_oncompositionend = function (val) { + let r = cbb_wf.checkIllegal(this, "EditContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'oncompositionend', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] EditContext_set_oncompositionend, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.EditContext_attachedElements = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EditContext_attachedElements, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EditContext_characterBounds = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EditContext_characterBounds, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EditContext_updateCharacterBounds = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EditContext_updateCharacterBounds, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EditContext_updateControlBounds = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EditContext_updateControlBounds, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EditContext_updateSelection = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EditContext_updateSelection, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EditContext_updateSelectionBounds = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EditContext_updateSelectionBounds, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EditContext_updateText = function () { + let r = cbb_wf.checkIllegal(this, "EditContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EditContext_updateText, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CloseWatcher_get_oncancel = function () { + let r = cbb_wf.checkIllegal(this, "CloseWatcher"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'oncancel'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CloseWatcher_get_oncancel, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CloseWatcher_set_oncancel = function (val) { + let r = cbb_wf.checkIllegal(this, "CloseWatcher"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'oncancel', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CloseWatcher_set_oncancel, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CloseWatcher_get_onclose = function () { + let r = cbb_wf.checkIllegal(this, "CloseWatcher"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onclose'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CloseWatcher_get_onclose, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CloseWatcher_set_onclose = function (val) { + let r = cbb_wf.checkIllegal(this, "CloseWatcher"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onclose', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CloseWatcher_set_onclose, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CloseWatcher_close = function () { + let r = cbb_wf.checkIllegal(this, "CloseWatcher"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] CloseWatcher_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CloseWatcher_destroy = function () { + let r = cbb_wf.checkIllegal(this, "CloseWatcher"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] CloseWatcher_destroy, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CloseWatcher_requestClose = function () { + let r = cbb_wf.checkIllegal(this, "CloseWatcher"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] CloseWatcher_requestClose, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.CharacterBoundsUpdateEvent_get_rangeStart = function () { + let r = cbb_wf.checkIllegal(this, "CharacterBoundsUpdateEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'rangeStart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CharacterBoundsUpdateEvent_get_rangeStart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CharacterBoundsUpdateEvent_get_rangeEnd = function () { + let r = cbb_wf.checkIllegal(this, "CharacterBoundsUpdateEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'rangeEnd'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CharacterBoundsUpdateEvent_get_rangeEnd, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryRule_get_name = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryRule"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'name'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryRule_get_name, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryRule_get_style = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryRule"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'style'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryRule_get_style, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryRule_set_style = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'style', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryRule_set_style, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_margin = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'margin'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_margin, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_margin = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'margin', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_margin, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginTop = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'marginTop'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_marginTop, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginTop = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'marginTop', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_marginTop, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginRight = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'marginRight'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_marginRight, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginRight = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'marginRight', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_marginRight, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginBottom = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'marginBottom'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_marginBottom, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginBottom = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'marginBottom', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_marginBottom, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginLeft = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'marginLeft'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_marginLeft, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginLeft = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'marginLeft', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_marginLeft, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginBlock = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'marginBlock'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_marginBlock, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginBlock = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'marginBlock', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_marginBlock, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginBlockStart = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'marginBlockStart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_marginBlockStart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginBlockStart = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'marginBlockStart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_marginBlockStart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginBlockEnd = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'marginBlockEnd'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_marginBlockEnd, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginBlockEnd = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'marginBlockEnd', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_marginBlockEnd, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginInline = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'marginInline'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_marginInline, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginInline = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'marginInline', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_marginInline, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginInlineStart = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'marginInlineStart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_marginInlineStart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginInlineStart = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'marginInlineStart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_marginInlineStart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginInlineEnd = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'marginInlineEnd'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_marginInlineEnd, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginInlineEnd = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'marginInlineEnd', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_marginInlineEnd, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_margintop = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'margin-top'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_margin-top, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_margintop = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'margin-top', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_margin-top, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginright = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'margin-right'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_margin-right, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginright = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'margin-right', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_margin-right, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginbottom = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'margin-bottom'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_margin-bottom, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginbottom = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'margin-bottom', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_margin-bottom, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginleft = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'margin-left'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_margin-left, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginleft = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'margin-left', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_margin-left, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginblock = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'margin-block'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_margin-block, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginblock = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'margin-block', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_margin-block, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginblockstart = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'margin-block-start'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_margin-block-start, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginblockstart = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'margin-block-start', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_margin-block-start, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_marginblockend = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'margin-block-end'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_margin-block-end, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_marginblockend = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'margin-block-end', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_margin-block-end, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_margininline = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'margin-inline'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_margin-inline, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_margininline = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'margin-inline', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_margin-inline, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_margininlinestart = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'margin-inline-start'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_margin-inline-start, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_margininlinestart = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'margin-inline-start', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_margin-inline-start, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_margininlineend = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'margin-inline-end'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_margin-inline-end, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_margininlineend = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'margin-inline-end', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_margin-inline-end, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_inset = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'inset'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_inset, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_inset = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'inset', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_inset, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_insetBlock = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'insetBlock'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_insetBlock, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_insetBlock = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'insetBlock', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_insetBlock, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_insetBlockStart = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'insetBlockStart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_insetBlockStart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_insetBlockStart = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'insetBlockStart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_insetBlockStart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_insetBlockEnd = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'insetBlockEnd'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_insetBlockEnd, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_insetBlockEnd = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'insetBlockEnd', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_insetBlockEnd, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_insetInline = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'insetInline'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_insetInline, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_insetInline = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'insetInline', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_insetInline, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_insetInlineStart = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'insetInlineStart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_insetInlineStart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_insetInlineStart = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'insetInlineStart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_insetInlineStart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_insetInlineEnd = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'insetInlineEnd'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_insetInlineEnd, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_insetInlineEnd = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'insetInlineEnd', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_insetInlineEnd, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_top = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'top'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_top, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_top = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'top', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_top, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_left = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'left'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_left, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_left = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'left', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_left, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_right = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'right'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_right, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_right = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'right', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_right, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_bottom = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'bottom'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_bottom, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_bottom = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'bottom', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_bottom, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_insetblock = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'inset-block'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_inset-block, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_insetblock = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'inset-block', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_inset-block, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_insetblockstart = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'inset-block-start'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_inset-block-start, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_insetblockstart = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'inset-block-start', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_inset-block-start, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_insetblockend = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'inset-block-end'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_inset-block-end, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_insetblockend = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'inset-block-end', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_inset-block-end, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_insetinline = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'inset-inline'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_inset-inline, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_insetinline = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'inset-inline', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_inset-inline, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_insetinlinestart = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'inset-inline-start'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_inset-inline-start, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_insetinlinestart = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'inset-inline-start', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_inset-inline-start, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_insetinlineend = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'inset-inline-end'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_inset-inline-end, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_insetinlineend = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'inset-inline-end', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_inset-inline-end, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_width = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'width'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_width, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_width = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'width', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_width, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_minWidth = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'minWidth'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_minWidth, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_minWidth = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'minWidth', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_minWidth, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_maxWidth = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'maxWidth'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_maxWidth, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_maxWidth = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'maxWidth', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_maxWidth, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_height = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'height'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_height, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_height = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'height', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_height, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_minHeight = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'minHeight'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_minHeight, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_minHeight = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'minHeight', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_minHeight, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_maxHeight = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'maxHeight'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_maxHeight, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_maxHeight = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'maxHeight', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_maxHeight, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_blockSize = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'blockSize'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_blockSize, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_blockSize = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'blockSize', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_blockSize, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_minBlockSize = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'minBlockSize'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_minBlockSize, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_minBlockSize = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'minBlockSize', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_minBlockSize, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_maxBlockSize = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'maxBlockSize'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_maxBlockSize, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_maxBlockSize = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'maxBlockSize', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_maxBlockSize, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_inlineSize = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'inlineSize'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_inlineSize, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_inlineSize = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'inlineSize', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_inlineSize, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_minInlineSize = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'minInlineSize'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_minInlineSize, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_minInlineSize = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'minInlineSize', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_minInlineSize, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_maxInlineSize = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'maxInlineSize'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_maxInlineSize, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_maxInlineSize = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'maxInlineSize', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_maxInlineSize, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_minwidth = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'min-width'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_min-width, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_minwidth = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'min-width', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_min-width, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_maxwidth = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'max-width'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_max-width, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_maxwidth = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'max-width', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_max-width, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_minheight = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'min-height'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_min-height, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_minheight = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'min-height', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_min-height, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_maxheight = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'max-height'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_max-height, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_maxheight = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'max-height', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_max-height, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_blocksize = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'block-size'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_block-size, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_blocksize = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'block-size', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_block-size, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_minblocksize = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'min-block-size'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_min-block-size, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_minblocksize = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'min-block-size', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_min-block-size, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_maxblocksize = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'max-block-size'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_max-block-size, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_maxblocksize = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'max-block-size', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_max-block-size, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_inlinesize = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'inline-size'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_inline-size, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_inlinesize = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'inline-size', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_inline-size, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_mininlinesize = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'min-inline-size'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_min-inline-size, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_mininlinesize = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'min-inline-size', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_min-inline-size, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_maxinlinesize = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'max-inline-size'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_max-inline-size, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_maxinlinesize = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'max-inline-size', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_max-inline-size, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_placeSelf = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'placeSelf'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_placeSelf, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_placeSelf = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'placeSelf', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_placeSelf, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_alignSelf = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'alignSelf'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_alignSelf, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_alignSelf = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'alignSelf', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_alignSelf, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_justifySelf = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'justifySelf'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_justifySelf, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_justifySelf = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'justifySelf', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_justifySelf, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_placeself = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'place-self'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_place-self, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_placeself = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'place-self', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_place-self, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_alignself = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'align-self'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_align-self, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_alignself = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'align-self', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_align-self, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_justifyself = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'justify-self'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_justify-self, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_justifyself = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'justify-self', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_justify-self, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_positionAnchor = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'positionAnchor'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_positionAnchor, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_positionAnchor = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'positionAnchor', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_positionAnchor, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_positionanchor = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'position-anchor'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_position-anchor, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_positionanchor = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'position-anchor', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_position-anchor, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_positionArea = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'positionArea'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_positionArea, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_positionArea = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'positionArea', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_positionArea, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSPositionTryDescriptors_get_positionarea = function () { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'position-area'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_get_position-area, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSPositionTryDescriptors_set_positionarea = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSPositionTryDescriptors"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'position-area', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSPositionTryDescriptors_set_position-area, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.Iterator_reduce = function () { + let r = cbb_wf.checkIllegal(this, "Iterator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Iterator_reduce, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Iterator_toArray = function () { + let r = cbb_wf.checkIllegal(this, "Iterator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Iterator_toArray, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Iterator_forEach = function () { + let r = cbb_wf.checkIllegal(this, "Iterator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Iterator_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Iterator_some = function () { + let r = cbb_wf.checkIllegal(this, "Iterator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Iterator_some, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Iterator_every = function () { + let r = cbb_wf.checkIllegal(this, "Iterator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Iterator_every, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Iterator_find = function () { + let r = cbb_wf.checkIllegal(this, "Iterator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Iterator_find, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Iterator_map = function () { + let r = cbb_wf.checkIllegal(this, "Iterator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Iterator_map, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Iterator_filter = function () { + let r = cbb_wf.checkIllegal(this, "Iterator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Iterator_filter, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Iterator_take = function () { + let r = cbb_wf.checkIllegal(this, "Iterator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Iterator_take, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Iterator_drop = function () { + let r = cbb_wf.checkIllegal(this, "Iterator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Iterator_drop, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Iterator_flatMap = function () { + let r = cbb_wf.checkIllegal(this, "Iterator"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Iterator_flatMap, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this._from = function () { + let result; + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] _set_from, this =>", toString.call(this), ", arguments => ", arguments, info); + } +} +this.IdentityCredentialError_get_code = function () { + let r = cbb_wf.checkIllegal(this, "IdentityCredentialError"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'code'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] IdentityCredentialError_get_code, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.IdentityCredentialError_get_url = function () { + let r = cbb_wf.checkIllegal(this, "IdentityCredentialError"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'url'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] IdentityCredentialError_get_url, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NotRestoredReasonDetails_get_reason = function () { + let r = cbb_wf.checkIllegal(this, "NotRestoredReasonDetails"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'reason'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] NotRestoredReasonDetails_get_reason, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NotRestoredReasonDetails_toJSON = function () { + let r = cbb_wf.checkIllegal(this, "NotRestoredReasonDetails"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] NotRestoredReasonDetails_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.NotRestoredReasons_get_src = function () { + let r = cbb_wf.checkIllegal(this, "NotRestoredReasons"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'src'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] NotRestoredReasons_get_src, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NotRestoredReasons_get_id = function () { + let r = cbb_wf.checkIllegal(this, "NotRestoredReasons"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'id'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] NotRestoredReasons_get_id, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NotRestoredReasons_get_name = function () { + let r = cbb_wf.checkIllegal(this, "NotRestoredReasons"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'name'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] NotRestoredReasons_get_name, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NotRestoredReasons_get_url = function () { + let r = cbb_wf.checkIllegal(this, "NotRestoredReasons"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'url'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] NotRestoredReasons_get_url, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NotRestoredReasons_get_reasons = function () { + let r = cbb_wf.checkIllegal(this, "NotRestoredReasons"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'reasons'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] NotRestoredReasons_get_reasons, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NotRestoredReasons_get_children = function () { + let r = cbb_wf.checkIllegal(this, "NotRestoredReasons"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'children'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] NotRestoredReasons_get_children, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NotRestoredReasons_toJSON = function () { + let r = cbb_wf.checkIllegal(this, "NotRestoredReasons"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] NotRestoredReasons_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.PressureObserver_disconnect = function () { + let r = cbb_wf.checkIllegal(this, "PressureObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] PressureObserver_disconnect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.PressureObserver_observe = function () { + let r = cbb_wf.checkIllegal(this, "PressureObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] PressureObserver_observe, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.PressureObserver_takeRecords = function () { + let r = cbb_wf.checkIllegal(this, "PressureObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] PressureObserver_takeRecords, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.PressureObserver_unobserve = function () { + let r = cbb_wf.checkIllegal(this, "PressureObserver"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] PressureObserver_unobserve, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.PressureRecord_get_source = function () { + let r = cbb_wf.checkIllegal(this, "PressureRecord"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'source'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PressureRecord_get_source, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PressureRecord_get_state = function () { + let r = cbb_wf.checkIllegal(this, "PressureRecord"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'state'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PressureRecord_get_state, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PressureRecord_get_time = function () { + let r = cbb_wf.checkIllegal(this, "PressureRecord"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'time'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PressureRecord_get_time, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PressureRecord_toJSON = function () { + let r = cbb_wf.checkIllegal(this, "PressureRecord"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] PressureRecord_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.StorageBucket_get_name = function () { + let r = cbb_wf.checkIllegal(this, "StorageBucket"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'name'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] StorageBucket_get_name, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.StorageBucket_get_indexedDB = function () { + let r = cbb_wf.checkIllegal(this, "StorageBucket"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'indexedDB'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] StorageBucket_get_indexedDB, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.StorageBucket_get_caches = function () { + let r = cbb_wf.checkIllegal(this, "StorageBucket"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'caches'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] StorageBucket_get_caches, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.StorageBucket_estimate = function () { + let r = cbb_wf.checkIllegal(this, "StorageBucket"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] StorageBucket_estimate, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.StorageBucket_expires = function () { + let r = cbb_wf.checkIllegal(this, "StorageBucket"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] StorageBucket_expires, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.StorageBucket_getDirectory = function () { + let r = cbb_wf.checkIllegal(this, "StorageBucket"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] StorageBucket_getDirectory, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.StorageBucket_persisted = function () { + let r = cbb_wf.checkIllegal(this, "StorageBucket"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] StorageBucket_persisted, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.StorageBucket_setExpires = function () { + let r = cbb_wf.checkIllegal(this, "StorageBucket"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] StorageBucket_setExpires, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.StorageBucket_persist = function () { + let r = cbb_wf.checkIllegal(this, "StorageBucket"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] StorageBucket_persist, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRHand_get_size = function () { + let r = cbb_wf.checkIllegal(this, "XRHand"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'size'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] XRHand_get_size, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRHand_get = function () { + let r = cbb_wf.checkIllegal(this, "XRHand"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] XRHand_get, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRHand_entries = function () { + let r = cbb_wf.checkIllegal(this, "XRHand"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] XRHand_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRHand_forEach = function () { + let r = cbb_wf.checkIllegal(this, "XRHand"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] XRHand_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRHand_keys = function () { + let r = cbb_wf.checkIllegal(this, "XRHand"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] XRHand_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRHand_values = function () { + let r = cbb_wf.checkIllegal(this, "XRHand"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] XRHand_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.XRJointPose_get_radius = function () { + let r = cbb_wf.checkIllegal(this, "XRJointPose"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'radius'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] XRJointPose_get_radius, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.XRJointSpace_get_jointName = function () { + let r = cbb_wf.checkIllegal(this, "XRJointSpace"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'jointName'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] XRJointSpace_get_jointName, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSMarginRule_get_name = function () { + let r = cbb_wf.checkIllegal(this, "CSSMarginRule"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'name'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSMarginRule_get_name, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSMarginRule_get_style = function () { + let r = cbb_wf.checkIllegal(this, "CSSMarginRule"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'style'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSMarginRule_get_style, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSMarginRule_set_style = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSMarginRule"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'style', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSMarginRule_set_style, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSNestedDeclarations_get_style = function () { + let r = cbb_wf.checkIllegal(this, "CSSNestedDeclarations"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'style'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSNestedDeclarations_get_style, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSNestedDeclarations_set_style = function (val) { + let r = cbb_wf.checkIllegal(this, "CSSNestedDeclarations"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'style', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSNestedDeclarations_set_style, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.CSSViewTransitionRule_get_navigation = function () { + let r = cbb_wf.checkIllegal(this, "CSSViewTransitionRule"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'navigation'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSViewTransitionRule_get_navigation, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CSSViewTransitionRule_get_types = function () { + let r = cbb_wf.checkIllegal(this, "CSSViewTransitionRule"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'types'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CSSViewTransitionRule_get_types, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CaretPosition_get_offsetNode = function () { + let r = cbb_wf.checkIllegal(this, "CaretPosition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'offsetNode'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CaretPosition_get_offsetNode, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CaretPosition_get_offset = function () { + let r = cbb_wf.checkIllegal(this, "CaretPosition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'offset'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] CaretPosition_get_offset, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.CaretPosition_getClientRect = function () { + let r = cbb_wf.checkIllegal(this, "CaretPosition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] CaretPosition_getClientRect, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ChapterInformation_get_title = function () { + let r = cbb_wf.checkIllegal(this, "ChapterInformation"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'title'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] ChapterInformation_get_title, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ChapterInformation_get_startTime = function () { + let r = cbb_wf.checkIllegal(this, "ChapterInformation"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'startTime'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] ChapterInformation_get_startTime, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ChapterInformation_get_artwork = function () { + let r = cbb_wf.checkIllegal(this, "ChapterInformation"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'artwork'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] ChapterInformation_get_artwork, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationActivation_get_entry = function () { + let r = cbb_wf.checkIllegal(this, "NavigationActivation"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'entry'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] NavigationActivation_get_entry, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationActivation_get_from = function () { + let r = cbb_wf.checkIllegal(this, "NavigationActivation"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'from'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] NavigationActivation_get_from, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.NavigationActivation_get_navigationType = function () { + let r = cbb_wf.checkIllegal(this, "NavigationActivation"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'navigationType'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] NavigationActivation_get_navigationType, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PageRevealEvent_get_viewTransition = function () { + let r = cbb_wf.checkIllegal(this, "PageRevealEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'viewTransition'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PageRevealEvent_get_viewTransition, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PageSwapEvent_get_activation = function () { + let r = cbb_wf.checkIllegal(this, "PageSwapEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'activation'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PageSwapEvent_get_activation, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PageSwapEvent_get_viewTransition = function () { + let r = cbb_wf.checkIllegal(this, "PageSwapEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'viewTransition'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PageSwapEvent_get_viewTransition, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceLongAnimationFrameTiming_get_renderStart = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceLongAnimationFrameTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'renderStart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceLongAnimationFrameTiming_get_renderStart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceLongAnimationFrameTiming_get_styleAndLayoutStart = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceLongAnimationFrameTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'styleAndLayoutStart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceLongAnimationFrameTiming_get_styleAndLayoutStart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceLongAnimationFrameTiming_get_firstUIEventTimestamp = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceLongAnimationFrameTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'firstUIEventTimestamp'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceLongAnimationFrameTiming_get_firstUIEventTimestamp, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceLongAnimationFrameTiming_get_blockingDuration = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceLongAnimationFrameTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'blockingDuration'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceLongAnimationFrameTiming_get_blockingDuration, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceLongAnimationFrameTiming_get_scripts = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceLongAnimationFrameTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'scripts'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceLongAnimationFrameTiming_get_scripts, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceLongAnimationFrameTiming_toJSON = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceLongAnimationFrameTiming"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] PerformanceLongAnimationFrameTiming_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.PerformanceScriptTiming_get_invokerType = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'invokerType'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceScriptTiming_get_invokerType, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceScriptTiming_get_invoker = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'invoker'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceScriptTiming_get_invoker, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceScriptTiming_get_windowAttribution = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'windowAttribution'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceScriptTiming_get_windowAttribution, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceScriptTiming_get_executionStart = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'executionStart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceScriptTiming_get_executionStart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceScriptTiming_get_forcedStyleAndLayoutDuration = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'forcedStyleAndLayoutDuration'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceScriptTiming_get_forcedStyleAndLayoutDuration, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceScriptTiming_get_pauseDuration = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'pauseDuration'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceScriptTiming_get_pauseDuration, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceScriptTiming_get_window = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'window'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceScriptTiming_get_window, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceScriptTiming_get_sourceURL = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'sourceURL'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceScriptTiming_get_sourceURL, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceScriptTiming_get_sourceFunctionName = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'sourceFunctionName'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceScriptTiming_get_sourceFunctionName, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceScriptTiming_get_sourceCharPosition = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'sourceCharPosition'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] PerformanceScriptTiming_get_sourceCharPosition, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.PerformanceScriptTiming_toJSON = function () { + let r = cbb_wf.checkIllegal(this, "PerformanceScriptTiming"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] PerformanceScriptTiming_toJSON, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SnapEvent_get_snapTargetBlock = function () { + let r = cbb_wf.checkIllegal(this, "SnapEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'snapTargetBlock'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SnapEvent_get_snapTargetBlock, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SnapEvent_get_snapTargetInline = function () { + let r = cbb_wf.checkIllegal(this, "SnapEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'snapTargetInline'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SnapEvent_get_snapTargetInline, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechSynthesis_get_pending = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'pending'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechSynthesis_get_pending, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechSynthesis_get_speaking = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'speaking'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechSynthesis_get_speaking, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechSynthesis_get_paused = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'paused'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechSynthesis_get_paused, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechSynthesis_get_onvoiceschanged = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onvoiceschanged'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechSynthesis_get_onvoiceschanged, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechSynthesis_set_onvoiceschanged = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onvoiceschanged', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechSynthesis_set_onvoiceschanged, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechSynthesis_cancel = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_cancel, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechSynthesis_getVoices = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_getVoices, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechSynthesis_pause = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_pause, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechSynthesis_resume = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_resume, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechSynthesis_speak = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_speak, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechSynthesisVoice_get_voiceURI = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisVoice"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'voiceURI'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechSynthesisVoice_get_voiceURI, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechSynthesisVoice_get_name = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisVoice"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'name'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechSynthesisVoice_get_name, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechSynthesisVoice_get_lang = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisVoice"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'lang'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechSynthesisVoice_get_lang, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechSynthesisVoice_get_localService = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisVoice"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'localService'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechSynthesisVoice_get_localService, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechSynthesisVoice_get_default = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesisVoice"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'default'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechSynthesisVoice_get_default, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ViewTransitionTypeSet_get_size = function () { + let r = cbb_wf.checkIllegal(this, "ViewTransitionTypeSet"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'size'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] ViewTransitionTypeSet_get_size, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.ViewTransitionTypeSet_add = function () { + let r = cbb_wf.checkIllegal(this, "ViewTransitionTypeSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] ViewTransitionTypeSet_add, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ViewTransitionTypeSet_clear = function () { + let r = cbb_wf.checkIllegal(this, "ViewTransitionTypeSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] ViewTransitionTypeSet_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ViewTransitionTypeSet_delete = function () { + let r = cbb_wf.checkIllegal(this, "ViewTransitionTypeSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] ViewTransitionTypeSet_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ViewTransitionTypeSet_entries = function () { + let r = cbb_wf.checkIllegal(this, "ViewTransitionTypeSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] ViewTransitionTypeSet_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ViewTransitionTypeSet_forEach = function () { + let r = cbb_wf.checkIllegal(this, "ViewTransitionTypeSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] ViewTransitionTypeSet_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ViewTransitionTypeSet_has = function () { + let r = cbb_wf.checkIllegal(this, "ViewTransitionTypeSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] ViewTransitionTypeSet_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ViewTransitionTypeSet_keys = function () { + let r = cbb_wf.checkIllegal(this, "ViewTransitionTypeSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] ViewTransitionTypeSet_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ViewTransitionTypeSet_values = function () { + let r = cbb_wf.checkIllegal(this, "ViewTransitionTypeSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] ViewTransitionTypeSet_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} this.WebSocketError_get_closeCode = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocketError"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "closeCode"); + + let result = cbb_wf.getValue(this, 'closeCode'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocketError_get_closeCode, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] WebSocketError_get_closeCode, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocketError_get_reason = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocketError"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "reason"); + + let result = cbb_wf.getValue(this, 'reason'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocketError_get_reason, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] WebSocketError_get_reason, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocketStream_get_url = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocketStream"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "url"); + + let result = cbb_wf.getValue(this, 'url'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocketStream_get_url, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] WebSocketStream_get_url, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocketStream_get_opened = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocketStream"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "opened"); + + let result = cbb_wf.getValue(this, 'opened'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocketStream_get_opened, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] WebSocketStream_get_opened, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocketStream_get_closed = function () { - // 非法调用 let r = cbb_wf.checkIllegal(this, "WebSocketStream"); - let ctx = r[0]; if (r[1]) { - // 报错 throw cbb_wf.newError.call(ctx, "Illegal invocation"); } - let result = cbb_wf.getValue(this, "closed"); + + let result = cbb_wf.getValue(this, 'closed'); if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - let info = ""; - if (!result) { - info = ". 暂时未处理" - } - console.log("[*] WebSocketStream_get_closed, this =>", this + '', ", result =>", result + '', info); + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] WebSocketStream_get_closed, this =>", toString.call(this), ", result => ", '' + result, info); } return result; } - this.WebSocketStream_close = function () { - // 非法调用 - let r = cbb_wf.checkIllegal(this, "WebSocketStream"); - let ctx = r[0]; - if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - // 没有功能 - let result; - if (cbb_wf.is_log) { - // 函数没补, 原来的静态代码, 没有动过 - console.log("[*] WebSocketStream_close, this =>", this + '', ", arguments =>", arguments, ", result =>", result + '', '. 暂时未处理'); - } - return result; - + let r = cbb_wf.checkIllegal(this, "WebSocketStream"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] WebSocketStream_close, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechGrammar_get_src = function () { + let r = cbb_wf.checkIllegal(this, "SpeechGrammar"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'src'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechGrammar_get_src, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechGrammar_set_src = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechGrammar"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'src', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechGrammar_set_src, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechGrammar_get_weight = function () { + let r = cbb_wf.checkIllegal(this, "SpeechGrammar"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'weight'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechGrammar_get_weight, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechGrammar_set_weight = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechGrammar"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'weight', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechGrammar_set_weight, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechGrammarList_get_length = function () { + let r = cbb_wf.checkIllegal(this, "SpeechGrammarList"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'length'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechGrammarList_get_length, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechGrammarList_addFromString = function () { + let r = cbb_wf.checkIllegal(this, "SpeechGrammarList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechGrammarList_addFromString, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechGrammarList_addFromUri = function () { + let r = cbb_wf.checkIllegal(this, "SpeechGrammarList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechGrammarList_addFromUri, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechGrammarList_item = function () { + let r = cbb_wf.checkIllegal(this, "SpeechGrammarList"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechGrammarList_item, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechRecognition_get_grammars = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'grammars'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_grammars, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_grammars = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'grammars', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_grammars, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_lang = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'lang'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_lang, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_lang = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'lang', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_lang, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_continuous = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'continuous'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_continuous, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_continuous = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'continuous', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_continuous, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_interimResults = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'interimResults'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_interimResults, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_interimResults = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'interimResults', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_interimResults, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_maxAlternatives = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'maxAlternatives'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_maxAlternatives, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_maxAlternatives = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'maxAlternatives', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_maxAlternatives, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_onaudiostart = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onaudiostart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_onaudiostart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_onaudiostart = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onaudiostart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_onaudiostart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_onsoundstart = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onsoundstart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_onsoundstart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_onsoundstart = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onsoundstart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_onsoundstart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_onspeechstart = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onspeechstart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_onspeechstart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_onspeechstart = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onspeechstart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_onspeechstart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_onspeechend = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onspeechend'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_onspeechend, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_onspeechend = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onspeechend', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_onspeechend, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_onsoundend = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onsoundend'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_onsoundend, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_onsoundend = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onsoundend', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_onsoundend, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_onaudioend = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onaudioend'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_onaudioend, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_onaudioend = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onaudioend', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_onaudioend, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_onresult = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onresult'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_onresult, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_onresult = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onresult', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_onresult, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_onnomatch = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onnomatch'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_onnomatch, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_onnomatch = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onnomatch', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_onnomatch, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_onerror = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onerror'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_onerror, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_onerror = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onerror', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_onerror, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_onstart = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onstart'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_onstart, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_onstart = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onstart', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_onstart, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_get_onend = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'onend'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_get_onend, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognition_set_onend = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onend', val); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognition_set_onend, this =>", toString.call(this), ", val => ", '' + val, info); + } +} +this.SpeechRecognition_abort = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechRecognition_abort, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechRecognition_start = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechRecognition_start, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechRecognition_stop = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognition"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechRecognition_stop, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechRecognitionErrorEvent_get_error = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognitionErrorEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'error'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognitionErrorEvent_get_error, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognitionErrorEvent_get_message = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognitionErrorEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'message'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognitionErrorEvent_get_message, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognitionEvent_get_resultIndex = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognitionEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'resultIndex'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognitionEvent_get_resultIndex, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} +this.SpeechRecognitionEvent_get_results = function () { + let r = cbb_wf.checkIllegal(this, "SpeechRecognitionEvent"); + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + + let result = cbb_wf.getValue(this, 'results'); + if (cbb_wf.is_log) { + let info = typeof result === 'undefined' ? ", 暂时未实现功能" : ""; + cbb_wf.console.log("[*] SpeechRecognitionEvent_get_results, this =>", toString.call(this), ", result => ", '' + result, info); + } + return result; +} diff --git a/static_env/location.js b/static_env/location.js index d51f31c..7eb1846 100644 --- a/static_env/location.js +++ b/static_env/location.js @@ -1,13 +1,12 @@ -this.location_valueOf = function () { +this.location_valueOf = function (val) { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } let result; if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_valueOf, this =>", toString.call(this), ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + cbb_wf.console.log('[*] location_valueOf, 暂时未实现功能'); } return result; } @@ -15,12 +14,11 @@ this.location_get_ancestorOrigins = function () { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.getValue(this, "ancestorOrigins"); + let result = cbb_wf.getValue(this, 'ancestorOrigins'); if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_get_ancestorOrigins, this =>", toString.call(this), ", result => ", result + ''); + cbb_wf.console.log('[*] location_get_ancestorOrigins, result => ', '' + result); } return result; } @@ -28,12 +26,11 @@ this.location_get_href = function () { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.getValue(this, "href"); + let result = ctx.String(cbb_wf.getValue(this, 'dom_element').href); if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_get_href, this =>", toString.call(this), ", result => ", result + ''); + cbb_wf.console.log('[*] location_get_href, result => ', '' + result); } return result; } @@ -41,25 +38,22 @@ this.location_set_href = function (val) { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.setValue(this, "href", val); + cbb_wf.getValue(this, 'dom_element').href = val; if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_set_href, this =>", toString.call(this), ", val => ", val + ''); + cbb_wf.console.log('[*] location_set_href, 传参val => ' + val); } - return result; } this.location_get_origin = function () { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.getValue(this, "origin"); + let result = ctx.String(cbb_wf.getValue(this, 'dom_element').origin); if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_get_origin, this =>", toString.call(this), ", result => ", result + ''); + cbb_wf.console.log('[*] location_get_origin, result => ', '' + result); } return result; } @@ -67,12 +61,11 @@ this.location_get_protocol = function () { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.getValue(this, "protocol"); + let result = ctx.String(cbb_wf.getValue(this, 'dom_element').protocol); if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_get_protocol, this =>", toString.call(this), ", result => ", result + ''); + cbb_wf.console.log('[*] location_get_protocol, result => ', '' + result); } return result; } @@ -80,25 +73,22 @@ this.location_set_protocol = function (val) { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.setValue(this, "protocol", val); + cbb_wf.getValue(this, 'dom_element').protocol = val; if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_set_protocol, this =>", toString.call(this), ", val => ", val + ''); + cbb_wf.console.log('[*] location_set_protocol, 传参val => ' + val); } - return result; } this.location_get_host = function () { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.getValue(this, "host"); + let result = ctx.String(cbb_wf.getValue(this, 'dom_element').host); if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_get_host, this =>", toString.call(this), ", result => ", result + ''); + cbb_wf.console.log('[*] location_get_host, result => ', '' + result); } return result; } @@ -106,25 +96,22 @@ this.location_set_host = function (val) { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.setValue(this, "host", val); + cbb_wf.getValue(this, 'dom_element').host = val; if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_set_host, this =>", toString.call(this), ", val => ", val + ''); + cbb_wf.console.log('[*] location_set_host, 传参val => ' + val); } - return result; } this.location_get_hostname = function () { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.getValue(this, "hostname"); + let result = ctx.String(cbb_wf.getValue(this, 'dom_element').hostname); if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_get_hostname, this =>", toString.call(this), ", result => ", result + ''); + cbb_wf.console.log('[*] location_get_hostname, result => ', '' + result); } return result; } @@ -132,25 +119,22 @@ this.location_set_hostname = function (val) { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.setValue(this, "hostname", val); + cbb_wf.getValue(this, 'dom_element').hostname = val; if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_set_hostname, this =>", toString.call(this), ", val => ", val + ''); + cbb_wf.console.log('[*] location_set_hostname, 传参val => ' + val); } - return result; } this.location_get_port = function () { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.getValue(this, "port"); + let result = ctx.String(cbb_wf.getValue(this, 'dom_element').port); if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_get_port, this =>", toString.call(this), ", result => ", result + ''); + cbb_wf.console.log('[*] location_get_port, result => ', '' + result); } return result; } @@ -158,25 +142,22 @@ this.location_set_port = function (val) { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.setValue(this, "port", val); + cbb_wf.getValue(this, 'dom_element').port = val; if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_set_port, this =>", toString.call(this), ", val => ", val + ''); + cbb_wf.console.log('[*] location_set_port, 传参val => ' + val); } - return result; } this.location_get_pathname = function () { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.getValue(this, "pathname"); + let result = ctx.String(cbb_wf.getValue(this, 'dom_element').pathname); if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_get_pathname, this =>", toString.call(this), ", result => ", result + ''); + cbb_wf.console.log('[*] location_get_pathname, result => ', '' + result); } return result; } @@ -184,25 +165,22 @@ this.location_set_pathname = function (val) { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.setValue(this, "pathname", val); + cbb_wf.getValue(this, 'dom_element').pathname = val; if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_set_pathname, this =>", toString.call(this), ", val => ", val + ''); + cbb_wf.console.log('[*] location_set_pathname, 传参val => ' + val); } - return result; } this.location_get_search = function () { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.getValue(this, "search"); + let result = ctx.String(cbb_wf.getValue(this, 'dom_element').search); if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_get_search, this =>", toString.call(this), ", result => ", result + ''); + cbb_wf.console.log('[*] location_get_search, result => ', '' + result); } return result; } @@ -210,25 +188,22 @@ this.location_set_search = function (val) { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.setValue(this, "search", val); + cbb_wf.getValue(this, 'dom_element').search = val; if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_set_search, this =>", toString.call(this), ", val => ", val + ''); + cbb_wf.console.log('[*] location_set_search, 传参val => ' + val); } - return result; } this.location_get_hash = function () { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.getValue(this, "hash"); + let result = ctx.String(cbb_wf.getValue(this, 'dom_element').hash); if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_get_hash, this =>", toString.call(this), ", result => ", result + ''); + cbb_wf.console.log('[*] location_get_hash, result => ', '' + result); } return result; } @@ -236,64 +211,59 @@ this.location_set_hash = function (val) { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result = cbb_wf.setValue(this, "hash", val); + cbb_wf.getValue(this, 'dom_element').hash = val; if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_set_hash, this =>", toString.call(this), ", val => ", val + ''); + cbb_wf.console.log('[*] location_set_hash, 传参val => ' + val); } - return result; } -this.location_assign = function () { +this.location_assign = function (val) { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } let result; if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_assign, this =>", toString.call(this), ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + cbb_wf.console.log('[*] location_assign, 暂时未实现功能'); } return result; } -this.location_reload = function () { +this.location_reload = function (val) { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } let result; + ctx.my_api.is_close = true; if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_reload, this =>", toString.call(this), ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + cbb_wf.console.log('[*] location_reload, 暂时未实现功能'); } return result; } -this.location_replace = function () { +this.location_replace = function (val) { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } let result; if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_replace, this =>", toString.call(this), ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + cbb_wf.console.log('[*] location_replace, 暂时未实现功能'); } return result; } -this.location_toString = function () { +this.location_toString = function (val) { let r = cbb_wf.checkIllegal(this, "Location"); let ctx = r[0]; if (r[1]) { - // 报错 - throw cbb_wf.newError.call(ctx, "Illegal invocation"); + throw new TypeError("Illegal invocation"); } - let result; + let result = ctx.String(cbb_wf.getValue(this, 'dom_element').href); if (cbb_wf.is_log) { - cbb_wf.console.log("[*] location_toString, this =>", toString.call(this), ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + cbb_wf.console.log('[*] location_toString, result =>', result); } return result; -} +} \ No newline at end of file diff --git a/static_env/proto.js b/static_env/proto.js new file mode 100644 index 0000000..9bd036c --- /dev/null +++ b/static_env/proto.js @@ -0,0 +1,1667 @@ +this.ANGLEInstancedArrays_drawArraysInstancedANGLE = function () { + let r = cbb_wf.checkIllegal(this, "ANGLEInstancedArrays"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] ANGLEInstancedArrays_drawArraysInstancedANGLE, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ANGLEInstancedArrays_drawElementsInstancedANGLE = function () { + let r = cbb_wf.checkIllegal(this, "ANGLEInstancedArrays"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] ANGLEInstancedArrays_drawElementsInstancedANGLE, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.ANGLEInstancedArrays_vertexAttribDivisorANGLE = function () { + let r = cbb_wf.checkIllegal(this, "ANGLEInstancedArrays"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] ANGLEInstancedArrays_vertexAttribDivisorANGLE, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EXTDisjointTimerQuery_beginQueryEXT = function () { + let r = cbb_wf.checkIllegal(this, "EXTDisjointTimerQuery"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EXTDisjointTimerQuery_beginQueryEXT, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EXTDisjointTimerQuery_createQueryEXT = function () { + let r = cbb_wf.checkIllegal(this, "EXTDisjointTimerQuery"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EXTDisjointTimerQuery_createQueryEXT, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EXTDisjointTimerQuery_deleteQueryEXT = function () { + let r = cbb_wf.checkIllegal(this, "EXTDisjointTimerQuery"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EXTDisjointTimerQuery_deleteQueryEXT, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EXTDisjointTimerQuery_endQueryEXT = function () { + let r = cbb_wf.checkIllegal(this, "EXTDisjointTimerQuery"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EXTDisjointTimerQuery_endQueryEXT, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EXTDisjointTimerQuery_getQueryEXT = function () { + let r = cbb_wf.checkIllegal(this, "EXTDisjointTimerQuery"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EXTDisjointTimerQuery_getQueryEXT, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EXTDisjointTimerQuery_getQueryObjectEXT = function () { + let r = cbb_wf.checkIllegal(this, "EXTDisjointTimerQuery"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EXTDisjointTimerQuery_getQueryObjectEXT, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EXTDisjointTimerQuery_isQueryEXT = function () { + let r = cbb_wf.checkIllegal(this, "EXTDisjointTimerQuery"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EXTDisjointTimerQuery_isQueryEXT, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.EXTDisjointTimerQuery_queryCounterEXT = function () { + let r = cbb_wf.checkIllegal(this, "EXTDisjointTimerQuery"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] EXTDisjointTimerQuery_queryCounterEXT, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.OESVertexArrayObject_bindVertexArrayOES = function () { + let r = cbb_wf.checkIllegal(this, "OESVertexArrayObject"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] OESVertexArrayObject_bindVertexArrayOES, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.OESVertexArrayObject_createVertexArrayOES = function () { + let r = cbb_wf.checkIllegal(this, "OESVertexArrayObject"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] OESVertexArrayObject_createVertexArrayOES, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.OESVertexArrayObject_deleteVertexArrayOES = function () { + let r = cbb_wf.checkIllegal(this, "OESVertexArrayObject"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] OESVertexArrayObject_deleteVertexArrayOES, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.OESVertexArrayObject_isVertexArrayOES = function () { + let r = cbb_wf.checkIllegal(this, "OESVertexArrayObject"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] OESVertexArrayObject_isVertexArrayOES, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLDebugShaders_getTranslatedShaderSource = function () { + let r = cbb_wf.checkIllegal(this, "WebGLDebugShaders"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] WebGLDebugShaders_getTranslatedShaderSource, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLDrawBuffers_drawBuffersWEBGL = function () { + let r = cbb_wf.checkIllegal(this, "WebGLDrawBuffers"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] WebGLDrawBuffers_drawBuffersWEBGL, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLLoseContext_loseContext = function () { + let r = cbb_wf.checkIllegal(this, "WebGLLoseContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] WebGLLoseContext_loseContext, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLLoseContext_restoreContext = function () { + let r = cbb_wf.checkIllegal(this, "WebGLLoseContext"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] WebGLLoseContext_restoreContext, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLMultiDraw_multiDrawArraysInstancedWEBGL = function () { + let r = cbb_wf.checkIllegal(this, "WebGLMultiDraw"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] WebGLMultiDraw_multiDrawArraysInstancedWEBGL, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLMultiDraw_multiDrawArraysWEBGL = function () { + let r = cbb_wf.checkIllegal(this, "WebGLMultiDraw"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] WebGLMultiDraw_multiDrawArraysWEBGL, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLMultiDraw_multiDrawElementsInstancedWEBGL = function () { + let r = cbb_wf.checkIllegal(this, "WebGLMultiDraw"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] WebGLMultiDraw_multiDrawElementsInstancedWEBGL, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.WebGLMultiDraw_multiDrawElementsWEBGL = function () { + let r = cbb_wf.checkIllegal(this, "WebGLMultiDraw"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] WebGLMultiDraw_multiDrawElementsWEBGL, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + +this.FontFaceSet_get_onloading = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'onloading'); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_get_onloading, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.FontFaceSet_set_onloading = function (val) { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onloading', val); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_set_onloading, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.FontFaceSet_get_onloadingdone = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'onloadingdone'); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_get_onloadingdone, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.FontFaceSet_set_onloadingdone = function (val) { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onloadingdone', val); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_set_onloadingdone, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.FontFaceSet_get_onloadingerror = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'onloadingerror'); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_get_onloadingerror, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.FontFaceSet_set_onloadingerror = function (val) { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onloadingerror', val); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_set_onloadingerror, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.FontFaceSet_get_ready = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'ready'); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_get_ready, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.FontFaceSet_get_status = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'status'); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_get_status, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.FontFaceSet_get_size = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'size'); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_get_size, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.FontFaceSet_check = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_check, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FontFaceSet_load = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_load, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FontFaceSet_add = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_add, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FontFaceSet_clear = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_clear, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FontFaceSet_delete = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_delete, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FontFaceSet_entries = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_entries, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FontFaceSet_forEach = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_forEach, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FontFaceSet_has = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_has, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FontFaceSet_keys = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_keys, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.FontFaceSet_values = function () { + let r = cbb_wf.checkIllegal(this, "FontFaceSet"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] FontFaceSet_values, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechSynthesis_get_pending = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'pending'); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_get_pending, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.SpeechSynthesis_get_speaking = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'speaking'); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_get_speaking, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.SpeechSynthesis_get_paused = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'paused'); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_get_paused, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.SpeechSynthesis_get_onvoiceschanged = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'onvoiceschanged'); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_get_onvoiceschanged, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.SpeechSynthesis_set_onvoiceschanged = function (val) { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + cbb_wf.setValue(this, 'onvoiceschanged', val); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_set_onvoiceschanged, this =>", toString.call(this), ", val => ", '' + val, ', 暂时未实现功能'); + } +} +this.SpeechSynthesis_cancel = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_cancel, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechSynthesis_getVoices = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_getVoices, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechSynthesis_pause = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_pause, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechSynthesis_resume = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_resume, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.SpeechSynthesis_speak = function () { + let r = cbb_wf.checkIllegal(this, "SpeechSynthesis"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] SpeechSynthesis_speak, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.StyleMedia_get_type = function () { + let r = cbb_wf.checkIllegal(this, "StyleMedia"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'type'); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] StyleMedia_get_type, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.StyleMedia_matchMedium = function () { + let r = cbb_wf.checkIllegal(this, "StyleMedia"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] StyleMedia_matchMedium, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.MemoryInfo_get_totalJSHeapSize = function () { + let r = cbb_wf.checkIllegal(this, "MemoryInfo"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.memory_info.totalJSHeapSize; + + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] MemoryInfo_get_totalJSHeapSize, this =>", toString.call(this), ", result => ", '' + result); + } + return ctx.Number(result); +} +this.MemoryInfo_get_usedJSHeapSize = function () { + let r = cbb_wf.checkIllegal(this, "MemoryInfo"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.memory_info.usedJSHeapSize; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] MemoryInfo_get_usedJSHeapSize, this =>", toString.call(this), ", result => ", '' + result); + } + return ctx.Number(result); +} +this.MemoryInfo_get_jsHeapSizeLimit = function () { + let r = cbb_wf.checkIllegal(this, "MemoryInfo"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.memory_info.jsHeapSizeLimit; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] MemoryInfo_get_jsHeapSizeLimit, this =>", toString.call(this), ", result => ", '' + result); + } + return ctx.Number(result); +} +this.DeprecatedStorageQuota_queryUsageAndQuota = function () { + let r = cbb_wf.checkIllegal(this, "DeprecatedStorageQuota"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] DeprecatedStorageQuota_queryUsageAndQuota, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.DeprecatedStorageQuota_requestQuota = function () { + let r = cbb_wf.checkIllegal(this, "DeprecatedStorageQuota"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] DeprecatedStorageQuota_requestQuota, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Database_get_version = function () { + let r = cbb_wf.checkIllegal(this, "Database"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, 'version'); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Database_get_version, this =>", toString.call(this), ", result => ", '' + result, ', 暂时未实现功能'); + } + return result; +} +this.Database_changeVersion = function () { + let r = cbb_wf.checkIllegal(this, "Database"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Database_changeVersion, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Database_readTransaction = function () { + let r = cbb_wf.checkIllegal(this, "Database"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Database_readTransaction, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} +this.Database_transaction = function () { + let r = cbb_wf.checkIllegal(this, "Database"); + let ctx = r[0]; + if (r[1]) { + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] Database_transaction, this => ", toString.call(this), ", arguments => ", arguments, ", result => ", '' + result, " , 暂时未实现功能"); + } + return result; +} + + +this.CSS_get_highlights = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, "highlights"); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_get_highlights, this =>", this + '', ", result => ", result + ''); + } + return result; +} +this.CSS_Hz = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_Hz, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_Q = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_Q, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_cap = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_cap, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_ch = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_ch, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_cm = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_cm, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_cqb = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_cqb, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_cqh = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_cqh, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_cqi = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_cqi, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_cqmax = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_cqmax, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_cqmin = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_cqmin, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_cqw = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_cqw, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_deg = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_deg, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_dpcm = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_dpcm, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_dpi = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_dpi, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_dppx = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_dppx, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_dvb = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_dvb, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_dvh = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_dvh, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_dvi = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_dvi, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_dvmax = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_dvmax, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_dvmin = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_dvmin, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_dvw = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_dvw, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_em = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_em, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_ex = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_ex, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_fr = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_fr, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_grad = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_grad, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_ic = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_ic, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_in = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_in, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_kHz = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_kHz, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_lh = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_lh, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_lvb = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_lvb, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_lvh = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_lvh, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_lvi = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_lvi, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_lvmax = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_lvmax, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_lvmin = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_lvmin, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_lvw = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_lvw, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_mm = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_mm, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_ms = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_ms, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_number = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_number, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_pc = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_pc, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_percent = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_percent, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_pt = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_pt, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_px = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_px, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_rad = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_rad, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_rcap = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_rcap, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_rch = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_rch, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_registerProperty = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_registerProperty, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_rem = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_rem, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_rex = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_rex, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_ric = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_ric, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_rlh = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_rlh, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_s = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_s, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_supports = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_supports, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_svb = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_svb, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_svh = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_svh, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_svi = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_svi, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_svmax = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_svmax, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_svmin = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_svmin, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_svw = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_svw, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_turn = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_turn, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_vb = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_vb, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_vh = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_vh, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_vi = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_vi, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_vmax = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_vmax, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_vmin = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_vmin, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_vw = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_vw, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_x = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_x, this =>", this + '', ", arguments => ", arguments, ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.CSS_get_paintWorklet = function () { + let r = cbb_wf.checkIllegal(this, "css"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, "paintWorklet"); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] css_get_paintWorklet, this =>", this + '', ", result => ", result + ''); + } + return result; +} + +this.console_set_memory = function (val) { + let r = cbb_wf.checkIllegal(this, "console"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result; + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] console_set_memory, this =>", this + '', ", result => ", result + '', ".暂未实现"); + } + return result; +} +this.console_get_memory = function () { + let r = cbb_wf.checkIllegal(this, "console"); + let ctx = r[0]; + if (r[1]) { + // 报错 + throw cbb_wf.newError.call(ctx, "Illegal invocation"); + } + let result = cbb_wf.getValue(this, "memory"); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] console_get_memory, this =>", this + '', ", result => ", result + '', ".暂未实现"); + } + return result; +} diff --git a/test/test.js b/test/test.js index 9dd5263..e9a71b0 100644 --- a/test/test.js +++ b/test/test.js @@ -1,4 +1,10 @@ -document.__proto__ = Object.prototype; -cbb_wf.console.log(document instanceof Document); -let ck_get = Object.getOwnPropertyDescriptor(Document.prototype, "cookie").get -cbb_wf.console.log(ck_get.call(document)); \ No newline at end of file +// document.__proto__ = Object.prototype; +// cbb_wf.console.log(document instanceof Document); +// let ck_get = Object.getOwnPropertyDescriptor(Document.prototype, "cookie").get +// cbb_wf.console.log(ck_get.call(document)); + +// 这个要补的产品 + + +// js直接在这里面拼接 +cbb_wf.console.log(location.origin) \ No newline at end of file diff --git a/ubuntu_node.gz b/ubuntu_node.zip similarity index 74% rename from ubuntu_node.gz rename to ubuntu_node.zip index a9ed67c..c4a95d6 100644 Binary files a/ubuntu_node.gz and b/ubuntu_node.zip differ diff --git a/util/init.js b/util/init.js index eec77e9..dc7a2b4 100644 --- a/util/init.js +++ b/util/init.js @@ -1,5 +1,5 @@ cbb_wf.console.time("vm初始化框架"); -delete this.console; + my_api.memory = { window: this, stack: [], @@ -13,7 +13,6 @@ my_api.memory = { }; - // 存放构造函数 my_api.ctr = { URL: function URL() { @@ -77,87 +76,13 @@ my_api.stack_intercept = function (sk) { }; my_api.destory = function () { - my_api.memory.timers.map(timer => { + my_api.memory.timers.forEach(timer => { timer && cbb_wf.clearTimeout(timer); }); } -// 动态数组 -my_api.newRadioNodeList = function (object) { - let Handle = { - get(target, p, receiver) { - let result; - let list = cbb_wf.getValue(target, "list"); - if (list.hasOwnProperty(p)) { - result = my_api.getWrapperObject(list[p]); - } else { - result = Reflect.get(target, p, receiver); - } - if (cbb_wf.is_log && target.hasOwnProperty(p)) cbb_wf.console.log(`[*] Proxy_${type}_get`, `, key => `, p, ", result =>", Object.prototype.toString.call(result)); - return result; - }, - set(target, p, v, receiver) { - if (typeof p !== "symbol") { - if (isNaN(Number(p)) || (p[0] === "0" && p.length > 1)) { - // 非数字的才set - let list = cbb_wf.getValue(target, "list"); - if (!list.hasOwnProperty(p)) { - return Reflect.set(target, p, v, receiver); - } - } else return true; - } - // if (cbb_wf.is_log && target.hasOwnProperty(p)) cbb_wf.console.log(`[*] Proxy_${type}_set`, `, key => `, p, ", value =>", v); - return Reflect.set(target, p, v, receiver); - }, - deleteProperty(target, p) { - let list = cbb_wf.getValue(target, "list"); - if (!isNaN(Number(p))) { - return false; - } else if (list.hasOwnProperty(p)) { - return false; - } - if (cbb_wf.is_log && target.hasOwnProperty(p)) cbb_wf.console.log(`[*] Proxy_${type}_deleteProperty`, `, key => `, p); - return delete target[p]; - }, - defineProperty(target, p, prop) { - cbb_wf.console.log("[*] 请注意, RadioNodeList属性被定义了. key =>", p, ", prop =>", prop); - if (!isNaN(Number(p) && (p[0] !== "0" || p.length === 1))) { - let err = new my_api.ctr.TypeError(`Failed to set an indexed property on '${type}': Index property setter is not supported.`); - let stack = err.stack.split("\n"); - stack.splice(1, 1); - err.stack = stack.join("\n"); - throw err; - } - return Reflect.defineProperty(target, p, prop); - }, - has(target, p) { - if (p === "wrapper_object") return false; - let list = cbb_wf.getValue(target, "list"); - let result = list.hasOwnProperty(p) || p in target; - if (cbb_wf.is_log) cbb_wf.console.log(`[*] Proxy_${type}_has`, `, key => `, p, ", result =>", result); - return result; - }, - getOwnPropertyDescriptor(target, p) { - if (cbb_wf.is_log) cbb_wf.console.log(`[*] Proxy_${type}_getOwnPropertyDescriptor`, `, key => `, p); - let list = cbb_wf.getValue(target, "list"); - if (list.hasOwnProperty(p)) { - let desc = Object.getOwnPropertyDescriptor(list, p); - desc.value = my_api.getWrapperObject(desc.value); - return desc; - } - return Reflect.getOwnPropertyDescriptor(target, p); - }, - ownKeys(target) { - let keys = Reflect.ownKeys(target); - let dom_keys = Object.getOwnPropertyNames(cbb_wf.getValue(target, "list")); - dom_keys = dom_keys.concat(keys); - return dom_keys; - } - } - return new Proxy(object, Handle) -} -// 动态数组 +// 动态数组, document.all my_api.newHtmlCollection = function (dom_element, type) { let t; type = type || dom_element.__proto__[Symbol.toStringTag]; @@ -321,15 +246,15 @@ my_api.proxyWindowProperties = function () { let result; if (cbb_wf.hasValue(w_p, p)) { result = cbb_wf.getValue(w_p, p); - } else { + } else if (typeof p == "string" && p in my_api.dom_window) { result = my_api.dom_window[p]; if (result && result[Symbol.toStringTag] == "HTMLFormElement") { - result = my_api.getWrapperObject(result) } else result = Reflect.get(target, p, receiver); + } else if (typeof p == "symbol") { + result = Reflect.get(target, p, receiver); } - - if (cbb_wf.is_log && !result && typeof p == "string") { + if (p !== "splice" && cbb_wf.is_log && !result && typeof p == "string") { // 打印不属于window下的属性 cbb_wf.console.log(`[*] WindowProperties_prototype_get, receiver =>`, Object.prototype.toString.call(receiver), `, key =>`, p, ", result => ", result); } @@ -337,8 +262,9 @@ my_api.proxyWindowProperties = function () { }, set(target, p, value, receiver) { if (typeof p !== "symbol") { - if (!isNaN(Number(p) && (p[0] !== "0" || p.length === 1))) { return true; } - else if (receiver === w_p && p === "__proto__") { + if (!isNaN(Number(p) && (p[0] !== "0" || p.length === 1))) { + return true; + } else if (receiver === w_p && p === "__proto__" && value != EventTarget.prototype) { let err = new my_api.ctr.TypeError("Immutable prototype object '#' cannot have their prototype set"); let stack = err.stack.split("\n"); stack[1] = " at set __proto__ [as __proto__] ()" @@ -351,10 +277,23 @@ my_api.proxyWindowProperties = function () { has(target, p) { if (cbb_wf.hasValue(w_p, p)) { return true; + } else if (typeof p == "string" && p in my_api.dom_window) { + let result = my_api.dom_window[p]; + if (result && result[Symbol.toStringTag] == "HTMLFormElement") { + return true; + } } return Reflect.has(target, p); }, - + deleteProperty(target, p) { + if (typeof p == "string" && p in my_api.dom_window) { + let result = my_api.dom_window[p]; + if (result && result[Symbol.toStringTag] == "HTMLFormElement") { + return false; + } + } + return Reflect.deleteProperty(target, p); + }, }); Window.prototype.__proto__ = w_p; cbb_wf.initValue(w_p, {}, "WindowProperties"); @@ -640,8 +579,6 @@ my_api.initProto = function () { Object.setPrototypeOf(Node.prototype, EventTarget.prototype); NetworkInformation.__proto__ = EventTarget; Object.setPrototypeOf(NetworkInformation.prototype, EventTarget.prototype); - MutationEvent.__proto__ = Event; - Object.setPrototypeOf(MutationEvent.prototype, Event.prototype); MouseEvent.__proto__ = UIEvent; Object.setPrototypeOf(MouseEvent.prototype, UIEvent.prototype); MessagePort.__proto__ = EventTarget; @@ -1246,8325 +1183,14650 @@ my_api.initProto = function () { Object.setPrototypeOf(TrustedTypePolicyFactory.prototype, EventTarget.prototype); VirtualKeyboardGeometryChangeEvent.__proto__ = Event; Object.setPrototypeOf(VirtualKeyboardGeometryChangeEvent.prototype, Event.prototype); + + // 20250119 + TextUpdateEvent.__proto__ = Event; + Object.setPrototypeOf(TextUpdateEvent.prototype, Event.prototype); + TextFormatUpdateEvent.__proto__ = Event; + Object.setPrototypeOf(TextFormatUpdateEvent.prototype, Event.prototype); + EditContext.__proto__ = EventTarget; + Object.setPrototypeOf(EditContext.prototype, EventTarget.prototype); + CloseWatcher.__proto__ = EventTarget; + Object.setPrototypeOf(CloseWatcher.prototype, EventTarget.prototype); + CharacterBoundsUpdateEvent.__proto__ = Event; + Object.setPrototypeOf(CharacterBoundsUpdateEvent.prototype, Event.prototype); + CSSPositionTryRule.__proto__ = CSSRule; + Object.setPrototypeOf(CSSPositionTryRule.prototype, CSSRule.prototype); + CSSPositionTryDescriptors.__proto__ = CSSStyleDeclaration; + Object.setPrototypeOf(CSSPositionTryDescriptors.prototype, CSSStyleDeclaration.prototype); + IdentityCredentialError.__proto__ = DOMException; + Object.setPrototypeOf(IdentityCredentialError.prototype, DOMException.prototype); + XRJointPose.__proto__ = XRPose; + Object.setPrototypeOf(XRJointPose.prototype, XRPose.prototype); + XRJointSpace.__proto__ = XRSpace; + Object.setPrototypeOf(XRJointSpace.prototype, XRSpace.prototype); + CSSMarginRule.__proto__ = CSSRule; + Object.setPrototypeOf(CSSMarginRule.prototype, CSSRule.prototype); + CSSNestedDeclarations.__proto__ = CSSRule; + Object.setPrototypeOf(CSSNestedDeclarations.prototype, CSSRule.prototype); + CSSViewTransitionRule.__proto__ = CSSRule; + Object.setPrototypeOf(CSSViewTransitionRule.prototype, CSSRule.prototype); + PageRevealEvent.__proto__ = Event; + Object.setPrototypeOf(PageRevealEvent.prototype, Event.prototype); + PageSwapEvent.__proto__ = Event; + Object.setPrototypeOf(PageSwapEvent.prototype, Event.prototype); + PerformanceLongAnimationFrameTiming.__proto__ = PerformanceEntry; + Object.setPrototypeOf(PerformanceLongAnimationFrameTiming.prototype, PerformanceEntry.prototype); + PerformanceScriptTiming.__proto__ = PerformanceEntry; + Object.setPrototypeOf(PerformanceScriptTiming.prototype, PerformanceEntry.prototype); + SnapEvent.__proto__ = Event; + Object.setPrototypeOf(SnapEvent.prototype, Event.prototype); + SpeechSynthesis.__proto__ = EventTarget; + Object.setPrototypeOf(SpeechSynthesis.prototype, EventTarget.prototype); + WebSocketError.__proto__ = DOMException; + Object.setPrototypeOf(WebSocketError.prototype, DOMException.prototype); + webkitSpeechRecognition.__proto__ = EventTarget; + Object.setPrototypeOf(webkitSpeechRecognition.prototype, EventTarget.prototype); + webkitSpeechRecognitionEvent.__proto__ = Event; + Object.setPrototypeOf(webkitSpeechRecognitionEvent.prototype, Event.prototype); + } + my_api.initEnv = function () { this.Option = this.Option || function Option() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Option': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Option, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new Option, arguments =>", arguments); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Option': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + } - cbb_wf.setNative(this.Option); this.Image = this.Image || function Image() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Image': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Image, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new Image, arguments =>", arguments); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Image': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + } - cbb_wf.setNative(this.Image); this.Audio = this.Audio || function Audio() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Audio': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Audio, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new Audio, arguments =>", arguments); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Audio': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.webkitURL = this.webkitURL || function URL() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> URL, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'URL': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.webkitRTCPeerConnection = this.webkitRTCPeerConnection || function RTCPeerConnection() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCPeerConnection, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCPeerConnection': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.webkitMediaStream = this.webkitMediaStream || function MediaStream() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaStream, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.WebKitMutationObserver = this.WebKitMutationObserver || function MutationObserver() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MutationObserver, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MutationObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'MutationObserver': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.WebKitCSSMatrix = this.WebKitCSSMatrix || function DOMMatrix() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMMatrix, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DOMMatrix': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + } - cbb_wf.setNative(this.Audio); this.XSLTProcessor = this.XSLTProcessor || function XSLTProcessor() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'XSLTProcessor': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XSLTProcessor, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new XSLTProcessor, arguments =>", arguments); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'XSLTProcessor': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + } - cbb_wf.setNative(this.XSLTProcessor); this.XPathResult = this.XPathResult || function XPathResult() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XPathResult, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new XPathResult, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XPathResult': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.XPathResult); this.XPathExpression = this.XPathExpression || function XPathExpression() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XPathExpression, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new XPathExpression, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XPathExpression': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.XPathExpression); this.XPathEvaluator = this.XPathEvaluator || function XPathEvaluator() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'XPathEvaluator': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XPathEvaluator, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new XPathEvaluator, arguments =>", arguments); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'XPathEvaluator': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + } - cbb_wf.setNative(this.XPathEvaluator); this.XMLSerializer = this.XMLSerializer || function XMLSerializer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'XMLSerializer': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XMLSerializer, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new XMLSerializer, arguments =>", arguments); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'XMLSerializer': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + } - cbb_wf.setNative(this.XMLSerializer); this.XMLHttpRequestUpload = this.XMLHttpRequestUpload || function XMLHttpRequestUpload() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XMLHttpRequestUpload, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new XMLHttpRequestUpload, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XMLHttpRequestUpload': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.XMLHttpRequestUpload); this.XMLHttpRequestEventTarget = this.XMLHttpRequestEventTarget || function XMLHttpRequestEventTarget() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XMLHttpRequestEventTarget, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new XMLHttpRequestEventTarget, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XMLHttpRequestEventTarget': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.XMLHttpRequestEventTarget); this.XMLHttpRequest = this.XMLHttpRequest || function XMLHttpRequest() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'XMLHttpRequest': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XMLHttpRequest, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new XMLHttpRequest, arguments =>", arguments); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'XMLHttpRequest': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + } - cbb_wf.setNative(this.XMLHttpRequest); this.XMLDocument = this.XMLDocument || function XMLDocument() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XMLDocument, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new XMLDocument, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XMLDocument': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.XMLDocument); this.WritableStreamDefaultWriter = this.WritableStreamDefaultWriter || function WritableStreamDefaultWriter() { - // 如果是直接调用函数的话 new.target为undefined + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WritableStreamDefaultWriter, ", "arguments => ", arguments) + } if (!new.target) { - throw new TypeError("Failed to construct 'WritableStreamDefaultWriter': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let err = new my_api.ctr.TypeError("Failed to construct 'WritableStreamDefaultWriter': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err } if (arguments.length < 1) { - throw new TypeError("Failed to construct 'WritableStreamDefaultWriter': 1 argument required, but only 0 present.".replace('0', arguments.length)); + let err = new my_api.ctr.TypeError("Failed to construct 'WritableStreamDefaultWriter': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.console.log("[*] new WritableStreamDefaultWriter, arguments =>", arguments); - return this; } - cbb_wf.setNative(this.WritableStreamDefaultWriter); this.WritableStreamDefaultController = this.WritableStreamDefaultController || function WritableStreamDefaultController() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WritableStreamDefaultController, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new WritableStreamDefaultController, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WritableStreamDefaultController': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.WritableStreamDefaultController); this.WritableStream = this.WritableStream || function WritableStream() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'WritableStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WritableStream, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new WritableStream, arguments =>", arguments); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'WritableStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + } - cbb_wf.setNative(this.WritableStream); this.Worker = this.Worker || function Worker() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Worker': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'Worker': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new Worker, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Worker); - this.Window = this.Window || function Window() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Window, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Window); - this.WheelEvent = this.WheelEvent || function WheelEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'WheelEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'WheelEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new WheelEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.WheelEvent); - this.WebSocket = this.WebSocket || function WebSocket() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'WebSocket': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'WebSocket': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new WebSocket, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.WebSocket); - this.WebGLVertexArrayObject = this.WebGLVertexArrayObject || function WebGLVertexArrayObject() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLVertexArrayObject, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLVertexArrayObject); - this.WebGLUniformLocation = this.WebGLUniformLocation || function WebGLUniformLocation() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLUniformLocation, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLUniformLocation); - this.WebGLTransformFeedback = this.WebGLTransformFeedback || function WebGLTransformFeedback() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLTransformFeedback, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLTransformFeedback); - this.WebGLTexture = this.WebGLTexture || function WebGLTexture() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLTexture, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLTexture); - this.WebGLSync = this.WebGLSync || function WebGLSync() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLSync, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLSync); - this.WebGLShaderPrecisionFormat = this.WebGLShaderPrecisionFormat || function WebGLShaderPrecisionFormat() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLShaderPrecisionFormat, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLShaderPrecisionFormat); - this.WebGLShader = this.WebGLShader || function WebGLShader() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLShader, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLShader); - this.WebGLSampler = this.WebGLSampler || function WebGLSampler() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLSampler, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLSampler); - this.WebGLRenderingContext = this.WebGLRenderingContext || function WebGLRenderingContext() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLRenderingContext, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLRenderingContext); - this.WebGLRenderbuffer = this.WebGLRenderbuffer || function WebGLRenderbuffer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLRenderbuffer, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLRenderbuffer); - this.WebGLQuery = this.WebGLQuery || function WebGLQuery() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLQuery, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLQuery); - this.WebGLProgram = this.WebGLProgram || function WebGLProgram() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLProgram, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLProgram); - this.WebGLFramebuffer = this.WebGLFramebuffer || function WebGLFramebuffer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLFramebuffer, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLFramebuffer); - this.WebGLContextEvent = this.WebGLContextEvent || function WebGLContextEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'WebGLContextEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'WebGLContextEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new WebGLContextEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.WebGLContextEvent); - this.WebGLBuffer = this.WebGLBuffer || function WebGLBuffer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLBuffer, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLBuffer); - this.WebGLActiveInfo = this.WebGLActiveInfo || function WebGLActiveInfo() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGLActiveInfo, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGLActiveInfo); - this.WebGL2RenderingContext = this.WebGL2RenderingContext || function WebGL2RenderingContext() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebGL2RenderingContext, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebGL2RenderingContext); - this.WaveShaperNode = this.WaveShaperNode || function WaveShaperNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'WaveShaperNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'WaveShaperNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new WaveShaperNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.WaveShaperNode); - this.VisualViewport = this.VisualViewport || function VisualViewport() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new VisualViewport, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.VisualViewport); - this.VirtualKeyboardGeometryChangeEvent = this.VirtualKeyboardGeometryChangeEvent || function VirtualKeyboardGeometryChangeEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'VirtualKeyboardGeometryChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'VirtualKeyboardGeometryChangeEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new VirtualKeyboardGeometryChangeEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.VirtualKeyboardGeometryChangeEvent); - this.ValidityState = this.ValidityState || function ValidityState() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ValidityState, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ValidityState); - this.VTTCue = this.VTTCue || function VTTCue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'VTTCue': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new VTTCue, arguments =>", arguments); - throw new TypeError("Failed to construct 'VTTCue': 3 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.VTTCue); - this.UserActivation = this.UserActivation || function UserActivation() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new UserActivation, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.UserActivation); - this.URLSearchParams = this.URLSearchParams || function URLSearchParams() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'URLSearchParams': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new URLSearchParams, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.URLSearchParams); - this.URLPattern = this.URLPattern || function URLPattern() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'URLPattern': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new URLPattern, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.URLPattern); - this.URL = this.URL || function URL() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'URL': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new URL, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.URL); - this.UIEvent = this.UIEvent || function UIEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'UIEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'UIEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new UIEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.UIEvent); - this.TrustedTypePolicyFactory = this.TrustedTypePolicyFactory || function TrustedTypePolicyFactory() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TrustedTypePolicyFactory, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TrustedTypePolicyFactory); - this.TrustedTypePolicy = this.TrustedTypePolicy || function TrustedTypePolicy() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TrustedTypePolicy, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TrustedTypePolicy); - this.TrustedScriptURL = this.TrustedScriptURL || function TrustedScriptURL() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TrustedScriptURL, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TrustedScriptURL); - this.TrustedScript = this.TrustedScript || function TrustedScript() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TrustedScript, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TrustedScript); - this.TrustedHTML = this.TrustedHTML || function TrustedHTML() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TrustedHTML, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TrustedHTML); - this.TreeWalker = this.TreeWalker || function TreeWalker() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TreeWalker, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TreeWalker); - this.TransitionEvent = this.TransitionEvent || function TransitionEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'TransitionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'TransitionEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new TransitionEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.TransitionEvent); - this.TransformStreamDefaultController = this.TransformStreamDefaultController || function TransformStreamDefaultController() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TransformStreamDefaultController, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TransformStreamDefaultController); - this.TransformStream = this.TransformStream || function TransformStream() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'TransformStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new TransformStream, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.TransformStream); - this.TrackEvent = this.TrackEvent || function TrackEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'TrackEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'TrackEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new TrackEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.TrackEvent); - this.TouchList = this.TouchList || function TouchList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TouchList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TouchList); - this.TouchEvent = this.TouchEvent || function TouchEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'TouchEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'TouchEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new TouchEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.TouchEvent); - this.Touch = this.Touch || function Touch() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Touch': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'Touch': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new Touch, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Touch); - this.ToggleEvent = this.ToggleEvent || function ToggleEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ToggleEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ToggleEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ToggleEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ToggleEvent); - this.TimeRanges = this.TimeRanges || function TimeRanges() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TimeRanges, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TimeRanges); - this.TextTrackList = this.TextTrackList || function TextTrackList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TextTrackList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TextTrackList); - this.TextTrackCueList = this.TextTrackCueList || function TextTrackCueList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TextTrackCueList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TextTrackCueList); - this.TextTrackCue = this.TextTrackCue || function TextTrackCue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TextTrackCue, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TextTrackCue); - this.TextTrack = this.TextTrack || function TextTrack() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TextTrack, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TextTrack); - this.TextMetrics = this.TextMetrics || function TextMetrics() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TextMetrics, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TextMetrics); - this.TextEvent = this.TextEvent || function TextEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TextEvent, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TextEvent); - this.TextEncoderStream = this.TextEncoderStream || function TextEncoderStream() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'TextEncoderStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new TextEncoderStream, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.TextEncoderStream); - this.TextEncoder = this.TextEncoder || function TextEncoder() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'TextEncoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new TextEncoder, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.TextEncoder); - this.TextDecoderStream = this.TextDecoderStream || function TextDecoderStream() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'TextDecoderStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new TextDecoderStream, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.TextDecoderStream); - this.TextDecoder = this.TextDecoder || function TextDecoder() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'TextDecoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new TextDecoder, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.TextDecoder); - this.Text = this.Text || function Text() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Text': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new Text, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Text); - this.TaskSignal = this.TaskSignal || function TaskSignal() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TaskSignal, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TaskSignal); - this.TaskPriorityChangeEvent = this.TaskPriorityChangeEvent || function TaskPriorityChangeEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'TaskPriorityChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new TaskPriorityChangeEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'TaskPriorityChangeEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.TaskPriorityChangeEvent); - this.TaskController = this.TaskController || function TaskController() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'TaskController': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new TaskController, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.TaskController); - this.TaskAttributionTiming = this.TaskAttributionTiming || function TaskAttributionTiming() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new TaskAttributionTiming, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.TaskAttributionTiming); - this.SyncManager = this.SyncManager || function SyncManager() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SyncManager, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SyncManager); - this.SubmitEvent = this.SubmitEvent || function SubmitEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'SubmitEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'SubmitEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new SubmitEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.SubmitEvent); - this.StyleSheetList = this.StyleSheetList || function StyleSheetList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new StyleSheetList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.StyleSheetList); - this.StyleSheet = this.StyleSheet || function StyleSheet() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new StyleSheet, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.StyleSheet); - this.StylePropertyMapReadOnly = this.StylePropertyMapReadOnly || function StylePropertyMapReadOnly() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new StylePropertyMapReadOnly, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.StylePropertyMapReadOnly); - this.StylePropertyMap = this.StylePropertyMap || function StylePropertyMap() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new StylePropertyMap, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.StylePropertyMap); - this.StorageEvent = this.StorageEvent || function StorageEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'StorageEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'StorageEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new StorageEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.StorageEvent); - this.Storage = this.Storage || function Storage() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Storage, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Storage); - this.StereoPannerNode = this.StereoPannerNode || function StereoPannerNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'StereoPannerNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'StereoPannerNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new StereoPannerNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.StereoPannerNode); - this.StaticRange = this.StaticRange || function StaticRange() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'StaticRange': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'StaticRange': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new StaticRange, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.StaticRange); - this.SourceBufferList = this.SourceBufferList || function SourceBufferList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SourceBufferList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SourceBufferList); - this.SourceBuffer = this.SourceBuffer || function SourceBuffer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SourceBuffer, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SourceBuffer); - this.ShadowRoot = this.ShadowRoot || function ShadowRoot() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ShadowRoot, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ShadowRoot); - this.Selection = this.Selection || function Selection() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Selection, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Selection); - this.SecurityPolicyViolationEvent = this.SecurityPolicyViolationEvent || function SecurityPolicyViolationEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'SecurityPolicyViolationEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'SecurityPolicyViolationEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new SecurityPolicyViolationEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.SecurityPolicyViolationEvent); - this.ScriptProcessorNode = this.ScriptProcessorNode || function ScriptProcessorNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ScriptProcessorNode, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ScriptProcessorNode); - this.ScreenOrientation = this.ScreenOrientation || function ScreenOrientation() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ScreenOrientation, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ScreenOrientation); - this.Screen = this.Screen || function Screen() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Screen, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Screen); - this.Scheduling = this.Scheduling || function Scheduling() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Scheduling, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Scheduling); - this.Scheduler = this.Scheduler || function Scheduler() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Scheduler, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Scheduler); - this.SVGViewElement = this.SVGViewElement || function SVGViewElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGViewElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGViewElement); - this.SVGUseElement = this.SVGUseElement || function SVGUseElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGUseElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGUseElement); - this.SVGUnitTypes = this.SVGUnitTypes || function SVGUnitTypes() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGUnitTypes, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGUnitTypes); - this.SVGTransformList = this.SVGTransformList || function SVGTransformList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGTransformList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGTransformList); - this.SVGTransform = this.SVGTransform || function SVGTransform() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGTransform, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGTransform); - this.SVGTitleElement = this.SVGTitleElement || function SVGTitleElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGTitleElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGTitleElement); - this.SVGTextPositioningElement = this.SVGTextPositioningElement || function SVGTextPositioningElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGTextPositioningElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGTextPositioningElement); - this.SVGTextPathElement = this.SVGTextPathElement || function SVGTextPathElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGTextPathElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGTextPathElement); - this.SVGTextElement = this.SVGTextElement || function SVGTextElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGTextElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGTextElement); - this.SVGTextContentElement = this.SVGTextContentElement || function SVGTextContentElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGTextContentElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGTextContentElement); - this.SVGTSpanElement = this.SVGTSpanElement || function SVGTSpanElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGTSpanElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGTSpanElement); - this.SVGSymbolElement = this.SVGSymbolElement || function SVGSymbolElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGSymbolElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGSymbolElement); - this.SVGSwitchElement = this.SVGSwitchElement || function SVGSwitchElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGSwitchElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGSwitchElement); - this.SVGStyleElement = this.SVGStyleElement || function SVGStyleElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGStyleElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGStyleElement); - this.SVGStringList = this.SVGStringList || function SVGStringList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGStringList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGStringList); - this.SVGStopElement = this.SVGStopElement || function SVGStopElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGStopElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGStopElement); - this.SVGSetElement = this.SVGSetElement || function SVGSetElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGSetElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGSetElement); - this.SVGScriptElement = this.SVGScriptElement || function SVGScriptElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGScriptElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGScriptElement); - this.SVGSVGElement = this.SVGSVGElement || function SVGSVGElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGSVGElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGSVGElement); - this.SVGRectElement = this.SVGRectElement || function SVGRectElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGRectElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGRectElement); - this.SVGRect = this.SVGRect || function SVGRect() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGRect, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGRect); - this.SVGRadialGradientElement = this.SVGRadialGradientElement || function SVGRadialGradientElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGRadialGradientElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGRadialGradientElement); - this.SVGPreserveAspectRatio = this.SVGPreserveAspectRatio || function SVGPreserveAspectRatio() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGPreserveAspectRatio, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGPreserveAspectRatio); - this.SVGPolylineElement = this.SVGPolylineElement || function SVGPolylineElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGPolylineElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGPolylineElement); - this.SVGPolygonElement = this.SVGPolygonElement || function SVGPolygonElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGPolygonElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGPolygonElement); - this.SVGPointList = this.SVGPointList || function SVGPointList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGPointList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGPointList); - this.SVGPoint = this.SVGPoint || function SVGPoint() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGPoint, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGPoint); - this.SVGPatternElement = this.SVGPatternElement || function SVGPatternElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGPatternElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGPatternElement); - this.SVGPathElement = this.SVGPathElement || function SVGPathElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGPathElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGPathElement); - this.SVGNumberList = this.SVGNumberList || function SVGNumberList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGNumberList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGNumberList); - this.SVGNumber = this.SVGNumber || function SVGNumber() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGNumber, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGNumber); - this.SVGMetadataElement = this.SVGMetadataElement || function SVGMetadataElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGMetadataElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGMetadataElement); - this.SVGMatrix = this.SVGMatrix || function SVGMatrix() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGMatrix, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGMatrix); - this.SVGMaskElement = this.SVGMaskElement || function SVGMaskElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGMaskElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGMaskElement); - this.SVGMarkerElement = this.SVGMarkerElement || function SVGMarkerElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGMarkerElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGMarkerElement); - this.SVGMPathElement = this.SVGMPathElement || function SVGMPathElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGMPathElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGMPathElement); - this.SVGLinearGradientElement = this.SVGLinearGradientElement || function SVGLinearGradientElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGLinearGradientElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGLinearGradientElement); - this.SVGLineElement = this.SVGLineElement || function SVGLineElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGLineElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGLineElement); - this.SVGLengthList = this.SVGLengthList || function SVGLengthList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGLengthList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGLengthList); - this.SVGLength = this.SVGLength || function SVGLength() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGLength, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGLength); - this.SVGImageElement = this.SVGImageElement || function SVGImageElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGImageElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGImageElement); - this.SVGGraphicsElement = this.SVGGraphicsElement || function SVGGraphicsElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGGraphicsElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGGraphicsElement); - this.SVGGradientElement = this.SVGGradientElement || function SVGGradientElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGGradientElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGGradientElement); - this.SVGGeometryElement = this.SVGGeometryElement || function SVGGeometryElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGGeometryElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGGeometryElement); - this.SVGGElement = this.SVGGElement || function SVGGElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGGElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGGElement); - this.SVGForeignObjectElement = this.SVGForeignObjectElement || function SVGForeignObjectElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGForeignObjectElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGForeignObjectElement); - this.SVGFilterElement = this.SVGFilterElement || function SVGFilterElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFilterElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFilterElement); - this.SVGFETurbulenceElement = this.SVGFETurbulenceElement || function SVGFETurbulenceElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFETurbulenceElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFETurbulenceElement); - this.SVGFETileElement = this.SVGFETileElement || function SVGFETileElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFETileElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFETileElement); - this.SVGFESpotLightElement = this.SVGFESpotLightElement || function SVGFESpotLightElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFESpotLightElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFESpotLightElement); - this.SVGFESpecularLightingElement = this.SVGFESpecularLightingElement || function SVGFESpecularLightingElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFESpecularLightingElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFESpecularLightingElement); - this.SVGFEPointLightElement = this.SVGFEPointLightElement || function SVGFEPointLightElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEPointLightElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEPointLightElement); - this.SVGFEOffsetElement = this.SVGFEOffsetElement || function SVGFEOffsetElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEOffsetElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEOffsetElement); - this.SVGFEMorphologyElement = this.SVGFEMorphologyElement || function SVGFEMorphologyElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEMorphologyElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEMorphologyElement); - this.SVGFEMergeNodeElement = this.SVGFEMergeNodeElement || function SVGFEMergeNodeElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEMergeNodeElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEMergeNodeElement); - this.SVGFEMergeElement = this.SVGFEMergeElement || function SVGFEMergeElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEMergeElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEMergeElement); - this.SVGFEImageElement = this.SVGFEImageElement || function SVGFEImageElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEImageElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEImageElement); - this.SVGFEGaussianBlurElement = this.SVGFEGaussianBlurElement || function SVGFEGaussianBlurElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEGaussianBlurElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEGaussianBlurElement); - this.SVGFEFuncRElement = this.SVGFEFuncRElement || function SVGFEFuncRElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEFuncRElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEFuncRElement); - this.SVGFEFuncGElement = this.SVGFEFuncGElement || function SVGFEFuncGElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEFuncGElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEFuncGElement); - this.SVGFEFuncBElement = this.SVGFEFuncBElement || function SVGFEFuncBElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEFuncBElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEFuncBElement); - this.SVGFEFuncAElement = this.SVGFEFuncAElement || function SVGFEFuncAElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEFuncAElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEFuncAElement); - this.SVGFEFloodElement = this.SVGFEFloodElement || function SVGFEFloodElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEFloodElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEFloodElement); - this.SVGFEDropShadowElement = this.SVGFEDropShadowElement || function SVGFEDropShadowElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEDropShadowElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEDropShadowElement); - this.SVGFEDistantLightElement = this.SVGFEDistantLightElement || function SVGFEDistantLightElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEDistantLightElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEDistantLightElement); - this.SVGFEDisplacementMapElement = this.SVGFEDisplacementMapElement || function SVGFEDisplacementMapElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEDisplacementMapElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEDisplacementMapElement); - this.SVGFEDiffuseLightingElement = this.SVGFEDiffuseLightingElement || function SVGFEDiffuseLightingElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEDiffuseLightingElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEDiffuseLightingElement); - this.SVGFEConvolveMatrixElement = this.SVGFEConvolveMatrixElement || function SVGFEConvolveMatrixElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEConvolveMatrixElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEConvolveMatrixElement); - this.SVGFECompositeElement = this.SVGFECompositeElement || function SVGFECompositeElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFECompositeElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFECompositeElement); - this.SVGFEComponentTransferElement = this.SVGFEComponentTransferElement || function SVGFEComponentTransferElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEComponentTransferElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEComponentTransferElement); - this.SVGFEColorMatrixElement = this.SVGFEColorMatrixElement || function SVGFEColorMatrixElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEColorMatrixElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEColorMatrixElement); - this.SVGFEBlendElement = this.SVGFEBlendElement || function SVGFEBlendElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGFEBlendElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGFEBlendElement); - this.SVGEllipseElement = this.SVGEllipseElement || function SVGEllipseElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGEllipseElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGEllipseElement); - this.SVGElement = this.SVGElement || function SVGElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGElement); - this.SVGDescElement = this.SVGDescElement || function SVGDescElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGDescElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGDescElement); - this.SVGDefsElement = this.SVGDefsElement || function SVGDefsElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGDefsElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGDefsElement); - this.SVGComponentTransferFunctionElement = this.SVGComponentTransferFunctionElement || function SVGComponentTransferFunctionElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGComponentTransferFunctionElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGComponentTransferFunctionElement); - this.SVGClipPathElement = this.SVGClipPathElement || function SVGClipPathElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGClipPathElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGClipPathElement); - this.SVGCircleElement = this.SVGCircleElement || function SVGCircleElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGCircleElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGCircleElement); - this.SVGAnimationElement = this.SVGAnimationElement || function SVGAnimationElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimationElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimationElement); - this.SVGAnimatedTransformList = this.SVGAnimatedTransformList || function SVGAnimatedTransformList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimatedTransformList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimatedTransformList); - this.SVGAnimatedString = this.SVGAnimatedString || function SVGAnimatedString() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimatedString, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimatedString); - this.SVGAnimatedRect = this.SVGAnimatedRect || function SVGAnimatedRect() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimatedRect, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimatedRect); - this.SVGAnimatedPreserveAspectRatio = this.SVGAnimatedPreserveAspectRatio || function SVGAnimatedPreserveAspectRatio() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimatedPreserveAspectRatio, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimatedPreserveAspectRatio); - this.SVGAnimatedNumberList = this.SVGAnimatedNumberList || function SVGAnimatedNumberList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimatedNumberList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimatedNumberList); - this.SVGAnimatedNumber = this.SVGAnimatedNumber || function SVGAnimatedNumber() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimatedNumber, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimatedNumber); - this.SVGAnimatedLengthList = this.SVGAnimatedLengthList || function SVGAnimatedLengthList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimatedLengthList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimatedLengthList); - this.SVGAnimatedLength = this.SVGAnimatedLength || function SVGAnimatedLength() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimatedLength, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimatedLength); - this.SVGAnimatedInteger = this.SVGAnimatedInteger || function SVGAnimatedInteger() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimatedInteger, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimatedInteger); - this.SVGAnimatedEnumeration = this.SVGAnimatedEnumeration || function SVGAnimatedEnumeration() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimatedEnumeration, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimatedEnumeration); - this.SVGAnimatedBoolean = this.SVGAnimatedBoolean || function SVGAnimatedBoolean() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimatedBoolean, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimatedBoolean); - this.SVGAnimatedAngle = this.SVGAnimatedAngle || function SVGAnimatedAngle() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimatedAngle, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimatedAngle); - this.SVGAnimateTransformElement = this.SVGAnimateTransformElement || function SVGAnimateTransformElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimateTransformElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimateTransformElement); - this.SVGAnimateMotionElement = this.SVGAnimateMotionElement || function SVGAnimateMotionElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimateMotionElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimateMotionElement); - this.SVGAnimateElement = this.SVGAnimateElement || function SVGAnimateElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAnimateElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAnimateElement); - this.SVGAngle = this.SVGAngle || function SVGAngle() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAngle, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAngle); - this.SVGAElement = this.SVGAElement || function SVGAElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SVGAElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SVGAElement); - this.Response = this.Response || function Response() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Response': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new Response, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Response); - this.ResizeObserverSize = this.ResizeObserverSize || function ResizeObserverSize() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ResizeObserverSize, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ResizeObserverSize); - this.ResizeObserverEntry = this.ResizeObserverEntry || function ResizeObserverEntry() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ResizeObserverEntry, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ResizeObserverEntry); - this.ResizeObserver = this.ResizeObserver || function ResizeObserver() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ResizeObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ResizeObserver, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ResizeObserver); - this.Request = this.Request || function Request() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Request': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'Request': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new Request, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Request); - this.ReportingObserver = this.ReportingObserver || function ReportingObserver() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ReportingObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ReportingObserver': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ReportingObserver, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ReportingObserver); - this.ReadableStreamDefaultReader = this.ReadableStreamDefaultReader || function ReadableStreamDefaultReader() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ReadableStreamDefaultReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ReadableStreamDefaultReader': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ReadableStreamDefaultReader, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ReadableStreamDefaultReader); - this.ReadableStreamDefaultController = this.ReadableStreamDefaultController || function ReadableStreamDefaultController() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ReadableStreamDefaultController, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ReadableStreamDefaultController); - this.ReadableStreamBYOBRequest = this.ReadableStreamBYOBRequest || function ReadableStreamBYOBRequest() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ReadableStreamBYOBRequest, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ReadableStreamBYOBRequest); - this.ReadableStreamBYOBReader = this.ReadableStreamBYOBReader || function ReadableStreamBYOBReader() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ReadableStreamBYOBReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ReadableStreamBYOBReader': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ReadableStreamBYOBReader, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ReadableStreamBYOBReader); - this.ReadableStream = this.ReadableStream || function ReadableStream() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ReadableStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new ReadableStream, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ReadableStream); - this.ReadableByteStreamController = this.ReadableByteStreamController || function ReadableByteStreamController() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ReadableByteStreamController, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ReadableByteStreamController); - this.Range = this.Range || function Range() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Range': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new Range, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Range); - this.RadioNodeList = this.RadioNodeList || function RadioNodeList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new RadioNodeList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.RadioNodeList); - this.RTCTrackEvent = this.RTCTrackEvent || function RTCTrackEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'RTCTrackEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new RTCTrackEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'RTCTrackEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.RTCTrackEvent); - this.RTCStatsReport = this.RTCStatsReport || function RTCStatsReport() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new RTCStatsReport, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.RTCStatsReport); - this.RTCSessionDescription = this.RTCSessionDescription || function RTCSessionDescription() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'RTCSessionDescription': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new RTCSessionDescription, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.RTCSessionDescription); - this.RTCSctpTransport = this.RTCSctpTransport || function RTCSctpTransport() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new RTCSctpTransport, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.RTCSctpTransport); - this.RTCRtpTransceiver = this.RTCRtpTransceiver || function RTCRtpTransceiver() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new RTCRtpTransceiver, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.RTCRtpTransceiver); - this.RTCRtpSender = this.RTCRtpSender || function RTCRtpSender() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new RTCRtpSender, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.RTCRtpSender); - this.RTCRtpReceiver = this.RTCRtpReceiver || function RTCRtpReceiver() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new RTCRtpReceiver, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.RTCRtpReceiver); - this.RTCPeerConnectionIceEvent = this.RTCPeerConnectionIceEvent || function RTCPeerConnectionIceEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'RTCPeerConnectionIceEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'RTCPeerConnectionIceEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new RTCPeerConnectionIceEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.RTCPeerConnectionIceEvent); - this.RTCPeerConnectionIceErrorEvent = this.RTCPeerConnectionIceErrorEvent || function RTCPeerConnectionIceErrorEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'RTCPeerConnectionIceErrorEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new RTCPeerConnectionIceErrorEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'RTCPeerConnectionIceErrorEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.RTCPeerConnectionIceErrorEvent); - this.RTCPeerConnection = this.RTCPeerConnection || function RTCPeerConnection() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'RTCPeerConnection': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new RTCPeerConnection, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.RTCPeerConnection); - this.RTCIceTransport = this.RTCIceTransport || function RTCIceTransport() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new RTCIceTransport, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.RTCIceTransport); - this.RTCIceCandidate = this.RTCIceCandidate || function RTCIceCandidate() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'RTCIceCandidate': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new RTCIceCandidate, arguments =>", arguments); - throw new TypeError("Failed to construct 'RTCIceCandidate': sdpMid and sdpMLineIndex are both null."); - return this; - } - cbb_wf.setNative(this.RTCIceCandidate); - this.RTCErrorEvent = this.RTCErrorEvent || function RTCErrorEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'RTCErrorEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new RTCErrorEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'RTCErrorEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.RTCErrorEvent); - this.RTCError = this.RTCError || function RTCError() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'RTCError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'RTCError': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new RTCError, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.RTCError); - this.RTCEncodedVideoFrame = this.RTCEncodedVideoFrame || function RTCEncodedVideoFrame() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new RTCEncodedVideoFrame, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.RTCEncodedVideoFrame); - this.RTCEncodedAudioFrame = this.RTCEncodedAudioFrame || function RTCEncodedAudioFrame() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new RTCEncodedAudioFrame, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.RTCEncodedAudioFrame); - this.RTCDtlsTransport = this.RTCDtlsTransport || function RTCDtlsTransport() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new RTCDtlsTransport, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.RTCDtlsTransport); - this.RTCDataChannelEvent = this.RTCDataChannelEvent || function RTCDataChannelEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'RTCDataChannelEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new RTCDataChannelEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'RTCDataChannelEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.RTCDataChannelEvent); - this.RTCDataChannel = this.RTCDataChannel || function RTCDataChannel() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new RTCDataChannel, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.RTCDataChannel); - this.RTCDTMFToneChangeEvent = this.RTCDTMFToneChangeEvent || function RTCDTMFToneChangeEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'RTCDTMFToneChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new RTCDTMFToneChangeEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'RTCDTMFToneChangeEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.RTCDTMFToneChangeEvent); - this.RTCDTMFSender = this.RTCDTMFSender || function RTCDTMFSender() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new RTCDTMFSender, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.RTCDTMFSender); - this.RTCCertificate = this.RTCCertificate || function RTCCertificate() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new RTCCertificate, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.RTCCertificate); - this.PromiseRejectionEvent = this.PromiseRejectionEvent || function PromiseRejectionEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PromiseRejectionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new PromiseRejectionEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'PromiseRejectionEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.PromiseRejectionEvent); - this.ProgressEvent = this.ProgressEvent || function ProgressEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ProgressEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ProgressEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ProgressEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ProgressEvent); - this.Profiler = this.Profiler || function Profiler() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Profiler': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'Profiler': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new Profiler, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Profiler); - this.ProcessingInstruction = this.ProcessingInstruction || function ProcessingInstruction() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ProcessingInstruction, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ProcessingInstruction); - this.PopStateEvent = this.PopStateEvent || function PopStateEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PopStateEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'PopStateEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new PopStateEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.PopStateEvent); - this.PointerEvent = this.PointerEvent || function PointerEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PointerEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'PointerEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new PointerEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.PointerEvent); - this.PluginArray = this.PluginArray || function PluginArray() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PluginArray, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PluginArray); - this.Plugin = this.Plugin || function Plugin() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Plugin, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Plugin); - this.PictureInPictureWindow = this.PictureInPictureWindow || function PictureInPictureWindow() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PictureInPictureWindow, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PictureInPictureWindow); - this.PictureInPictureEvent = this.PictureInPictureEvent || function PictureInPictureEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PictureInPictureEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new PictureInPictureEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'PictureInPictureEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.PictureInPictureEvent); - this.PeriodicWave = this.PeriodicWave || function PeriodicWave() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PeriodicWave': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'PeriodicWave': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new PeriodicWave, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.PeriodicWave); - this.PerformanceTiming = this.PerformanceTiming || function PerformanceTiming() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PerformanceTiming, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PerformanceTiming); - this.PerformanceServerTiming = this.PerformanceServerTiming || function PerformanceServerTiming() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PerformanceServerTiming, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PerformanceServerTiming); - this.PerformanceResourceTiming = this.PerformanceResourceTiming || function PerformanceResourceTiming() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PerformanceResourceTiming, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PerformanceResourceTiming); - this.PerformancePaintTiming = this.PerformancePaintTiming || function PerformancePaintTiming() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PerformancePaintTiming, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PerformancePaintTiming); - this.PerformanceObserverEntryList = this.PerformanceObserverEntryList || function PerformanceObserverEntryList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PerformanceObserverEntryList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PerformanceObserverEntryList); - this.PerformanceObserver = this.PerformanceObserver || function PerformanceObserver() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PerformanceObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'PerformanceObserver': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new PerformanceObserver, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.PerformanceObserver); - this.PerformanceNavigationTiming = this.PerformanceNavigationTiming || function PerformanceNavigationTiming() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PerformanceNavigationTiming, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PerformanceNavigationTiming); - this.PerformanceNavigation = this.PerformanceNavigation || function PerformanceNavigation() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PerformanceNavigation, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PerformanceNavigation); - this.PerformanceMeasure = this.PerformanceMeasure || function PerformanceMeasure() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PerformanceMeasure, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PerformanceMeasure); - this.PerformanceMark = this.PerformanceMark || function PerformanceMark() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PerformanceMark': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'PerformanceMark': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new PerformanceMark, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.PerformanceMark); - this.PerformanceLongTaskTiming = this.PerformanceLongTaskTiming || function PerformanceLongTaskTiming() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PerformanceLongTaskTiming, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PerformanceLongTaskTiming); - this.PerformanceEventTiming = this.PerformanceEventTiming || function PerformanceEventTiming() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PerformanceEventTiming, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PerformanceEventTiming); - this.PerformanceEntry = this.PerformanceEntry || function PerformanceEntry() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PerformanceEntry, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PerformanceEntry); - this.PerformanceElementTiming = this.PerformanceElementTiming || function PerformanceElementTiming() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PerformanceElementTiming, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PerformanceElementTiming); - this.Performance = this.Performance || function Performance() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Performance, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Performance); - this.Path2D = this.Path2D || function Path2D() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Path2D': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new Path2D, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Path2D); - this.PannerNode = this.PannerNode || function PannerNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PannerNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'PannerNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new PannerNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.PannerNode); - this.PageTransitionEvent = this.PageTransitionEvent || function PageTransitionEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PageTransitionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'PageTransitionEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new PageTransitionEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.PageTransitionEvent); - this.OverconstrainedError = this.OverconstrainedError || function OverconstrainedError() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'OverconstrainedError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'OverconstrainedError': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new OverconstrainedError, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.OverconstrainedError); - this.OscillatorNode = this.OscillatorNode || function OscillatorNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'OscillatorNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'OscillatorNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new OscillatorNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.OscillatorNode); - this.OffscreenCanvasRenderingContext2D = this.OffscreenCanvasRenderingContext2D || function OffscreenCanvasRenderingContext2D() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new OffscreenCanvasRenderingContext2D, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.OffscreenCanvasRenderingContext2D); - this.OffscreenCanvas = this.OffscreenCanvas || function OffscreenCanvas() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'OffscreenCanvas': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new OffscreenCanvas, arguments =>", arguments); - throw new TypeError("Failed to construct 'OffscreenCanvas': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.OffscreenCanvas); - this.OfflineAudioContext = this.OfflineAudioContext || function OfflineAudioContext() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'OfflineAudioContext': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'OfflineAudioContext': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new OfflineAudioContext, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.OfflineAudioContext); - this.OfflineAudioCompletionEvent = this.OfflineAudioCompletionEvent || function OfflineAudioCompletionEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'OfflineAudioCompletionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new OfflineAudioCompletionEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'OfflineAudioCompletionEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.OfflineAudioCompletionEvent); - this.NodeList = this.NodeList || function NodeList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new NodeList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.NodeList); - this.NodeIterator = this.NodeIterator || function NodeIterator() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new NodeIterator, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.NodeIterator); - this.Node = this.Node || function Node() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Node, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Node); - this.NetworkInformation = this.NetworkInformation || function NetworkInformation() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new NetworkInformation, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.NetworkInformation); - this.Navigator = this.Navigator || function Navigator() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Navigator, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Navigator); - this.NavigationTransition = this.NavigationTransition || function NavigationTransition() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new NavigationTransition, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.NavigationTransition); - this.NavigationHistoryEntry = this.NavigationHistoryEntry || function NavigationHistoryEntry() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new NavigationHistoryEntry, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.NavigationHistoryEntry); - this.NavigationDestination = this.NavigationDestination || function NavigationDestination() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new NavigationDestination, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.NavigationDestination); - this.NavigationCurrentEntryChangeEvent = this.NavigationCurrentEntryChangeEvent || function NavigationCurrentEntryChangeEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'NavigationCurrentEntryChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new NavigationCurrentEntryChangeEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'NavigationCurrentEntryChangeEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.NavigationCurrentEntryChangeEvent); - this.Navigation = this.Navigation || function Navigation() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Navigation, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Navigation); - this.NavigateEvent = this.NavigateEvent || function NavigateEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'NavigateEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new NavigateEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'NavigateEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.NavigateEvent); - this.NamedNodeMap = this.NamedNodeMap || function NamedNodeMap() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new NamedNodeMap, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.NamedNodeMap); - this.MutationRecord = this.MutationRecord || function MutationRecord() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MutationRecord, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MutationRecord); - this.MutationObserver = this.MutationObserver || function MutationObserver() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MutationObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'MutationObserver': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new MutationObserver, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MutationObserver); - this.MouseEvent = this.MouseEvent || function MouseEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MouseEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'MouseEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new MouseEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MouseEvent); - this.MimeTypeArray = this.MimeTypeArray || function MimeTypeArray() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MimeTypeArray, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MimeTypeArray); - this.MimeType = this.MimeType || function MimeType() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MimeType, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MimeType); - this.MessagePort = this.MessagePort || function MessagePort() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MessagePort, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MessagePort); - this.MessageEvent = this.MessageEvent || function MessageEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MessageEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'MessageEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new MessageEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MessageEvent); - this.MessageChannel = this.MessageChannel || function MessageChannel() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MessageChannel': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new MessageChannel, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MessageChannel); - this.MediaStreamTrackProcessor = this.MediaStreamTrackProcessor || function MediaStreamTrackProcessor() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MediaStreamTrackProcessor': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'MediaStreamTrackProcessor': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new MediaStreamTrackProcessor, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MediaStreamTrackProcessor); - this.MediaStreamTrackGenerator = this.MediaStreamTrackGenerator || function MediaStreamTrackGenerator() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MediaStreamTrackGenerator': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'MediaStreamTrackGenerator': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new MediaStreamTrackGenerator, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MediaStreamTrackGenerator); - this.MediaStreamTrackEvent = this.MediaStreamTrackEvent || function MediaStreamTrackEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MediaStreamTrackEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new MediaStreamTrackEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'MediaStreamTrackEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.MediaStreamTrackEvent); - this.MediaStreamTrack = this.MediaStreamTrack || function MediaStreamTrack() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MediaStreamTrack, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MediaStreamTrack); - this.MediaStreamEvent = this.MediaStreamEvent || function MediaStreamEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MediaStreamEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'MediaStreamEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new MediaStreamEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MediaStreamEvent); - this.MediaStreamAudioSourceNode = this.MediaStreamAudioSourceNode || function MediaStreamAudioSourceNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MediaStreamAudioSourceNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new MediaStreamAudioSourceNode, arguments =>", arguments); - throw new TypeError("Failed to construct 'MediaStreamAudioSourceNode': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.MediaStreamAudioSourceNode); - this.MediaStreamAudioDestinationNode = this.MediaStreamAudioDestinationNode || function MediaStreamAudioDestinationNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MediaStreamAudioDestinationNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'MediaStreamAudioDestinationNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new MediaStreamAudioDestinationNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MediaStreamAudioDestinationNode); - this.MediaStream = this.MediaStream || function MediaStream() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MediaStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new MediaStream, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MediaStream); - this.MediaSourceHandle = this.MediaSourceHandle || function MediaSourceHandle() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MediaSourceHandle, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MediaSourceHandle); - this.MediaSource = this.MediaSource || function MediaSource() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MediaSource': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new MediaSource, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MediaSource); - this.MediaRecorder = this.MediaRecorder || function MediaRecorder() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MediaRecorder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'MediaRecorder': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new MediaRecorder, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MediaRecorder); - this.MediaQueryListEvent = this.MediaQueryListEvent || function MediaQueryListEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MediaQueryListEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'MediaQueryListEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new MediaQueryListEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MediaQueryListEvent); - this.MediaQueryList = this.MediaQueryList || function MediaQueryList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MediaQueryList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MediaQueryList); - this.MediaList = this.MediaList || function MediaList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MediaList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MediaList); - this.MediaError = this.MediaError || function MediaError() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MediaError, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MediaError); - this.MediaEncryptedEvent = this.MediaEncryptedEvent || function MediaEncryptedEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MediaEncryptedEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'MediaEncryptedEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new MediaEncryptedEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MediaEncryptedEvent); - this.MediaElementAudioSourceNode = this.MediaElementAudioSourceNode || function MediaElementAudioSourceNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MediaElementAudioSourceNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new MediaElementAudioSourceNode, arguments =>", arguments); - throw new TypeError("Failed to construct 'MediaElementAudioSourceNode': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.MediaElementAudioSourceNode); - this.MediaCapabilities = this.MediaCapabilities || function MediaCapabilities() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MediaCapabilities, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MediaCapabilities); - this.MathMLElement = this.MathMLElement || function MathMLElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MathMLElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MathMLElement); - this.Location = this.Location || function Location() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Location, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Location); - this.LayoutShiftAttribution = this.LayoutShiftAttribution || function LayoutShiftAttribution() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new LayoutShiftAttribution, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.LayoutShiftAttribution); - this.LayoutShift = this.LayoutShift || function LayoutShift() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new LayoutShift, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.LayoutShift); - this.LargestContentfulPaint = this.LargestContentfulPaint || function LargestContentfulPaint() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new LargestContentfulPaint, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.LargestContentfulPaint); - this.KeyframeEffect = this.KeyframeEffect || function KeyframeEffect() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'KeyframeEffect': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'KeyframeEffect': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new KeyframeEffect, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.KeyframeEffect); - this.KeyboardEvent = this.KeyboardEvent || function KeyboardEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'KeyboardEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'KeyboardEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new KeyboardEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.KeyboardEvent); - this.IntersectionObserverEntry = this.IntersectionObserverEntry || function IntersectionObserverEntry() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new IntersectionObserverEntry, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.IntersectionObserverEntry); - this.IntersectionObserver = this.IntersectionObserver || function IntersectionObserver() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'IntersectionObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'IntersectionObserver': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new IntersectionObserver, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.IntersectionObserver); - this.InputEvent = this.InputEvent || function InputEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'InputEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'InputEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new InputEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.InputEvent); - this.InputDeviceInfo = this.InputDeviceInfo || function InputDeviceInfo() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new InputDeviceInfo, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.InputDeviceInfo); - this.InputDeviceCapabilities = this.InputDeviceCapabilities || function InputDeviceCapabilities() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'InputDeviceCapabilities': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new InputDeviceCapabilities, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.InputDeviceCapabilities); - this.ImageData = this.ImageData || function ImageData() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ImageData': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new ImageData, arguments =>", arguments); - throw new TypeError("Failed to construct 'ImageData': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.ImageData); - this.ImageCapture = this.ImageCapture || function ImageCapture() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ImageCapture': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ImageCapture': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ImageCapture, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ImageCapture); - this.ImageBitmapRenderingContext = this.ImageBitmapRenderingContext || function ImageBitmapRenderingContext() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ImageBitmapRenderingContext, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ImageBitmapRenderingContext); - this.ImageBitmap = this.ImageBitmap || function ImageBitmap() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ImageBitmap, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ImageBitmap); - this.IdleDeadline = this.IdleDeadline || function IdleDeadline() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new IdleDeadline, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.IdleDeadline); - this.IIRFilterNode = this.IIRFilterNode || function IIRFilterNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'IIRFilterNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new IIRFilterNode, arguments =>", arguments); - throw new TypeError("Failed to construct 'IIRFilterNode': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.IIRFilterNode); - this.IDBVersionChangeEvent = this.IDBVersionChangeEvent || function IDBVersionChangeEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'IDBVersionChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'IDBVersionChangeEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new IDBVersionChangeEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.IDBVersionChangeEvent); - this.IDBTransaction = this.IDBTransaction || function IDBTransaction() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new IDBTransaction, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.IDBTransaction); - this.IDBRequest = this.IDBRequest || function IDBRequest() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new IDBRequest, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.IDBRequest); - this.IDBOpenDBRequest = this.IDBOpenDBRequest || function IDBOpenDBRequest() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new IDBOpenDBRequest, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.IDBOpenDBRequest); - this.IDBObjectStore = this.IDBObjectStore || function IDBObjectStore() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new IDBObjectStore, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.IDBObjectStore); - this.IDBKeyRange = this.IDBKeyRange || function IDBKeyRange() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new IDBKeyRange, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.IDBKeyRange); - this.IDBIndex = this.IDBIndex || function IDBIndex() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new IDBIndex, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.IDBIndex); - this.IDBFactory = this.IDBFactory || function IDBFactory() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new IDBFactory, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.IDBFactory); - this.IDBDatabase = this.IDBDatabase || function IDBDatabase() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new IDBDatabase, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.IDBDatabase); - this.IDBCursorWithValue = this.IDBCursorWithValue || function IDBCursorWithValue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new IDBCursorWithValue, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.IDBCursorWithValue); - this.IDBCursor = this.IDBCursor || function IDBCursor() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new IDBCursor, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.IDBCursor); - this.History = this.History || function History() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new History, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.History); - this.Headers = this.Headers || function Headers() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Headers': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new Headers, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Headers); - this.HashChangeEvent = this.HashChangeEvent || function HashChangeEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HashChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'HashChangeEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new HashChangeEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.HashChangeEvent); - this.HTMLVideoElement = this.HTMLVideoElement || function HTMLVideoElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLVideoElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLVideoElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLVideoElement); - this.HTMLUnknownElement = this.HTMLUnknownElement || function HTMLUnknownElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new HTMLUnknownElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLUnknownElement); - this.HTMLUListElement = this.HTMLUListElement || function HTMLUListElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLUListElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLUListElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLUListElement); - this.HTMLTrackElement = this.HTMLTrackElement || function HTMLTrackElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLTrackElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLTrackElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLTrackElement); - this.HTMLTitleElement = this.HTMLTitleElement || function HTMLTitleElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLTitleElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLTitleElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLTitleElement); - this.HTMLTimeElement = this.HTMLTimeElement || function HTMLTimeElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLTimeElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLTimeElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLTimeElement); - this.HTMLTextAreaElement = this.HTMLTextAreaElement || function HTMLTextAreaElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLTextAreaElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLTextAreaElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLTextAreaElement); - this.HTMLTemplateElement = this.HTMLTemplateElement || function HTMLTemplateElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLTemplateElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLTemplateElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLTemplateElement); - this.HTMLTableSectionElement = this.HTMLTableSectionElement || function HTMLTableSectionElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLTableSectionElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLTableSectionElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLTableSectionElement); - this.HTMLTableRowElement = this.HTMLTableRowElement || function HTMLTableRowElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLTableRowElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLTableRowElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLTableRowElement); - this.HTMLTableElement = this.HTMLTableElement || function HTMLTableElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLTableElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLTableElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLTableElement); - this.HTMLTableColElement = this.HTMLTableColElement || function HTMLTableColElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLTableColElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLTableColElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLTableColElement); - this.HTMLTableCellElement = this.HTMLTableCellElement || function HTMLTableCellElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLTableCellElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLTableCellElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLTableCellElement); - this.HTMLTableCaptionElement = this.HTMLTableCaptionElement || function HTMLTableCaptionElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLTableCaptionElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLTableCaptionElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLTableCaptionElement); - this.HTMLStyleElement = this.HTMLStyleElement || function HTMLStyleElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLStyleElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLStyleElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLStyleElement); - this.HTMLSpanElement = this.HTMLSpanElement || function HTMLSpanElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLSpanElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLSpanElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLSpanElement); - this.HTMLSourceElement = this.HTMLSourceElement || function HTMLSourceElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLSourceElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLSourceElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLSourceElement); - this.HTMLSlotElement = this.HTMLSlotElement || function HTMLSlotElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLSlotElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLSlotElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLSlotElement); - this.HTMLSelectElement = this.HTMLSelectElement || function HTMLSelectElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLSelectElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLSelectElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLSelectElement); - this.HTMLScriptElement = this.HTMLScriptElement || function HTMLScriptElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLScriptElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLScriptElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLScriptElement); - this.HTMLQuoteElement = this.HTMLQuoteElement || function HTMLQuoteElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLQuoteElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLQuoteElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLQuoteElement); - this.HTMLProgressElement = this.HTMLProgressElement || function HTMLProgressElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLProgressElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLProgressElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLProgressElement); - this.HTMLPreElement = this.HTMLPreElement || function HTMLPreElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLPreElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLPreElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLPreElement); - this.HTMLPictureElement = this.HTMLPictureElement || function HTMLPictureElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLPictureElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLPictureElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLPictureElement); - this.HTMLParamElement = this.HTMLParamElement || function HTMLParamElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLParamElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLParamElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLParamElement); - this.HTMLParagraphElement = this.HTMLParagraphElement || function HTMLParagraphElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLParagraphElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLParagraphElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLParagraphElement); - this.HTMLOutputElement = this.HTMLOutputElement || function HTMLOutputElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLOutputElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLOutputElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLOutputElement); - this.HTMLOptionsCollection = this.HTMLOptionsCollection || function HTMLOptionsCollection() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new HTMLOptionsCollection, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLOptionsCollection); - this.HTMLOptionElement = this.HTMLOptionElement || function HTMLOptionElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLOptionElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLOptionElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLOptionElement); - this.HTMLOptGroupElement = this.HTMLOptGroupElement || function HTMLOptGroupElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLOptGroupElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLOptGroupElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLOptGroupElement); - this.HTMLObjectElement = this.HTMLObjectElement || function HTMLObjectElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLObjectElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLObjectElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLObjectElement); - this.HTMLOListElement = this.HTMLOListElement || function HTMLOListElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLOListElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLOListElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLOListElement); - this.HTMLModElement = this.HTMLModElement || function HTMLModElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLModElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLModElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLModElement); - this.HTMLMeterElement = this.HTMLMeterElement || function HTMLMeterElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLMeterElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLMeterElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLMeterElement); - this.HTMLMetaElement = this.HTMLMetaElement || function HTMLMetaElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLMetaElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLMetaElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLMetaElement); - this.HTMLMenuElement = this.HTMLMenuElement || function HTMLMenuElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLMenuElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLMenuElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLMenuElement); - this.HTMLMediaElement = this.HTMLMediaElement || function HTMLMediaElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new HTMLMediaElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLMediaElement); - this.HTMLMarqueeElement = this.HTMLMarqueeElement || function HTMLMarqueeElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLMarqueeElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLMarqueeElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLMarqueeElement); - this.HTMLMapElement = this.HTMLMapElement || function HTMLMapElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLMapElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLMapElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLMapElement); - this.HTMLLinkElement = this.HTMLLinkElement || function HTMLLinkElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLLinkElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLLinkElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLLinkElement); - this.HTMLLegendElement = this.HTMLLegendElement || function HTMLLegendElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLLegendElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLLegendElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLLegendElement); - this.HTMLLabelElement = this.HTMLLabelElement || function HTMLLabelElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLLabelElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLLabelElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLLabelElement); - this.HTMLLIElement = this.HTMLLIElement || function HTMLLIElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLLIElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLLIElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLLIElement); - this.HTMLInputElement = this.HTMLInputElement || function HTMLInputElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLInputElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLInputElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLInputElement); - this.HTMLImageElement = this.HTMLImageElement || function HTMLImageElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLImageElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLImageElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLImageElement); - this.HTMLIFrameElement = this.HTMLIFrameElement || function HTMLIFrameElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLIFrameElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLIFrameElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLIFrameElement); - this.HTMLHtmlElement = this.HTMLHtmlElement || function HTMLHtmlElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLHtmlElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLHtmlElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLHtmlElement); - this.HTMLHeadingElement = this.HTMLHeadingElement || function HTMLHeadingElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLHeadingElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLHeadingElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLHeadingElement); - this.HTMLHeadElement = this.HTMLHeadElement || function HTMLHeadElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLHeadElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLHeadElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLHeadElement); - this.HTMLHRElement = this.HTMLHRElement || function HTMLHRElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLHRElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLHRElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLHRElement); - this.HTMLFrameSetElement = this.HTMLFrameSetElement || function HTMLFrameSetElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLFrameSetElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLFrameSetElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLFrameSetElement); - this.HTMLFrameElement = this.HTMLFrameElement || function HTMLFrameElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLFrameElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLFrameElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLFrameElement); - this.HTMLFormElement = this.HTMLFormElement || function HTMLFormElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLFormElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLFormElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLFormElement); - this.HTMLFormControlsCollection = this.HTMLFormControlsCollection || function HTMLFormControlsCollection() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new HTMLFormControlsCollection, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLFormControlsCollection); - this.HTMLFontElement = this.HTMLFontElement || function HTMLFontElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLFontElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLFontElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLFontElement); - this.HTMLFieldSetElement = this.HTMLFieldSetElement || function HTMLFieldSetElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLFieldSetElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLFieldSetElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLFieldSetElement); - this.HTMLEmbedElement = this.HTMLEmbedElement || function HTMLEmbedElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLEmbedElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLEmbedElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLEmbedElement); - this.HTMLElement = this.HTMLElement || function HTMLElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLElement); - this.HTMLDocument = this.HTMLDocument || function HTMLDocument() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new HTMLDocument, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLDocument); - this.HTMLDivElement = this.HTMLDivElement || function HTMLDivElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLDivElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLDivElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLDivElement); - this.HTMLDirectoryElement = this.HTMLDirectoryElement || function HTMLDirectoryElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLDirectoryElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLDirectoryElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLDirectoryElement); - this.HTMLDialogElement = this.HTMLDialogElement || function HTMLDialogElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLDialogElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLDialogElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLDialogElement); - this.HTMLDetailsElement = this.HTMLDetailsElement || function HTMLDetailsElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLDetailsElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLDetailsElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLDetailsElement); - this.HTMLDataListElement = this.HTMLDataListElement || function HTMLDataListElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLDataListElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLDataListElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLDataListElement); - this.HTMLDataElement = this.HTMLDataElement || function HTMLDataElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLDataElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLDataElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLDataElement); - this.HTMLDListElement = this.HTMLDListElement || function HTMLDListElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLDListElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLDListElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLDListElement); - this.HTMLCollection = this.HTMLCollection || function HTMLCollection() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new HTMLCollection, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLCollection); - this.HTMLCanvasElement = this.HTMLCanvasElement || function HTMLCanvasElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLCanvasElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLCanvasElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLCanvasElement); - this.HTMLButtonElement = this.HTMLButtonElement || function HTMLButtonElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLButtonElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLButtonElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLButtonElement); - this.HTMLBodyElement = this.HTMLBodyElement || function HTMLBodyElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLBodyElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLBodyElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLBodyElement); - this.HTMLBaseElement = this.HTMLBaseElement || function HTMLBaseElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLBaseElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLBaseElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLBaseElement); - this.HTMLBRElement = this.HTMLBRElement || function HTMLBRElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLBRElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLBRElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLBRElement); - this.HTMLAudioElement = this.HTMLAudioElement || function HTMLAudioElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLAudioElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLAudioElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLAudioElement); - this.HTMLAreaElement = this.HTMLAreaElement || function HTMLAreaElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLAreaElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLAreaElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLAreaElement); - this.HTMLAnchorElement = this.HTMLAnchorElement || function HTMLAnchorElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLAnchorElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLAnchorElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLAnchorElement); - this.HTMLAllCollection = this.HTMLAllCollection || function HTMLAllCollection() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new HTMLAllCollection, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLAllCollection); - this.GeolocationPositionError = this.GeolocationPositionError || function GeolocationPositionError() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GeolocationPositionError, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GeolocationPositionError); - this.GeolocationPosition = this.GeolocationPosition || function GeolocationPosition() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GeolocationPosition, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GeolocationPosition); - this.GeolocationCoordinates = this.GeolocationCoordinates || function GeolocationCoordinates() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GeolocationCoordinates, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GeolocationCoordinates); - this.Geolocation = this.Geolocation || function Geolocation() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Geolocation, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Geolocation); - this.GamepadHapticActuator = this.GamepadHapticActuator || function GamepadHapticActuator() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GamepadHapticActuator, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GamepadHapticActuator); - this.GamepadEvent = this.GamepadEvent || function GamepadEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'GamepadEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'GamepadEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new GamepadEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.GamepadEvent); - this.GamepadButton = this.GamepadButton || function GamepadButton() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GamepadButton, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GamepadButton); - this.Gamepad = this.Gamepad || function Gamepad() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Gamepad, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Gamepad); - this.GainNode = this.GainNode || function GainNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'GainNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'GainNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new GainNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.GainNode); - this.FormDataEvent = this.FormDataEvent || function FormDataEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'FormDataEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new FormDataEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'FormDataEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.FormDataEvent); - this.FormData = this.FormData || function FormData() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'FormData': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new FormData, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.FormData); - this.FontFaceSetLoadEvent = this.FontFaceSetLoadEvent || function FontFaceSetLoadEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'FontFaceSetLoadEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'FontFaceSetLoadEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new FontFaceSetLoadEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.FontFaceSetLoadEvent); - this.FontFace = this.FontFace || function FontFace() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'FontFace': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new FontFace, arguments =>", arguments); - throw new TypeError("Failed to construct 'FontFace': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.FontFace); - this.FocusEvent = this.FocusEvent || function FocusEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'FocusEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'FocusEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new FocusEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.FocusEvent); - this.FileReader = this.FileReader || function FileReader() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new FileReader, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.FileReader); - this.FileList = this.FileList || function FileList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new FileList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.FileList); - this.File = this.File || function File() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'File': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new File, arguments =>", arguments); - throw new TypeError("Failed to construct 'File': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.File); - this.FeaturePolicy = this.FeaturePolicy || function FeaturePolicy() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new FeaturePolicy, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.FeaturePolicy); - this.External = this.External || function External() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new External, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.External); - this.EventTarget = this.EventTarget || function EventTarget() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'EventTarget': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new EventTarget, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.EventTarget); - this.EventSource = this.EventSource || function EventSource() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'EventSource': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'EventSource': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new EventSource, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.EventSource); - this.EventCounts = this.EventCounts || function EventCounts() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new EventCounts, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.EventCounts); - this.Event = this.Event || function Event() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Event': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'Event': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new Event, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Event); - this.ErrorEvent = this.ErrorEvent || function ErrorEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ErrorEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ErrorEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ErrorEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ErrorEvent); - this.ElementInternals = this.ElementInternals || function ElementInternals() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ElementInternals, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ElementInternals); - this.Element = this.Element || function Element() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Element, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Element); - this.DynamicsCompressorNode = this.DynamicsCompressorNode || function DynamicsCompressorNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DynamicsCompressorNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'DynamicsCompressorNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new DynamicsCompressorNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DynamicsCompressorNode); - this.DragEvent = this.DragEvent || function DragEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DragEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'DragEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new DragEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DragEvent); - this.DocumentType = this.DocumentType || function DocumentType() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new DocumentType, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.DocumentType); - this.DocumentFragment = this.DocumentFragment || function DocumentFragment() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DocumentFragment': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new DocumentFragment, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DocumentFragment); - this.Document = this.Document || function Document() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Document': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new Document, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Document); - this.DelayNode = this.DelayNode || function DelayNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DelayNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'DelayNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new DelayNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DelayNode); - this.DecompressionStream = this.DecompressionStream || function DecompressionStream() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DecompressionStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'DecompressionStream': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new DecompressionStream, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DecompressionStream); - this.DataTransferItemList = this.DataTransferItemList || function DataTransferItemList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new DataTransferItemList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.DataTransferItemList); - this.DataTransferItem = this.DataTransferItem || function DataTransferItem() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new DataTransferItem, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.DataTransferItem); - this.DataTransfer = this.DataTransfer || function DataTransfer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DataTransfer': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new DataTransfer, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DataTransfer); - this.DOMTokenList = this.DOMTokenList || function DOMTokenList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new DOMTokenList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.DOMTokenList); - this.DOMStringMap = this.DOMStringMap || function DOMStringMap() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new DOMStringMap, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.DOMStringMap); - this.DOMStringList = this.DOMStringList || function DOMStringList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new DOMStringList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.DOMStringList); - this.DOMRectReadOnly = this.DOMRectReadOnly || function DOMRectReadOnly() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DOMRectReadOnly': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new DOMRectReadOnly, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DOMRectReadOnly); - this.DOMRectList = this.DOMRectList || function DOMRectList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new DOMRectList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.DOMRectList); - this.DOMRect = this.DOMRect || function DOMRect() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DOMRect': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new DOMRect, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DOMRect); - this.DOMQuad = this.DOMQuad || function DOMQuad() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DOMQuad': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new DOMQuad, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DOMQuad); - this.DOMPointReadOnly = this.DOMPointReadOnly || function DOMPointReadOnly() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DOMPointReadOnly': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new DOMPointReadOnly, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DOMPointReadOnly); - this.DOMPoint = this.DOMPoint || function DOMPoint() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DOMPoint': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new DOMPoint, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DOMPoint); - this.DOMParser = this.DOMParser || function DOMParser() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DOMParser': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new DOMParser, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DOMParser); - this.DOMMatrixReadOnly = this.DOMMatrixReadOnly || function DOMMatrixReadOnly() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DOMMatrixReadOnly': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new DOMMatrixReadOnly, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DOMMatrixReadOnly); - this.DOMMatrix = this.DOMMatrix || function DOMMatrix() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DOMMatrix': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new DOMMatrix, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DOMMatrix); - this.DOMImplementation = this.DOMImplementation || function DOMImplementation() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new DOMImplementation, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.DOMImplementation); - this.DOMException = this.DOMException || function DOMException() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DOMException': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new DOMException, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DOMException); - this.DOMError = this.DOMError || function DOMError() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DOMError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'DOMError': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new DOMError, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DOMError); - this.CustomStateSet = this.CustomStateSet || function CustomStateSet() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CustomStateSet, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CustomStateSet); - this.CustomEvent = this.CustomEvent || function CustomEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CustomEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CustomEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CustomEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CustomEvent); - this.CustomElementRegistry = this.CustomElementRegistry || function CustomElementRegistry() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CustomElementRegistry, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CustomElementRegistry); - this.Crypto = this.Crypto || function Crypto() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Crypto, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Crypto); - this.CountQueuingStrategy = this.CountQueuingStrategy || function CountQueuingStrategy() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CountQueuingStrategy': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CountQueuingStrategy': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CountQueuingStrategy, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CountQueuingStrategy); - this.ConvolverNode = this.ConvolverNode || function ConvolverNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ConvolverNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ConvolverNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ConvolverNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ConvolverNode); - this.ConstantSourceNode = this.ConstantSourceNode || function ConstantSourceNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ConstantSourceNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ConstantSourceNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ConstantSourceNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ConstantSourceNode); - this.CompressionStream = this.CompressionStream || function CompressionStream() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CompressionStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CompressionStream': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CompressionStream, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CompressionStream); - this.CompositionEvent = this.CompositionEvent || function CompositionEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CompositionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CompositionEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CompositionEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CompositionEvent); - this.Comment = this.Comment || function Comment() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Comment': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new Comment, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Comment); - this.CloseEvent = this.CloseEvent || function CloseEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CloseEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CloseEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CloseEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CloseEvent); - this.ClipboardEvent = this.ClipboardEvent || function ClipboardEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ClipboardEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ClipboardEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ClipboardEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ClipboardEvent); - this.CharacterData = this.CharacterData || function CharacterData() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CharacterData, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CharacterData); - this.ChannelSplitterNode = this.ChannelSplitterNode || function ChannelSplitterNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ChannelSplitterNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ChannelSplitterNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ChannelSplitterNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ChannelSplitterNode); - this.ChannelMergerNode = this.ChannelMergerNode || function ChannelMergerNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ChannelMergerNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ChannelMergerNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ChannelMergerNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ChannelMergerNode); - this.CanvasRenderingContext2D = this.CanvasRenderingContext2D || function CanvasRenderingContext2D() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CanvasRenderingContext2D, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CanvasRenderingContext2D); - this.CanvasPattern = this.CanvasPattern || function CanvasPattern() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CanvasPattern, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CanvasPattern); - this.CanvasGradient = this.CanvasGradient || function CanvasGradient() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CanvasGradient, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CanvasGradient); - this.CanvasCaptureMediaStreamTrack = this.CanvasCaptureMediaStreamTrack || function CanvasCaptureMediaStreamTrack() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CanvasCaptureMediaStreamTrack, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CanvasCaptureMediaStreamTrack); - this.CSSVariableReferenceValue = this.CSSVariableReferenceValue || function CSSVariableReferenceValue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSVariableReferenceValue': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CSSVariableReferenceValue': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CSSVariableReferenceValue, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CSSVariableReferenceValue); - this.CSSUnparsedValue = this.CSSUnparsedValue || function CSSUnparsedValue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSUnparsedValue': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CSSUnparsedValue': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CSSUnparsedValue, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CSSUnparsedValue); - this.CSSUnitValue = this.CSSUnitValue || function CSSUnitValue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSUnitValue': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new CSSUnitValue, arguments =>", arguments); - throw new TypeError("Failed to construct 'CSSUnitValue': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.CSSUnitValue); - this.CSSTranslate = this.CSSTranslate || function CSSTranslate() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSTranslate': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new CSSTranslate, arguments =>", arguments); - throw new TypeError("Failed to construct 'CSSTranslate': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.CSSTranslate); - this.CSSTransformValue = this.CSSTransformValue || function CSSTransformValue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSTransformValue': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CSSTransformValue': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CSSTransformValue, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CSSTransformValue); - this.CSSTransformComponent = this.CSSTransformComponent || function CSSTransformComponent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSTransformComponent, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSTransformComponent); - this.CSSSupportsRule = this.CSSSupportsRule || function CSSSupportsRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSSupportsRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSSupportsRule); - this.CSSStyleValue = this.CSSStyleValue || function CSSStyleValue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSStyleValue, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSStyleValue); - this.CSSStyleSheet = this.CSSStyleSheet || function CSSStyleSheet() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSStyleSheet': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new CSSStyleSheet, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CSSStyleSheet); - this.CSSStyleRule = this.CSSStyleRule || function CSSStyleRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSStyleRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSStyleRule); - this.CSSStyleDeclaration = this.CSSStyleDeclaration || function CSSStyleDeclaration() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSStyleDeclaration, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSStyleDeclaration); - this.CSSSkewY = this.CSSSkewY || function CSSSkewY() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSSkewY': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CSSSkewY': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CSSSkewY, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CSSSkewY); - this.CSSSkewX = this.CSSSkewX || function CSSSkewX() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSSkewX': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CSSSkewX': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CSSSkewX, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CSSSkewX); - this.CSSSkew = this.CSSSkew || function CSSSkew() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSSkew': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new CSSSkew, arguments =>", arguments); - throw new TypeError("Failed to construct 'CSSSkew': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.CSSSkew); - this.CSSScale = this.CSSScale || function CSSScale() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSScale': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new CSSScale, arguments =>", arguments); - throw new TypeError("Failed to construct 'CSSScale': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.CSSScale); - this.CSSRuleList = this.CSSRuleList || function CSSRuleList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSRuleList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSRuleList); - this.CSSRule = this.CSSRule || function CSSRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSRule); - this.CSSRotate = this.CSSRotate || function CSSRotate() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSRotate': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CSSRotate': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CSSRotate, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CSSRotate); - this.CSSPropertyRule = this.CSSPropertyRule || function CSSPropertyRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSPropertyRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSPropertyRule); - this.CSSPositionValue = this.CSSPositionValue || function CSSPositionValue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSPositionValue': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new CSSPositionValue, arguments =>", arguments); - throw new TypeError("Failed to construct 'CSSPositionValue': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.CSSPositionValue); - this.CSSPerspective = this.CSSPerspective || function CSSPerspective() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSPerspective': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CSSPerspective': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CSSPerspective, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CSSPerspective); - this.CSSPageRule = this.CSSPageRule || function CSSPageRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSPageRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSPageRule); - this.CSSNumericValue = this.CSSNumericValue || function CSSNumericValue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSNumericValue, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSNumericValue); - this.CSSNumericArray = this.CSSNumericArray || function CSSNumericArray() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSNumericArray, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSNumericArray); - this.CSSNamespaceRule = this.CSSNamespaceRule || function CSSNamespaceRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSNamespaceRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSNamespaceRule); - this.CSSMediaRule = this.CSSMediaRule || function CSSMediaRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSMediaRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSMediaRule); - this.CSSMatrixComponent = this.CSSMatrixComponent || function CSSMatrixComponent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSMatrixComponent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CSSMatrixComponent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CSSMatrixComponent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CSSMatrixComponent); - this.CSSMathValue = this.CSSMathValue || function CSSMathValue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSMathValue, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSMathValue); - this.CSSMathSum = this.CSSMathSum || function CSSMathSum() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSMathSum': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new CSSMathSum, arguments =>", arguments); - throw new TypeError("Failed to construct 'CSSMathSum': Arguments can't be empty"); - return this; - } - cbb_wf.setNative(this.CSSMathSum); - this.CSSMathProduct = this.CSSMathProduct || function CSSMathProduct() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSMathProduct': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new CSSMathProduct, arguments =>", arguments); - throw new TypeError("Failed to construct 'CSSMathProduct': Arguments can't be empty"); - return this; - } - cbb_wf.setNative(this.CSSMathProduct); - this.CSSMathNegate = this.CSSMathNegate || function CSSMathNegate() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSMathNegate': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CSSMathNegate': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CSSMathNegate, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CSSMathNegate); - this.CSSMathMin = this.CSSMathMin || function CSSMathMin() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSMathMin': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new CSSMathMin, arguments =>", arguments); - throw new TypeError("Failed to construct 'CSSMathMin': Arguments can't be empty"); - return this; - } - cbb_wf.setNative(this.CSSMathMin); - this.CSSMathMax = this.CSSMathMax || function CSSMathMax() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSMathMax': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new CSSMathMax, arguments =>", arguments); - throw new TypeError("Failed to construct 'CSSMathMax': Arguments can't be empty"); - return this; - } - cbb_wf.setNative(this.CSSMathMax); - this.CSSMathInvert = this.CSSMathInvert || function CSSMathInvert() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSMathInvert': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CSSMathInvert': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CSSMathInvert, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CSSMathInvert); - this.CSSMathClamp = this.CSSMathClamp || function CSSMathClamp() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSMathClamp': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new CSSMathClamp, arguments =>", arguments); - throw new TypeError("Failed to construct 'CSSMathClamp': 3 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.CSSMathClamp); - this.CSSLayerStatementRule = this.CSSLayerStatementRule || function CSSLayerStatementRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSLayerStatementRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSLayerStatementRule); - this.CSSLayerBlockRule = this.CSSLayerBlockRule || function CSSLayerBlockRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSLayerBlockRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSLayerBlockRule); - this.CSSKeywordValue = this.CSSKeywordValue || function CSSKeywordValue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CSSKeywordValue': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CSSKeywordValue': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CSSKeywordValue, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CSSKeywordValue); - this.CSSKeyframesRule = this.CSSKeyframesRule || function CSSKeyframesRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSKeyframesRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSKeyframesRule); - this.CSSKeyframeRule = this.CSSKeyframeRule || function CSSKeyframeRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSKeyframeRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSKeyframeRule); - this.CSSImportRule = this.CSSImportRule || function CSSImportRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSImportRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSImportRule); - this.CSSImageValue = this.CSSImageValue || function CSSImageValue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSImageValue, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSImageValue); - this.CSSGroupingRule = this.CSSGroupingRule || function CSSGroupingRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSGroupingRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSGroupingRule); - this.CSSFontPaletteValuesRule = this.CSSFontPaletteValuesRule || function CSSFontPaletteValuesRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSFontPaletteValuesRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSFontPaletteValuesRule); - this.CSSFontFaceRule = this.CSSFontFaceRule || function CSSFontFaceRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSFontFaceRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSFontFaceRule); - this.CSSCounterStyleRule = this.CSSCounterStyleRule || function CSSCounterStyleRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSCounterStyleRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSCounterStyleRule); - this.CSSContainerRule = this.CSSContainerRule || function CSSContainerRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSContainerRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSContainerRule); - this.CSSConditionRule = this.CSSConditionRule || function CSSConditionRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSConditionRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSConditionRule); - this.CDATASection = this.CDATASection || function CDATASection() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CDATASection, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CDATASection); - this.ByteLengthQueuingStrategy = this.ByteLengthQueuingStrategy || function ByteLengthQueuingStrategy() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ByteLengthQueuingStrategy': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ByteLengthQueuingStrategy': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ByteLengthQueuingStrategy, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ByteLengthQueuingStrategy); - this.BroadcastChannel = this.BroadcastChannel || function BroadcastChannel() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'BroadcastChannel': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'BroadcastChannel': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new BroadcastChannel, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.BroadcastChannel); - this.BlobEvent = this.BlobEvent || function BlobEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'BlobEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new BlobEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'BlobEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.BlobEvent); - this.Blob = this.Blob || function Blob() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Blob': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new Blob, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Blob); - this.BiquadFilterNode = this.BiquadFilterNode || function BiquadFilterNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'BiquadFilterNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'BiquadFilterNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new BiquadFilterNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.BiquadFilterNode); - this.BeforeUnloadEvent = this.BeforeUnloadEvent || function BeforeUnloadEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BeforeUnloadEvent, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BeforeUnloadEvent); - this.BeforeInstallPromptEvent = this.BeforeInstallPromptEvent || function BeforeInstallPromptEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'BeforeInstallPromptEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'BeforeInstallPromptEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new BeforeInstallPromptEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.BeforeInstallPromptEvent); - this.BaseAudioContext = this.BaseAudioContext || function BaseAudioContext() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BaseAudioContext, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BaseAudioContext); - this.BarProp = this.BarProp || function BarProp() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BarProp, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BarProp); - this.AudioWorkletNode = this.AudioWorkletNode || function AudioWorkletNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'AudioWorkletNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new AudioWorkletNode, arguments =>", arguments); - throw new TypeError("Failed to construct 'AudioWorkletNode': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.AudioWorkletNode); - this.AudioSinkInfo = this.AudioSinkInfo || function AudioSinkInfo() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new AudioSinkInfo, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AudioSinkInfo); - this.AudioScheduledSourceNode = this.AudioScheduledSourceNode || function AudioScheduledSourceNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new AudioScheduledSourceNode, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AudioScheduledSourceNode); - this.AudioProcessingEvent = this.AudioProcessingEvent || function AudioProcessingEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'AudioProcessingEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new AudioProcessingEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'AudioProcessingEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.AudioProcessingEvent); - this.AudioParamMap = this.AudioParamMap || function AudioParamMap() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new AudioParamMap, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AudioParamMap); - this.AudioParam = this.AudioParam || function AudioParam() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new AudioParam, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AudioParam); - this.AudioNode = this.AudioNode || function AudioNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new AudioNode, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AudioNode); - this.AudioListener = this.AudioListener || function AudioListener() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new AudioListener, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AudioListener); - this.AudioDestinationNode = this.AudioDestinationNode || function AudioDestinationNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new AudioDestinationNode, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AudioDestinationNode); - this.AudioContext = this.AudioContext || function AudioContext() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'AudioContext': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new AudioContext, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.AudioContext); - this.AudioBufferSourceNode = this.AudioBufferSourceNode || function AudioBufferSourceNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'AudioBufferSourceNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'AudioBufferSourceNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new AudioBufferSourceNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.AudioBufferSourceNode); - this.AudioBuffer = this.AudioBuffer || function AudioBuffer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'AudioBuffer': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'AudioBuffer': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new AudioBuffer, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.AudioBuffer); - this.Attr = this.Attr || function Attr() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Attr, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Attr); - this.AnimationEvent = this.AnimationEvent || function AnimationEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'AnimationEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'AnimationEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new AnimationEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.AnimationEvent); - this.AnimationEffect = this.AnimationEffect || function AnimationEffect() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new AnimationEffect, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AnimationEffect); - this.Animation = this.Animation || function Animation() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Animation': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new Animation, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Animation); - this.AnalyserNode = this.AnalyserNode || function AnalyserNode() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'AnalyserNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'AnalyserNode': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new AnalyserNode, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.AnalyserNode); - this.AbstractRange = this.AbstractRange || function AbstractRange() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new AbstractRange, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AbstractRange); - this.AbortSignal = this.AbortSignal || function AbortSignal() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new AbortSignal, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AbortSignal); - this.AbortController = this.AbortController || function AbortController() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'AbortController': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new AbortController, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.AbortController); - this.AbsoluteOrientationSensor = this.AbsoluteOrientationSensor || function AbsoluteOrientationSensor() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'AbsoluteOrientationSensor': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new AbsoluteOrientationSensor, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.AbsoluteOrientationSensor); - this.Accelerometer = this.Accelerometer || function Accelerometer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Accelerometer': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new Accelerometer, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Accelerometer); - this.AudioWorklet = this.AudioWorklet || function AudioWorklet() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new AudioWorklet, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AudioWorklet); - this.BatteryManager = this.BatteryManager || function BatteryManager() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BatteryManager, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BatteryManager); - this.Cache = this.Cache || function Cache() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Cache, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Cache); - this.CacheStorage = this.CacheStorage || function CacheStorage() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CacheStorage, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CacheStorage); - this.Clipboard = this.Clipboard || function Clipboard() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Clipboard, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Clipboard); - this.ClipboardItem = this.ClipboardItem || function ClipboardItem() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ClipboardItem': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ClipboardItem': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ClipboardItem, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ClipboardItem); - this.CookieChangeEvent = this.CookieChangeEvent || function CookieChangeEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CookieChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'CookieChangeEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new CookieChangeEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CookieChangeEvent); - this.CookieStore = this.CookieStore || function CookieStore() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CookieStore, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CookieStore); - this.CookieStoreManager = this.CookieStoreManager || function CookieStoreManager() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CookieStoreManager, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CookieStoreManager); - this.Credential = this.Credential || function Credential() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Credential, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Credential); - this.CredentialsContainer = this.CredentialsContainer || function CredentialsContainer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CredentialsContainer, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CredentialsContainer); - this.CryptoKey = this.CryptoKey || function CryptoKey() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CryptoKey, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CryptoKey); - this.DeviceMotionEvent = this.DeviceMotionEvent || function DeviceMotionEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DeviceMotionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'DeviceMotionEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new DeviceMotionEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DeviceMotionEvent); - this.DeviceMotionEventAcceleration = this.DeviceMotionEventAcceleration || function DeviceMotionEventAcceleration() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new DeviceMotionEventAcceleration, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.DeviceMotionEventAcceleration); - this.DeviceMotionEventRotationRate = this.DeviceMotionEventRotationRate || function DeviceMotionEventRotationRate() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new DeviceMotionEventRotationRate, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.DeviceMotionEventRotationRate); - this.DeviceOrientationEvent = this.DeviceOrientationEvent || function DeviceOrientationEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DeviceOrientationEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'DeviceOrientationEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new DeviceOrientationEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DeviceOrientationEvent); - this.FederatedCredential = this.FederatedCredential || function FederatedCredential() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'FederatedCredential': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'FederatedCredential': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new FederatedCredential, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.FederatedCredential); - this.GPU = this.GPU || function GPU() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPU, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPU); - this.GPUAdapter = this.GPUAdapter || function GPUAdapter() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUAdapter, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUAdapter); - this.GPUAdapterInfo = this.GPUAdapterInfo || function GPUAdapterInfo() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUAdapterInfo, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUAdapterInfo); - this.GPUBindGroup = this.GPUBindGroup || function GPUBindGroup() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUBindGroup, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUBindGroup); - this.GPUBindGroupLayout = this.GPUBindGroupLayout || function GPUBindGroupLayout() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUBindGroupLayout, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUBindGroupLayout); - this.GPUBuffer = this.GPUBuffer || function GPUBuffer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUBuffer, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUBuffer); - this.GPUCanvasContext = this.GPUCanvasContext || function GPUCanvasContext() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUCanvasContext, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUCanvasContext); - this.GPUCommandBuffer = this.GPUCommandBuffer || function GPUCommandBuffer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUCommandBuffer, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUCommandBuffer); - this.GPUCommandEncoder = this.GPUCommandEncoder || function GPUCommandEncoder() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUCommandEncoder, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUCommandEncoder); - this.GPUCompilationInfo = this.GPUCompilationInfo || function GPUCompilationInfo() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUCompilationInfo, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUCompilationInfo); - this.GPUCompilationMessage = this.GPUCompilationMessage || function GPUCompilationMessage() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUCompilationMessage, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUCompilationMessage); - this.GPUComputePassEncoder = this.GPUComputePassEncoder || function GPUComputePassEncoder() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUComputePassEncoder, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUComputePassEncoder); - this.GPUComputePipeline = this.GPUComputePipeline || function GPUComputePipeline() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUComputePipeline, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUComputePipeline); - this.GPUDevice = this.GPUDevice || function GPUDevice() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUDevice, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUDevice); - this.GPUDeviceLostInfo = this.GPUDeviceLostInfo || function GPUDeviceLostInfo() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUDeviceLostInfo, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUDeviceLostInfo); - this.GPUError = this.GPUError || function GPUError() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUError, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUError); - this.GPUExternalTexture = this.GPUExternalTexture || function GPUExternalTexture() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUExternalTexture, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUExternalTexture); - this.GPUInternalError = this.GPUInternalError || function GPUInternalError() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'GPUInternalError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'GPUInternalError': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new GPUInternalError, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.GPUInternalError); - this.GPUOutOfMemoryError = this.GPUOutOfMemoryError || function GPUOutOfMemoryError() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'GPUOutOfMemoryError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'GPUOutOfMemoryError': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new GPUOutOfMemoryError, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.GPUOutOfMemoryError); - this.GPUPipelineError = this.GPUPipelineError || function GPUPipelineError() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'GPUPipelineError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'GPUPipelineError': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new GPUPipelineError, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.GPUPipelineError); - this.GPUPipelineLayout = this.GPUPipelineLayout || function GPUPipelineLayout() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUPipelineLayout, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUPipelineLayout); - this.GPUQuerySet = this.GPUQuerySet || function GPUQuerySet() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUQuerySet, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUQuerySet); - this.GPUQueue = this.GPUQueue || function GPUQueue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUQueue, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUQueue); - this.GPURenderBundle = this.GPURenderBundle || function GPURenderBundle() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPURenderBundle, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPURenderBundle); - this.GPURenderBundleEncoder = this.GPURenderBundleEncoder || function GPURenderBundleEncoder() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPURenderBundleEncoder, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPURenderBundleEncoder); - this.GPURenderPassEncoder = this.GPURenderPassEncoder || function GPURenderPassEncoder() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPURenderPassEncoder, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPURenderPassEncoder); - this.GPURenderPipeline = this.GPURenderPipeline || function GPURenderPipeline() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPURenderPipeline, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPURenderPipeline); - this.GPUSampler = this.GPUSampler || function GPUSampler() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUSampler, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUSampler); - this.GPUShaderModule = this.GPUShaderModule || function GPUShaderModule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUShaderModule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUShaderModule); - this.GPUSupportedFeatures = this.GPUSupportedFeatures || function GPUSupportedFeatures() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUSupportedFeatures, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUSupportedFeatures); - this.GPUSupportedLimits = this.GPUSupportedLimits || function GPUSupportedLimits() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUSupportedLimits, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUSupportedLimits); - this.GPUTexture = this.GPUTexture || function GPUTexture() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUTexture, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUTexture); - this.GPUTextureView = this.GPUTextureView || function GPUTextureView() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new GPUTextureView, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.GPUTextureView); - this.GPUUncapturedErrorEvent = this.GPUUncapturedErrorEvent || function GPUUncapturedErrorEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'GPUUncapturedErrorEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new GPUUncapturedErrorEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'GPUUncapturedErrorEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.GPUUncapturedErrorEvent); - this.GPUValidationError = this.GPUValidationError || function GPUValidationError() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'GPUValidationError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'GPUValidationError': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new GPUValidationError, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.GPUValidationError); - this.GravitySensor = this.GravitySensor || function GravitySensor() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'GravitySensor': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new GravitySensor, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.GravitySensor); - this.Gyroscope = this.Gyroscope || function Gyroscope() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Gyroscope': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new Gyroscope, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Gyroscope); - this.Keyboard = this.Keyboard || function Keyboard() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Keyboard, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Keyboard); - this.KeyboardLayoutMap = this.KeyboardLayoutMap || function KeyboardLayoutMap() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new KeyboardLayoutMap, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.KeyboardLayoutMap); - this.LinearAccelerationSensor = this.LinearAccelerationSensor || function LinearAccelerationSensor() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'LinearAccelerationSensor': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new LinearAccelerationSensor, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.LinearAccelerationSensor); - this.Lock = this.Lock || function Lock() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Lock, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Lock); - this.LockManager = this.LockManager || function LockManager() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new LockManager, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.LockManager); - this.MIDIAccess = this.MIDIAccess || function MIDIAccess() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MIDIAccess, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MIDIAccess); - this.MIDIConnectionEvent = this.MIDIConnectionEvent || function MIDIConnectionEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MIDIConnectionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'MIDIConnectionEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new MIDIConnectionEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MIDIConnectionEvent); - this.MIDIInput = this.MIDIInput || function MIDIInput() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MIDIInput, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MIDIInput); - this.MIDIInputMap = this.MIDIInputMap || function MIDIInputMap() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MIDIInputMap, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MIDIInputMap); - this.MIDIMessageEvent = this.MIDIMessageEvent || function MIDIMessageEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MIDIMessageEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'MIDIMessageEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new MIDIMessageEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.MIDIMessageEvent); - this.MIDIOutput = this.MIDIOutput || function MIDIOutput() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MIDIOutput, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MIDIOutput); - this.MIDIOutputMap = this.MIDIOutputMap || function MIDIOutputMap() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MIDIOutputMap, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MIDIOutputMap); - this.MIDIPort = this.MIDIPort || function MIDIPort() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MIDIPort, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MIDIPort); - this.MediaDeviceInfo = this.MediaDeviceInfo || function MediaDeviceInfo() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MediaDeviceInfo, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MediaDeviceInfo); - this.MediaDevices = this.MediaDevices || function MediaDevices() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MediaDevices, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MediaDevices); - this.MediaKeyMessageEvent = this.MediaKeyMessageEvent || function MediaKeyMessageEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'MediaKeyMessageEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new MediaKeyMessageEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'MediaKeyMessageEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.MediaKeyMessageEvent); - this.MediaKeySession = this.MediaKeySession || function MediaKeySession() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MediaKeySession, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MediaKeySession); - this.MediaKeyStatusMap = this.MediaKeyStatusMap || function MediaKeyStatusMap() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MediaKeyStatusMap, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MediaKeyStatusMap); - this.MediaKeySystemAccess = this.MediaKeySystemAccess || function MediaKeySystemAccess() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MediaKeySystemAccess, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MediaKeySystemAccess); - this.MediaKeys = this.MediaKeys || function MediaKeys() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new MediaKeys, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MediaKeys); - this.NavigationPreloadManager = this.NavigationPreloadManager || function NavigationPreloadManager() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new NavigationPreloadManager, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.NavigationPreloadManager); - this.NavigatorManagedData = this.NavigatorManagedData || function NavigatorManagedData() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new NavigatorManagedData, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.NavigatorManagedData); - this.OrientationSensor = this.OrientationSensor || function OrientationSensor() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new OrientationSensor, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.OrientationSensor); - this.PasswordCredential = this.PasswordCredential || function PasswordCredential() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PasswordCredential': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'PasswordCredential': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new PasswordCredential, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.PasswordCredential); - this.RelativeOrientationSensor = this.RelativeOrientationSensor || function RelativeOrientationSensor() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'RelativeOrientationSensor': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new RelativeOrientationSensor, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.RelativeOrientationSensor); - this.Sanitizer = this.Sanitizer || function Sanitizer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'Sanitizer': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new Sanitizer, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.Sanitizer); - this.ScreenDetailed = this.ScreenDetailed || function ScreenDetailed() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ScreenDetailed, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ScreenDetailed); - this.ScreenDetails = this.ScreenDetails || function ScreenDetails() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ScreenDetails, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ScreenDetails); - this.Sensor = this.Sensor || function Sensor() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Sensor, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Sensor); - this.SensorErrorEvent = this.SensorErrorEvent || function SensorErrorEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'SensorErrorEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new SensorErrorEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'SensorErrorEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.SensorErrorEvent); - this.ServiceWorker = this.ServiceWorker || function ServiceWorker() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ServiceWorker, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ServiceWorker); - this.ServiceWorkerContainer = this.ServiceWorkerContainer || function ServiceWorkerContainer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ServiceWorkerContainer, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ServiceWorkerContainer); - this.ServiceWorkerRegistration = this.ServiceWorkerRegistration || function ServiceWorkerRegistration() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ServiceWorkerRegistration, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ServiceWorkerRegistration); - this.StorageManager = this.StorageManager || function StorageManager() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new StorageManager, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.StorageManager); - this.SubtleCrypto = this.SubtleCrypto || function SubtleCrypto() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SubtleCrypto, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SubtleCrypto); - this.VirtualKeyboard = this.VirtualKeyboard || function VirtualKeyboard() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new VirtualKeyboard, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.VirtualKeyboard); - this.WGSLLanguageFeatures = this.WGSLLanguageFeatures || function WGSLLanguageFeatures() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WGSLLanguageFeatures, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WGSLLanguageFeatures); - this.WebTransport = this.WebTransport || function WebTransport() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'WebTransport': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'WebTransport': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new WebTransport, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.WebTransport); - this.WebTransportBidirectionalStream = this.WebTransportBidirectionalStream || function WebTransportBidirectionalStream() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebTransportBidirectionalStream, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebTransportBidirectionalStream); - this.WebTransportDatagramDuplexStream = this.WebTransportDatagramDuplexStream || function WebTransportDatagramDuplexStream() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WebTransportDatagramDuplexStream, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WebTransportDatagramDuplexStream); - this.WebTransportError = this.WebTransportError || function WebTransportError() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'WebTransportError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new WebTransportError, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.WebTransportError); - this.Worklet = this.Worklet || function Worklet() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Worklet, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Worklet); - this.XRDOMOverlayState = this.XRDOMOverlayState || function XRDOMOverlayState() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRDOMOverlayState, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRDOMOverlayState); - this.XRLayer = this.XRLayer || function XRLayer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRLayer, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRLayer); - this.XRWebGLBinding = this.XRWebGLBinding || function XRWebGLBinding() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'XRWebGLBinding': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new XRWebGLBinding, arguments =>", arguments); - throw new TypeError("Failed to construct 'XRWebGLBinding': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.XRWebGLBinding); - this.AudioData = this.AudioData || function AudioData() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'AudioData': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'AudioData': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new AudioData, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.AudioData); - this.EncodedAudioChunk = this.EncodedAudioChunk || function EncodedAudioChunk() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'EncodedAudioChunk': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'EncodedAudioChunk': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new EncodedAudioChunk, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.EncodedAudioChunk); - this.EncodedVideoChunk = this.EncodedVideoChunk || function EncodedVideoChunk() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'EncodedVideoChunk': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'EncodedVideoChunk': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new EncodedVideoChunk, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.EncodedVideoChunk); - this.ImageTrack = this.ImageTrack || function ImageTrack() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ImageTrack, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ImageTrack); - this.ImageTrackList = this.ImageTrackList || function ImageTrackList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ImageTrackList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ImageTrackList); - this.VideoColorSpace = this.VideoColorSpace || function VideoColorSpace() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'VideoColorSpace': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new VideoColorSpace, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.VideoColorSpace); - this.VideoFrame = this.VideoFrame || function VideoFrame() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'VideoFrame': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'VideoFrame': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new VideoFrame, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.VideoFrame); - this.AudioDecoder = this.AudioDecoder || function AudioDecoder() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'AudioDecoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'AudioDecoder': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new AudioDecoder, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.AudioDecoder); - this.AudioEncoder = this.AudioEncoder || function AudioEncoder() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'AudioEncoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'AudioEncoder': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new AudioEncoder, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.AudioEncoder); - this.ImageDecoder = this.ImageDecoder || function ImageDecoder() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ImageDecoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ImageDecoder': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new ImageDecoder, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ImageDecoder); - this.VideoDecoder = this.VideoDecoder || function VideoDecoder() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'VideoDecoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'VideoDecoder': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new VideoDecoder, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.VideoDecoder); - this.VideoEncoder = this.VideoEncoder || function VideoEncoder() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'VideoEncoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'VideoEncoder': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new VideoEncoder, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.VideoEncoder); - this.AuthenticatorAssertionResponse = this.AuthenticatorAssertionResponse || function AuthenticatorAssertionResponse() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new AuthenticatorAssertionResponse, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AuthenticatorAssertionResponse); - this.AuthenticatorAttestationResponse = this.AuthenticatorAttestationResponse || function AuthenticatorAttestationResponse() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new AuthenticatorAttestationResponse, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AuthenticatorAttestationResponse); - this.AuthenticatorResponse = this.AuthenticatorResponse || function AuthenticatorResponse() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new AuthenticatorResponse, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AuthenticatorResponse); - this.PublicKeyCredential = this.PublicKeyCredential || function PublicKeyCredential() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PublicKeyCredential, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PublicKeyCredential); - this.Bluetooth = this.Bluetooth || function Bluetooth() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Bluetooth, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Bluetooth); - this.BluetoothCharacteristicProperties = this.BluetoothCharacteristicProperties || function BluetoothCharacteristicProperties() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BluetoothCharacteristicProperties, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BluetoothCharacteristicProperties); - this.BluetoothDevice = this.BluetoothDevice || function BluetoothDevice() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BluetoothDevice, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BluetoothDevice); - this.BluetoothRemoteGATTCharacteristic = this.BluetoothRemoteGATTCharacteristic || function BluetoothRemoteGATTCharacteristic() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BluetoothRemoteGATTCharacteristic, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BluetoothRemoteGATTCharacteristic); - this.BluetoothRemoteGATTDescriptor = this.BluetoothRemoteGATTDescriptor || function BluetoothRemoteGATTDescriptor() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BluetoothRemoteGATTDescriptor, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BluetoothRemoteGATTDescriptor); - this.BluetoothRemoteGATTServer = this.BluetoothRemoteGATTServer || function BluetoothRemoteGATTServer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BluetoothRemoteGATTServer, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BluetoothRemoteGATTServer); - this.BluetoothRemoteGATTService = this.BluetoothRemoteGATTService || function BluetoothRemoteGATTService() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BluetoothRemoteGATTService, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BluetoothRemoteGATTService); - this.CaptureController = this.CaptureController || function CaptureController() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'CaptureController': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new CaptureController, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.CaptureController); - this.DocumentPictureInPicture = this.DocumentPictureInPicture || function DocumentPictureInPicture() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new DocumentPictureInPicture, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.DocumentPictureInPicture); - this.EyeDropper = this.EyeDropper || function EyeDropper() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'EyeDropper': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new EyeDropper, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.EyeDropper); - this.Fence = this.Fence || function Fence() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Fence, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Fence); - this.FencedFrameConfig = this.FencedFrameConfig || function FencedFrameConfig() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new FencedFrameConfig, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.FencedFrameConfig); - this.HTMLFencedFrameElement = this.HTMLFencedFrameElement || function HTMLFencedFrameElement() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HTMLFencedFrameElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HTMLFencedFrameElement, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HTMLFencedFrameElement); - this.FileSystemDirectoryHandle = this.FileSystemDirectoryHandle || function FileSystemDirectoryHandle() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new FileSystemDirectoryHandle, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.FileSystemDirectoryHandle); - this.FileSystemFileHandle = this.FileSystemFileHandle || function FileSystemFileHandle() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new FileSystemFileHandle, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.FileSystemFileHandle); - this.FileSystemHandle = this.FileSystemHandle || function FileSystemHandle() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new FileSystemHandle, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.FileSystemHandle); - this.FileSystemWritableFileStream = this.FileSystemWritableFileStream || function FileSystemWritableFileStream() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new FileSystemWritableFileStream, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.FileSystemWritableFileStream); - this.FontData = this.FontData || function FontData() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new FontData, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.FontData); - this.FragmentDirective = this.FragmentDirective || function FragmentDirective() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new FragmentDirective, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.FragmentDirective); - this.HID = this.HID || function HID() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new HID, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HID); - this.HIDConnectionEvent = this.HIDConnectionEvent || function HIDConnectionEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'HIDConnectionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new HIDConnectionEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'HIDConnectionEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.HIDConnectionEvent); - this.HIDDevice = this.HIDDevice || function HIDDevice() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new HIDDevice, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HIDDevice); - this.HIDInputReportEvent = this.HIDInputReportEvent || function HIDInputReportEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Worker, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new HIDInputReportEvent, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HIDInputReportEvent); - this.IdentityCredential = this.IdentityCredential || function IdentityCredential() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new IdentityCredential, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.IdentityCredential); - this.IdentityProvider = this.IdentityProvider || function IdentityProvider() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new IdentityProvider, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.IdentityProvider); - this.IdleDetector = this.IdleDetector || function IdleDetector() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'IdleDetector': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new IdleDetector, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.IdleDetector); - this.LaunchParams = this.LaunchParams || function LaunchParams() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new LaunchParams, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.LaunchParams); - this.LaunchQueue = this.LaunchQueue || function LaunchQueue() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new LaunchQueue, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.LaunchQueue); - this.OTPCredential = this.OTPCredential || function OTPCredential() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new OTPCredential, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.OTPCredential); - this.PaymentAddress = this.PaymentAddress || function PaymentAddress() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PaymentAddress, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PaymentAddress); - this.PaymentRequest = this.PaymentRequest || function PaymentRequest() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PaymentRequest': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'PaymentRequest': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new PaymentRequest, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.PaymentRequest); - this.PaymentResponse = this.PaymentResponse || function PaymentResponse() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PaymentResponse, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PaymentResponse); - this.PaymentMethodChangeEvent = this.PaymentMethodChangeEvent || function PaymentMethodChangeEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PaymentMethodChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'PaymentMethodChangeEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new PaymentMethodChangeEvent, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.PaymentMethodChangeEvent); - this.Presentation = this.Presentation || function Presentation() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Presentation, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Presentation); - this.PresentationAvailability = this.PresentationAvailability || function PresentationAvailability() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PresentationAvailability, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PresentationAvailability); - this.PresentationConnection = this.PresentationConnection || function PresentationConnection() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PresentationConnection, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PresentationConnection); - this.PresentationConnectionAvailableEvent = this.PresentationConnectionAvailableEvent || function PresentationConnectionAvailableEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PresentationConnectionAvailableEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new PresentationConnectionAvailableEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'PresentationConnectionAvailableEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.PresentationConnectionAvailableEvent); - this.PresentationConnectionCloseEvent = this.PresentationConnectionCloseEvent || function PresentationConnectionCloseEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PresentationConnectionCloseEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new PresentationConnectionCloseEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'PresentationConnectionCloseEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.PresentationConnectionCloseEvent); - this.PresentationConnectionList = this.PresentationConnectionList || function PresentationConnectionList() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PresentationConnectionList, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PresentationConnectionList); - this.PresentationReceiver = this.PresentationReceiver || function PresentationReceiver() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PresentationReceiver, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PresentationReceiver); - this.PresentationRequest = this.PresentationRequest || function PresentationRequest() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'PresentationRequest': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'PresentationRequest': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new PresentationRequest, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.PresentationRequest); - this.Serial = this.Serial || function Serial() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Serial, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Serial); - this.SerialPort = this.SerialPort || function SerialPort() { - // 如果是直接调用函数的话 new.target为undefined if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SerialPort, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SerialPort); - this.SharedStorage = this.SharedStorage || function SharedStorage() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SharedStorage, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SharedStorage); - this.SharedStorageWorklet = this.SharedStorageWorklet || function SharedStorageWorklet() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new SharedStorageWorklet, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.SharedStorageWorklet); - this.USB = this.USB || function USB() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new USB, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.USB); - this.USBAlternateInterface = this.USBAlternateInterface || function USBAlternateInterface() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'USBAlternateInterface': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new USBAlternateInterface, arguments =>", arguments); - throw new TypeError("Failed to construct 'USBAlternateInterface': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.USBAlternateInterface); - this.USBConfiguration = this.USBConfiguration || function USBConfiguration() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'USBConfiguration': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new USBConfiguration, arguments =>", arguments); - throw new TypeError("Failed to construct 'USBConfiguration': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.USBConfiguration); - this.USBConnectionEvent = this.USBConnectionEvent || function USBConnectionEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'USBConnectionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new USBConnectionEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'USBConnectionEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.USBConnectionEvent); - this.USBDevice = this.USBDevice || function USBDevice() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new USBDevice, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.USBDevice); - this.USBEndpoint = this.USBEndpoint || function USBEndpoint() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'USBEndpoint': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new USBEndpoint, arguments =>", arguments); - throw new TypeError("Failed to construct 'USBEndpoint': 3 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.USBEndpoint); - this.USBInTransferResult = this.USBInTransferResult || function USBInTransferResult() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'USBInTransferResult': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'USBInTransferResult': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new USBInTransferResult, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.USBInTransferResult); - this.USBInterface = this.USBInterface || function USBInterface() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'USBInterface': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new USBInterface, arguments =>", arguments); - throw new TypeError("Failed to construct 'USBInterface': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.USBInterface); - this.USBIsochronousInTransferPacket = this.USBIsochronousInTransferPacket || function USBIsochronousInTransferPacket() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'USBIsochronousInTransferPacket': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'USBIsochronousInTransferPacket': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new USBIsochronousInTransferPacket, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.USBIsochronousInTransferPacket); - this.USBIsochronousInTransferResult = this.USBIsochronousInTransferResult || function USBIsochronousInTransferResult() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'USBIsochronousInTransferResult': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'USBIsochronousInTransferResult': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new USBIsochronousInTransferResult, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.USBIsochronousInTransferResult); - this.USBIsochronousOutTransferPacket = this.USBIsochronousOutTransferPacket || function USBIsochronousOutTransferPacket() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'USBIsochronousOutTransferPacket': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'USBIsochronousOutTransferPacket': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new USBIsochronousOutTransferPacket, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.USBIsochronousOutTransferPacket); - this.USBIsochronousOutTransferResult = this.USBIsochronousOutTransferResult || function USBIsochronousOutTransferResult() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'USBIsochronousOutTransferResult': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'USBIsochronousOutTransferResult': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new USBIsochronousOutTransferResult, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.USBIsochronousOutTransferResult); - this.USBOutTransferResult = this.USBOutTransferResult || function USBOutTransferResult() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'USBOutTransferResult': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let err = new my_api.ctr.TypeError("Failed to construct 'Worker': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err } if (arguments.length < 1) { - throw new TypeError("Failed to construct 'USBOutTransferResult': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new USBOutTransferResult, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.USBOutTransferResult); - this.WakeLock = this.WakeLock || function WakeLock() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WakeLock, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WakeLock); - this.WakeLockSentinel = this.WakeLockSentinel || function WakeLockSentinel() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new WakeLockSentinel, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.WakeLockSentinel); - this.WindowControlsOverlay = this.WindowControlsOverlay || function WindowControlsOverlay() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + let err = new my_api.ctr.TypeError("Failed to construct 'Worker': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.console.log("[*] new WindowControlsOverlay, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; } - cbb_wf.setNative(this.WindowControlsOverlay); this.WindowControlsOverlayGeometryChangeEvent = this.WindowControlsOverlayGeometryChangeEvent || function WindowControlsOverlayGeometryChangeEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'WindowControlsOverlayGeometryChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WindowControlsOverlayGeometryChangeEvent, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new WindowControlsOverlayGeometryChangeEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'WindowControlsOverlayGeometryChangeEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.WindowControlsOverlayGeometryChangeEvent); - this.XRAnchor = this.XRAnchor || function XRAnchor() { - // 如果是直接调用函数的话 new.target为undefined if (!new.target) { - throw new TypeError("Illegal constructor"); + let err = new my_api.ctr.TypeError("Failed to construct 'WindowControlsOverlayGeometryChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err } - cbb_wf.console.log("[*] new XRAnchor, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; + let err = new my_api.ctr.TypeError("Failed to construct 'WindowControlsOverlayGeometryChangeEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.XRAnchor); - this.XRAnchorSet = this.XRAnchorSet || function XRAnchorSet() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + this.WindowControlsOverlay = this.WindowControlsOverlay || function WindowControlsOverlay() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WindowControlsOverlay, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new XRAnchorSet, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRAnchorSet); - this.XRBoundedReferenceSpace = this.XRBoundedReferenceSpace || function XRBoundedReferenceSpace() { - // 如果是直接调用函数的话 new.target为undefined if (!new.target) { - throw new TypeError("Illegal constructor"); + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err } - cbb_wf.console.log("[*] new XRBoundedReferenceSpace, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; + let err = new my_api.ctr.TypeError("Failed to construct 'WindowControlsOverlay': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.XRBoundedReferenceSpace); - this.XRCPUDepthInformation = this.XRCPUDepthInformation || function XRCPUDepthInformation() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + this.Window = this.Window || function Window() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Window, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new XRCPUDepthInformation, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRCPUDepthInformation); - this.XRCamera = this.XRCamera || function XRCamera() { - // 如果是直接调用函数的话 new.target为undefined if (!new.target) { - throw new TypeError("Illegal constructor"); + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err } - cbb_wf.console.log("[*] new XRCamera, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; + let err = new my_api.ctr.TypeError("Failed to construct 'Window': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.XRCamera); - this.XRDepthInformation = this.XRDepthInformation || function XRDepthInformation() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + this.WheelEvent = this.WheelEvent || function WheelEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WheelEvent, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new XRDepthInformation, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRDepthInformation); - this.XRFrame = this.XRFrame || function XRFrame() { - // 如果是直接调用函数的话 new.target为undefined if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRFrame, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRFrame); - this.XRHitTestResult = this.XRHitTestResult || function XRHitTestResult() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRHitTestResult, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRHitTestResult); - this.XRHitTestSource = this.XRHitTestSource || function XRHitTestSource() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRHitTestSource, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRHitTestSource); - this.XRInputSource = this.XRInputSource || function XRInputSource() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRInputSource, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRInputSource); - this.XRInputSourceArray = this.XRInputSourceArray || function XRInputSourceArray() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRInputSourceArray, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRInputSourceArray); - this.XRInputSourceEvent = this.XRInputSourceEvent || function XRInputSourceEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'XRInputSourceEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new XRInputSourceEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'XRInputSourceEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.XRInputSourceEvent); - this.XRInputSourcesChangeEvent = this.XRInputSourcesChangeEvent || function XRInputSourcesChangeEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'XRInputSourcesChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new XRInputSourcesChangeEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'XRInputSourcesChangeEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.XRInputSourcesChangeEvent); - this.XRLightEstimate = this.XRLightEstimate || function XRLightEstimate() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRLightEstimate, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRLightEstimate); - this.XRLightProbe = this.XRLightProbe || function XRLightProbe() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRLightProbe, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRLightProbe); - this.XRPose = this.XRPose || function XRPose() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRPose, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRPose); - this.XRRay = this.XRRay || function XRRay() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'XRRay': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new XRRay, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.XRRay); - this.XRReferenceSpace = this.XRReferenceSpace || function XRReferenceSpace() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRReferenceSpace, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRReferenceSpace); - this.XRReferenceSpaceEvent = this.XRReferenceSpaceEvent || function XRReferenceSpaceEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'XRReferenceSpaceEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new XRReferenceSpaceEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'XRReferenceSpaceEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.XRReferenceSpaceEvent); - this.XRRenderState = this.XRRenderState || function XRRenderState() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRRenderState, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRRenderState); - this.XRRigidTransform = this.XRRigidTransform || function XRRigidTransform() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'XRRigidTransform': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new XRRigidTransform, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.XRRigidTransform); - this.XRSession = this.XRSession || function XRSession() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRSession, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRSession); - this.XRSessionEvent = this.XRSessionEvent || function XRSessionEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'XRSessionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new XRSessionEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'XRSessionEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.XRSessionEvent); - this.XRSpace = this.XRSpace || function XRSpace() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRSpace, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRSpace); - this.XRSystem = this.XRSystem || function XRSystem() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRSystem, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRSystem); - this.XRTransientInputHitTestResult = this.XRTransientInputHitTestResult || function XRTransientInputHitTestResult() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRTransientInputHitTestResult, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRTransientInputHitTestResult); - this.XRTransientInputHitTestSource = this.XRTransientInputHitTestSource || function XRTransientInputHitTestSource() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRTransientInputHitTestSource, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRTransientInputHitTestSource); - this.XRView = this.XRView || function XRView() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRView, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRView); - this.XRViewerPose = this.XRViewerPose || function XRViewerPose() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRViewerPose, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRViewerPose); - this.XRViewport = this.XRViewport || function XRViewport() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRViewport, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRViewport); - this.XRWebGLDepthInformation = this.XRWebGLDepthInformation || function XRWebGLDepthInformation() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new XRWebGLDepthInformation, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.XRWebGLDepthInformation); - this.XRWebGLLayer = this.XRWebGLLayer || function XRWebGLLayer() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'XRWebGLLayer': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new XRWebGLLayer, arguments =>", arguments); - throw new TypeError("Failed to construct 'XRWebGLLayer': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.XRWebGLLayer); - this.AnimationPlaybackEvent = this.AnimationPlaybackEvent || function AnimationPlaybackEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'AnimationPlaybackEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let err = new my_api.ctr.TypeError("Failed to construct 'WheelEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err } if (arguments.length < 1) { - throw new TypeError("Failed to construct 'AnimationPlaybackEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); + let err = new my_api.ctr.TypeError("Failed to construct 'WheelEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.console.log("[*] new AnimationPlaybackEvent, arguments =>", arguments); - return this; } - cbb_wf.setNative(this.AnimationPlaybackEvent); - this.AnimationTimeline = this.AnimationTimeline || function AnimationTimeline() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + this.WebSocket = this.WebSocket || function WebSocket() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebSocket, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new AnimationTimeline, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.AnimationTimeline); - this.CSSAnimation = this.CSSAnimation || function CSSAnimation() { - // 如果是直接调用函数的话 new.target为undefined if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSAnimation, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSAnimation); - this.CSSTransition = this.CSSTransition || function CSSTransition() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSTransition, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSTransition); - this.DocumentTimeline = this.DocumentTimeline || function DocumentTimeline() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DocumentTimeline': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new DocumentTimeline, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.DocumentTimeline); - this.BackgroundFetchManager = this.BackgroundFetchManager || function BackgroundFetchManager() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BackgroundFetchManager, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BackgroundFetchManager); - this.BackgroundFetchRecord = this.BackgroundFetchRecord || function BackgroundFetchRecord() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BackgroundFetchRecord, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BackgroundFetchRecord); - this.BackgroundFetchRegistration = this.BackgroundFetchRegistration || function BackgroundFetchRegistration() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BackgroundFetchRegistration, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BackgroundFetchRegistration); - this.BluetoothUUID = this.BluetoothUUID || function BluetoothUUID() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BluetoothUUID, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BluetoothUUID); - this.BrowserCaptureMediaStreamTrack = this.BrowserCaptureMediaStreamTrack || function BrowserCaptureMediaStreamTrack() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new BrowserCaptureMediaStreamTrack, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.BrowserCaptureMediaStreamTrack); - this.CropTarget = this.CropTarget || function CropTarget() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CropTarget, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CropTarget); - this.CSSScopeRule = this.CSSScopeRule || function CSSScopeRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSScopeRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSScopeRule); - this.CSSStartingStyleRule = this.CSSStartingStyleRule || function CSSStartingStyleRule() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new CSSStartingStyleRule, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.CSSStartingStyleRule); - this.ContentVisibilityAutoStateChangeEvent = this.ContentVisibilityAutoStateChangeEvent || function ContentVisibilityAutoStateChangeEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ContentVisibilityAutoStateChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let err = new my_api.ctr.TypeError("Failed to construct 'WebSocket': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err } if (arguments.length < 1) { - throw new TypeError("Failed to construct 'ContentVisibilityAutoStateChangeEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); + let err = new my_api.ctr.TypeError("Failed to construct 'WebSocket': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.console.log("[*] new ContentVisibilityAutoStateChangeEvent, arguments =>", arguments); - return this; } - cbb_wf.setNative(this.ContentVisibilityAutoStateChangeEvent); - this.DelegatedInkTrailPresenter = this.DelegatedInkTrailPresenter || function DelegatedInkTrailPresenter() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + this.WebGLVertexArrayObject = this.WebGLVertexArrayObject || function WebGLVertexArrayObject() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLVertexArrayObject, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new DelegatedInkTrailPresenter, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.DelegatedInkTrailPresenter); - this.Ink = this.Ink || function Ink() { - // 如果是直接调用函数的话 new.target为undefined if (!new.target) { - throw new TypeError("Illegal constructor"); + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err } - cbb_wf.console.log("[*] new Ink, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLVertexArrayObject': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.Ink); - this.DocumentPictureInPictureEvent = this.DocumentPictureInPictureEvent || function DocumentPictureInPictureEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'DocumentPictureInPictureEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + this.WebGLUniformLocation = this.WebGLUniformLocation || function WebGLUniformLocation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLUniformLocation, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new DocumentPictureInPictureEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'DocumentPictureInPictureEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.DocumentPictureInPictureEvent); - this.Highlight = this.Highlight || function Highlight() { - // 如果是直接调用函数的话 new.target为undefined if (!new.target) { - throw new TypeError("Failed to construct 'Highlight': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err } - cbb_wf.console.log("[*] new Highlight, arguments =>", arguments); - return this; + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLUniformLocation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.Highlight); - this.HighlightRegistry = this.HighlightRegistry || function HighlightRegistry() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + this.WebGLTransformFeedback = this.WebGLTransformFeedback || function WebGLTransformFeedback() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLTransformFeedback, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new HighlightRegistry, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.HighlightRegistry); - this.MediaMetadata = this.MediaMetadata || function MediaMetadata() { - // 如果是直接调用函数的话 new.target为undefined if (!new.target) { - throw new TypeError("Failed to construct 'MediaMetadata': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err } - cbb_wf.console.log("[*] new MediaMetadata, arguments =>", arguments); - return this; + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLTransformFeedback': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.MediaMetadata); - this.MediaSession = this.MediaSession || function MediaSession() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + this.WebGLTexture = this.WebGLTexture || function WebGLTexture() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLTexture, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new MediaSession, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.MediaSession); - this.MutationEvent = this.MutationEvent || function MutationEvent() { - // 如果是直接调用函数的话 new.target为undefined if (!new.target) { - throw new TypeError("Illegal constructor"); + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err } - cbb_wf.console.log("[*] new MutationEvent, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLTexture': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.MutationEvent); - this.NavigatorUAData = this.NavigatorUAData || function NavigatorUAData() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + this.WebGLSync = this.WebGLSync || function WebGLSync() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLSync, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new NavigatorUAData, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.NavigatorUAData); - this.Notification = this.Notification || function Notification() { - // 如果是直接调用函数的话 new.target为undefined if (!new.target) { - throw new TypeError("Failed to construct 'Notification': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLSync': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebGLShaderPrecisionFormat = this.WebGLShaderPrecisionFormat || function WebGLShaderPrecisionFormat() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLShaderPrecisionFormat, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLShaderPrecisionFormat': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebGLShader = this.WebGLShader || function WebGLShader() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLShader, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLShader': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebGLSampler = this.WebGLSampler || function WebGLSampler() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLSampler, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLSampler': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebGLRenderingContext = this.WebGLRenderingContext || function WebGLRenderingContext() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLRenderingContext, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLRenderingContext': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebGLRenderbuffer = this.WebGLRenderbuffer || function WebGLRenderbuffer() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLRenderbuffer, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLRenderbuffer': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebGLQuery = this.WebGLQuery || function WebGLQuery() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLQuery, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLQuery': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebGLProgram = this.WebGLProgram || function WebGLProgram() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLProgram, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLProgram': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebGLObject = this.WebGLObject || function WebGLObject() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLObject, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLObject': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebGLFramebuffer = this.WebGLFramebuffer || function WebGLFramebuffer() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLFramebuffer, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLFramebuffer': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebGLContextEvent = this.WebGLContextEvent || function WebGLContextEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLContextEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLContextEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err } if (arguments.length < 1) { - throw new TypeError("Failed to construct 'Notification': 1 argument required, but only 0 present.".replace('0', arguments.length)); + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLContextEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.console.log("[*] new Notification, arguments =>", arguments); - return this; } - cbb_wf.setNative(this.Notification); - this.PaymentManager = this.PaymentManager || function PaymentManager() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + this.WebGLBuffer = this.WebGLBuffer || function WebGLBuffer() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLBuffer, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new PaymentManager, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PaymentManager); - this.PaymentRequestUpdateEvent = this.PaymentRequestUpdateEvent || function PaymentRequestUpdateEvent() { - // 如果是直接调用函数的话 new.target为undefined if (!new.target) { - throw new TypeError("Failed to construct 'PaymentRequestUpdateEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLBuffer': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebGLActiveInfo = this.WebGLActiveInfo || function WebGLActiveInfo() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGLActiveInfo, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebGLActiveInfo': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebGL2RenderingContext = this.WebGL2RenderingContext || function WebGL2RenderingContext() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebGL2RenderingContext, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebGL2RenderingContext': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WaveShaperNode = this.WaveShaperNode || function WaveShaperNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WaveShaperNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'WaveShaperNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err } if (arguments.length < 1) { - throw new TypeError("Failed to construct 'PaymentRequestUpdateEvent': 1 argument required, but only 0 present.".replace('0', arguments.length)); + let err = new my_api.ctr.TypeError("Failed to construct 'WaveShaperNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.console.log("[*] new PaymentRequestUpdateEvent, arguments =>", arguments); - return this; } - cbb_wf.setNative(this.PaymentRequestUpdateEvent); - this.PeriodicSyncManager = this.PeriodicSyncManager || function PeriodicSyncManager() { - // 如果是直接调用函数的话 new.target为undefined + this.VisualViewport = this.VisualViewport || function VisualViewport() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> VisualViewport, ", "arguments => ", arguments) + } if (!new.target) { - throw new TypeError("Illegal constructor"); + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err } - cbb_wf.console.log("[*] new PeriodicSyncManager, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; + let err = new my_api.ctr.TypeError("Failed to construct 'VisualViewport': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.PeriodicSyncManager); - this.PermissionStatus = this.PermissionStatus || function PermissionStatus() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PermissionStatus, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PermissionStatus); - this.Permissions = this.Permissions || function Permissions() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new Permissions, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.Permissions); - this.PushManager = this.PushManager || function PushManager() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PushManager, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PushManager); - this.PushSubscription = this.PushSubscription || function PushSubscription() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PushSubscription, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PushSubscription); - this.PushSubscriptionOptions = this.PushSubscriptionOptions || function PushSubscriptionOptions() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new PushSubscriptionOptions, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.PushSubscriptionOptions); - this.RemotePlayback = this.RemotePlayback || function RemotePlayback() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new RemotePlayback, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.RemotePlayback); - this.ScrollTimeline = this.ScrollTimeline || function ScrollTimeline() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ScrollTimeline': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new ScrollTimeline, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ScrollTimeline); - this.ViewTimeline = this.ViewTimeline || function ViewTimeline() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'ViewTimeline': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new ViewTimeline, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.ViewTimeline); - this.SharedWorker = this.SharedWorker || function SharedWorker() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'SharedWorker': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'SharedWorker': 1 argument required, but only 0 present.".replace('0', arguments.length)); - } - cbb_wf.console.log("[*] new SharedWorker, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.SharedWorker); - this.SpeechSynthesisErrorEvent = this.SpeechSynthesisErrorEvent || function SpeechSynthesisErrorEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'SpeechSynthesisErrorEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new SpeechSynthesisErrorEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'SpeechSynthesisErrorEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.SpeechSynthesisErrorEvent); - this.SpeechSynthesisEvent = this.SpeechSynthesisEvent || function SpeechSynthesisEvent() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'SpeechSynthesisEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new SpeechSynthesisEvent, arguments =>", arguments); - throw new TypeError("Failed to construct 'SpeechSynthesisEvent': 2 arguments required, but only 0 present."); - return this; - } - cbb_wf.setNative(this.SpeechSynthesisEvent); - this.SpeechSynthesisUtterance = this.SpeechSynthesisUtterance || function SpeechSynthesisUtterance() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Failed to construct 'SpeechSynthesisUtterance': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - cbb_wf.console.log("[*] new SpeechSynthesisUtterance, arguments =>", arguments); - return this; - } - cbb_wf.setNative(this.SpeechSynthesisUtterance); - this.VideoPlaybackQuality = this.VideoPlaybackQuality || function VideoPlaybackQuality() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new VideoPlaybackQuality, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.VideoPlaybackQuality); - this.ViewTransition = this.ViewTransition || function ViewTransition() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); - } - cbb_wf.console.log("[*] new ViewTransition, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; - } - cbb_wf.setNative(this.ViewTransition); this.VisibilityStateEntry = this.VisibilityStateEntry || function VisibilityStateEntry() { - // 如果是直接调用函数的话 new.target为undefined - if (!new.target) { - throw new TypeError("Illegal constructor"); + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> VisibilityStateEntry, ", "arguments => ", arguments) } - cbb_wf.console.log("[*] new VisibilityStateEntry, arguments =>", arguments); - throw new TypeError("Illegal constructor"); - return this; + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'VisibilityStateEntry': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; } - cbb_wf.setNative(this.VisibilityStateEntry); + this.VirtualKeyboardGeometryChangeEvent = this.VirtualKeyboardGeometryChangeEvent || function VirtualKeyboardGeometryChangeEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> VirtualKeyboardGeometryChangeEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'VirtualKeyboardGeometryChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'VirtualKeyboardGeometryChangeEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ViewTransition = this.ViewTransition || function ViewTransition() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ViewTransition, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ViewTransition': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.VideoPlaybackQuality = this.VideoPlaybackQuality || function VideoPlaybackQuality() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> VideoPlaybackQuality, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'VideoPlaybackQuality': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.VideoFrame = this.VideoFrame || function VideoFrame() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> VideoFrame, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'VideoFrame': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'VideoFrame': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.VideoColorSpace = this.VideoColorSpace || function VideoColorSpace() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> VideoColorSpace, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'VideoColorSpace': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + } + this.ValidityState = this.ValidityState || function ValidityState() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ValidityState, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ValidityState': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.VTTCue = this.VTTCue || function VTTCue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> VTTCue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'VTTCue': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'VTTCue': 3 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.UserActivation = this.UserActivation || function UserActivation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> UserActivation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'UserActivation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.URLSearchParams = this.URLSearchParams || function URLSearchParams() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> URLSearchParams, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'URLSearchParams': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + } + this.URLPattern = this.URLPattern || function URLPattern() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> URLPattern, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'URLPattern': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.URL = this.URL || function URL() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> URL, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'URL': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.UIEvent = this.UIEvent || function UIEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> UIEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'UIEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'UIEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.TrustedTypePolicyFactory = this.TrustedTypePolicyFactory || function TrustedTypePolicyFactory() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TrustedTypePolicyFactory, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TrustedTypePolicyFactory': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TrustedTypePolicy = this.TrustedTypePolicy || function TrustedTypePolicy() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TrustedTypePolicy, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TrustedTypePolicy': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TrustedScriptURL = this.TrustedScriptURL || function TrustedScriptURL() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TrustedScriptURL, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TrustedScriptURL': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TrustedScript = this.TrustedScript || function TrustedScript() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TrustedScript, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TrustedScript': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TrustedHTML = this.TrustedHTML || function TrustedHTML() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TrustedHTML, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TrustedHTML': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TreeWalker = this.TreeWalker || function TreeWalker() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TreeWalker, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TreeWalker': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TransitionEvent = this.TransitionEvent || function TransitionEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TransitionEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'TransitionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'TransitionEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.TransformStreamDefaultController = this.TransformStreamDefaultController || function TransformStreamDefaultController() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TransformStreamDefaultController, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TransformStreamDefaultController': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TransformStream = this.TransformStream || function TransformStream() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TransformStream, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'TransformStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.TrackEvent = this.TrackEvent || function TrackEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TrackEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'TrackEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'TrackEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.TouchList = this.TouchList || function TouchList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TouchList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TouchList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TouchEvent = this.TouchEvent || function TouchEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TouchEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'TouchEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'TouchEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.Touch = this.Touch || function Touch() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Touch, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Touch': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'Touch': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ToggleEvent = this.ToggleEvent || function ToggleEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ToggleEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ToggleEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ToggleEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.TimeRanges = this.TimeRanges || function TimeRanges() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TimeRanges, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TimeRanges': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TextUpdateEvent = this.TextUpdateEvent || function TextUpdateEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TextUpdateEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'TextUpdateEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'TextUpdateEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.TextTrackList = this.TextTrackList || function TextTrackList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TextTrackList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TextTrackList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TextTrackCueList = this.TextTrackCueList || function TextTrackCueList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TextTrackCueList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TextTrackCueList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TextTrackCue = this.TextTrackCue || function TextTrackCue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TextTrackCue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TextTrackCue': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TextTrack = this.TextTrack || function TextTrack() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TextTrack, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TextTrack': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TextMetrics = this.TextMetrics || function TextMetrics() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TextMetrics, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TextMetrics': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TextFormatUpdateEvent = this.TextFormatUpdateEvent || function TextFormatUpdateEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TextFormatUpdateEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'TextFormatUpdateEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'TextFormatUpdateEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.TextFormat = this.TextFormat || function TextFormat() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TextFormat, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'TextFormat': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.TextEvent = this.TextEvent || function TextEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TextEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TextEvent': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TextEncoderStream = this.TextEncoderStream || function TextEncoderStream() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TextEncoderStream, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'TextEncoderStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.TextEncoder = this.TextEncoder || function TextEncoder() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TextEncoder, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'TextEncoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.TextDecoderStream = this.TextDecoderStream || function TextDecoderStream() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TextDecoderStream, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'TextDecoderStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.TextDecoder = this.TextDecoder || function TextDecoder() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TextDecoder, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'TextDecoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.Text = this.Text || function Text() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Text, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Text': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.TaskSignal = this.TaskSignal || function TaskSignal() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TaskSignal, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TaskSignal': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TaskPriorityChangeEvent = this.TaskPriorityChangeEvent || function TaskPriorityChangeEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TaskPriorityChangeEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'TaskPriorityChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TaskPriorityChangeEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.TaskController = this.TaskController || function TaskController() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TaskController, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'TaskController': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.TaskAttributionTiming = this.TaskAttributionTiming || function TaskAttributionTiming() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> TaskAttributionTiming, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'TaskAttributionTiming': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SyncManager = this.SyncManager || function SyncManager() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SyncManager, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SyncManager': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SubmitEvent = this.SubmitEvent || function SubmitEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SubmitEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'SubmitEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'SubmitEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.StyleSheetList = this.StyleSheetList || function StyleSheetList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> StyleSheetList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'StyleSheetList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.StyleSheet = this.StyleSheet || function StyleSheet() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> StyleSheet, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'StyleSheet': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.StylePropertyMapReadOnly = this.StylePropertyMapReadOnly || function StylePropertyMapReadOnly() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> StylePropertyMapReadOnly, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'StylePropertyMapReadOnly': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.StylePropertyMap = this.StylePropertyMap || function StylePropertyMap() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> StylePropertyMap, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'StylePropertyMap': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.StorageEvent = this.StorageEvent || function StorageEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> StorageEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'StorageEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'StorageEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.Storage = this.Storage || function Storage() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Storage, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Storage': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.StereoPannerNode = this.StereoPannerNode || function StereoPannerNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> StereoPannerNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'StereoPannerNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'StereoPannerNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.StaticRange = this.StaticRange || function StaticRange() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> StaticRange, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'StaticRange': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'StaticRange': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.SourceBufferList = this.SourceBufferList || function SourceBufferList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SourceBufferList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SourceBufferList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SourceBuffer = this.SourceBuffer || function SourceBuffer() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SourceBuffer, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SourceBuffer': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ShadowRoot = this.ShadowRoot || function ShadowRoot() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ShadowRoot, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ShadowRoot': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Selection = this.Selection || function Selection() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Selection, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Selection': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SecurityPolicyViolationEvent = this.SecurityPolicyViolationEvent || function SecurityPolicyViolationEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SecurityPolicyViolationEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'SecurityPolicyViolationEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'SecurityPolicyViolationEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ScriptProcessorNode = this.ScriptProcessorNode || function ScriptProcessorNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ScriptProcessorNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ScriptProcessorNode': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ScreenOrientation = this.ScreenOrientation || function ScreenOrientation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ScreenOrientation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ScreenOrientation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Screen = this.Screen || function Screen() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Screen, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Screen': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Scheduling = this.Scheduling || function Scheduling() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Scheduling, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Scheduling': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Scheduler = this.Scheduler || function Scheduler() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Scheduler, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Scheduler': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGViewElement = this.SVGViewElement || function SVGViewElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGViewElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGViewElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGUseElement = this.SVGUseElement || function SVGUseElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGUseElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGUseElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGUnitTypes = this.SVGUnitTypes || function SVGUnitTypes() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGUnitTypes, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGUnitTypes': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGTransformList = this.SVGTransformList || function SVGTransformList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGTransformList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGTransformList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGTransform = this.SVGTransform || function SVGTransform() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGTransform, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGTransform': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGTitleElement = this.SVGTitleElement || function SVGTitleElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGTitleElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGTitleElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGTextPositioningElement = this.SVGTextPositioningElement || function SVGTextPositioningElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGTextPositioningElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGTextPositioningElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGTextPathElement = this.SVGTextPathElement || function SVGTextPathElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGTextPathElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGTextPathElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGTextElement = this.SVGTextElement || function SVGTextElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGTextElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGTextElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGTextContentElement = this.SVGTextContentElement || function SVGTextContentElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGTextContentElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGTextContentElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGTSpanElement = this.SVGTSpanElement || function SVGTSpanElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGTSpanElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGTSpanElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGSymbolElement = this.SVGSymbolElement || function SVGSymbolElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGSymbolElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGSymbolElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGSwitchElement = this.SVGSwitchElement || function SVGSwitchElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGSwitchElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGSwitchElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGStyleElement = this.SVGStyleElement || function SVGStyleElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGStyleElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGStyleElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGStringList = this.SVGStringList || function SVGStringList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGStringList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGStringList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGStopElement = this.SVGStopElement || function SVGStopElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGStopElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGStopElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGSetElement = this.SVGSetElement || function SVGSetElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGSetElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGSetElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGScriptElement = this.SVGScriptElement || function SVGScriptElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGScriptElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGScriptElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGSVGElement = this.SVGSVGElement || function SVGSVGElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGSVGElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGSVGElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGRectElement = this.SVGRectElement || function SVGRectElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGRectElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGRectElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGRect = this.SVGRect || function SVGRect() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGRect, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGRect': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGRadialGradientElement = this.SVGRadialGradientElement || function SVGRadialGradientElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGRadialGradientElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGRadialGradientElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGPreserveAspectRatio = this.SVGPreserveAspectRatio || function SVGPreserveAspectRatio() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGPreserveAspectRatio, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGPreserveAspectRatio': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGPolylineElement = this.SVGPolylineElement || function SVGPolylineElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGPolylineElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGPolylineElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGPolygonElement = this.SVGPolygonElement || function SVGPolygonElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGPolygonElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGPolygonElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGPointList = this.SVGPointList || function SVGPointList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGPointList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGPointList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGPoint = this.SVGPoint || function SVGPoint() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGPoint, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGPoint': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGPatternElement = this.SVGPatternElement || function SVGPatternElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGPatternElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGPatternElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGPathElement = this.SVGPathElement || function SVGPathElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGPathElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGPathElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGNumberList = this.SVGNumberList || function SVGNumberList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGNumberList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGNumberList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGNumber = this.SVGNumber || function SVGNumber() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGNumber, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGNumber': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGMetadataElement = this.SVGMetadataElement || function SVGMetadataElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGMetadataElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGMetadataElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGMatrix = this.SVGMatrix || function SVGMatrix() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGMatrix, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGMatrix': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGMaskElement = this.SVGMaskElement || function SVGMaskElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGMaskElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGMaskElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGMarkerElement = this.SVGMarkerElement || function SVGMarkerElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGMarkerElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGMarkerElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGMPathElement = this.SVGMPathElement || function SVGMPathElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGMPathElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGMPathElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGLinearGradientElement = this.SVGLinearGradientElement || function SVGLinearGradientElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGLinearGradientElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGLinearGradientElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGLineElement = this.SVGLineElement || function SVGLineElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGLineElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGLineElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGLengthList = this.SVGLengthList || function SVGLengthList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGLengthList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGLengthList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGLength = this.SVGLength || function SVGLength() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGLength, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGLength': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGImageElement = this.SVGImageElement || function SVGImageElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGImageElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGImageElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGGraphicsElement = this.SVGGraphicsElement || function SVGGraphicsElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGGraphicsElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGGraphicsElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGGradientElement = this.SVGGradientElement || function SVGGradientElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGGradientElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGGradientElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGGeometryElement = this.SVGGeometryElement || function SVGGeometryElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGGeometryElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGGeometryElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGGElement = this.SVGGElement || function SVGGElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGGElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGGElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGForeignObjectElement = this.SVGForeignObjectElement || function SVGForeignObjectElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGForeignObjectElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGForeignObjectElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFilterElement = this.SVGFilterElement || function SVGFilterElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFilterElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFilterElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFETurbulenceElement = this.SVGFETurbulenceElement || function SVGFETurbulenceElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFETurbulenceElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFETurbulenceElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFETileElement = this.SVGFETileElement || function SVGFETileElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFETileElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFETileElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFESpotLightElement = this.SVGFESpotLightElement || function SVGFESpotLightElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFESpotLightElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFESpotLightElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFESpecularLightingElement = this.SVGFESpecularLightingElement || function SVGFESpecularLightingElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFESpecularLightingElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFESpecularLightingElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEPointLightElement = this.SVGFEPointLightElement || function SVGFEPointLightElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEPointLightElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEPointLightElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEOffsetElement = this.SVGFEOffsetElement || function SVGFEOffsetElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEOffsetElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEOffsetElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEMorphologyElement = this.SVGFEMorphologyElement || function SVGFEMorphologyElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEMorphologyElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEMorphologyElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEMergeNodeElement = this.SVGFEMergeNodeElement || function SVGFEMergeNodeElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEMergeNodeElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEMergeNodeElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEMergeElement = this.SVGFEMergeElement || function SVGFEMergeElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEMergeElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEMergeElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEImageElement = this.SVGFEImageElement || function SVGFEImageElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEImageElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEImageElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEGaussianBlurElement = this.SVGFEGaussianBlurElement || function SVGFEGaussianBlurElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEGaussianBlurElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEGaussianBlurElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEFuncRElement = this.SVGFEFuncRElement || function SVGFEFuncRElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEFuncRElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEFuncRElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEFuncGElement = this.SVGFEFuncGElement || function SVGFEFuncGElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEFuncGElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEFuncGElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEFuncBElement = this.SVGFEFuncBElement || function SVGFEFuncBElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEFuncBElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEFuncBElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEFuncAElement = this.SVGFEFuncAElement || function SVGFEFuncAElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEFuncAElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEFuncAElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEFloodElement = this.SVGFEFloodElement || function SVGFEFloodElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEFloodElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEFloodElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEDropShadowElement = this.SVGFEDropShadowElement || function SVGFEDropShadowElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEDropShadowElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEDropShadowElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEDistantLightElement = this.SVGFEDistantLightElement || function SVGFEDistantLightElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEDistantLightElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEDistantLightElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEDisplacementMapElement = this.SVGFEDisplacementMapElement || function SVGFEDisplacementMapElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEDisplacementMapElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEDisplacementMapElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEDiffuseLightingElement = this.SVGFEDiffuseLightingElement || function SVGFEDiffuseLightingElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEDiffuseLightingElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEDiffuseLightingElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEConvolveMatrixElement = this.SVGFEConvolveMatrixElement || function SVGFEConvolveMatrixElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEConvolveMatrixElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEConvolveMatrixElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFECompositeElement = this.SVGFECompositeElement || function SVGFECompositeElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFECompositeElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFECompositeElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEComponentTransferElement = this.SVGFEComponentTransferElement || function SVGFEComponentTransferElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEComponentTransferElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEComponentTransferElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEColorMatrixElement = this.SVGFEColorMatrixElement || function SVGFEColorMatrixElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEColorMatrixElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEColorMatrixElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGFEBlendElement = this.SVGFEBlendElement || function SVGFEBlendElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGFEBlendElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGFEBlendElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGEllipseElement = this.SVGEllipseElement || function SVGEllipseElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGEllipseElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGEllipseElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGElement = this.SVGElement || function SVGElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGDescElement = this.SVGDescElement || function SVGDescElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGDescElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGDescElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGDefsElement = this.SVGDefsElement || function SVGDefsElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGDefsElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGDefsElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGComponentTransferFunctionElement = this.SVGComponentTransferFunctionElement || function SVGComponentTransferFunctionElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGComponentTransferFunctionElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGComponentTransferFunctionElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGClipPathElement = this.SVGClipPathElement || function SVGClipPathElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGClipPathElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGClipPathElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGCircleElement = this.SVGCircleElement || function SVGCircleElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGCircleElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGCircleElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimationElement = this.SVGAnimationElement || function SVGAnimationElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimationElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimationElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimatedTransformList = this.SVGAnimatedTransformList || function SVGAnimatedTransformList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimatedTransformList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimatedTransformList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimatedString = this.SVGAnimatedString || function SVGAnimatedString() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimatedString, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimatedString': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimatedRect = this.SVGAnimatedRect || function SVGAnimatedRect() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimatedRect, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimatedRect': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimatedPreserveAspectRatio = this.SVGAnimatedPreserveAspectRatio || function SVGAnimatedPreserveAspectRatio() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimatedPreserveAspectRatio, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimatedPreserveAspectRatio': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimatedNumberList = this.SVGAnimatedNumberList || function SVGAnimatedNumberList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimatedNumberList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimatedNumberList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimatedNumber = this.SVGAnimatedNumber || function SVGAnimatedNumber() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimatedNumber, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimatedNumber': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimatedLengthList = this.SVGAnimatedLengthList || function SVGAnimatedLengthList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimatedLengthList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimatedLengthList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimatedLength = this.SVGAnimatedLength || function SVGAnimatedLength() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimatedLength, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimatedLength': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimatedInteger = this.SVGAnimatedInteger || function SVGAnimatedInteger() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimatedInteger, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimatedInteger': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimatedEnumeration = this.SVGAnimatedEnumeration || function SVGAnimatedEnumeration() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimatedEnumeration, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimatedEnumeration': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimatedBoolean = this.SVGAnimatedBoolean || function SVGAnimatedBoolean() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimatedBoolean, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimatedBoolean': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimatedAngle = this.SVGAnimatedAngle || function SVGAnimatedAngle() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimatedAngle, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimatedAngle': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimateTransformElement = this.SVGAnimateTransformElement || function SVGAnimateTransformElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimateTransformElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimateTransformElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimateMotionElement = this.SVGAnimateMotionElement || function SVGAnimateMotionElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimateMotionElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimateMotionElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAnimateElement = this.SVGAnimateElement || function SVGAnimateElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAnimateElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAnimateElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAngle = this.SVGAngle || function SVGAngle() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAngle, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAngle': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SVGAElement = this.SVGAElement || function SVGAElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SVGAElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SVGAElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Response = this.Response || function Response() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Response, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Response': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.ResizeObserverSize = this.ResizeObserverSize || function ResizeObserverSize() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ResizeObserverSize, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ResizeObserverSize': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ResizeObserverEntry = this.ResizeObserverEntry || function ResizeObserverEntry() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ResizeObserverEntry, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ResizeObserverEntry': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ResizeObserver = this.ResizeObserver || function ResizeObserver() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ResizeObserver, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ResizeObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.Request = this.Request || function Request() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Request, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Request': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'Request': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ReportingObserver = this.ReportingObserver || function ReportingObserver() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ReportingObserver, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ReportingObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ReportingObserver': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ReadableStreamDefaultReader = this.ReadableStreamDefaultReader || function ReadableStreamDefaultReader() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ReadableStreamDefaultReader, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ReadableStreamDefaultReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ReadableStreamDefaultReader': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ReadableStreamDefaultController = this.ReadableStreamDefaultController || function ReadableStreamDefaultController() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ReadableStreamDefaultController, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ReadableStreamDefaultController': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ReadableStreamBYOBRequest = this.ReadableStreamBYOBRequest || function ReadableStreamBYOBRequest() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ReadableStreamBYOBRequest, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ReadableStreamBYOBRequest': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ReadableStreamBYOBReader = this.ReadableStreamBYOBReader || function ReadableStreamBYOBReader() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ReadableStreamBYOBReader, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ReadableStreamBYOBReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ReadableStreamBYOBReader': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ReadableStream = this.ReadableStream || function ReadableStream() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ReadableStream, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ReadableStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.ReadableByteStreamController = this.ReadableByteStreamController || function ReadableByteStreamController() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ReadableByteStreamController, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ReadableByteStreamController': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Range = this.Range || function Range() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Range, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Range': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.RadioNodeList = this.RadioNodeList || function RadioNodeList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RadioNodeList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RadioNodeList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCTrackEvent = this.RTCTrackEvent || function RTCTrackEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCTrackEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCTrackEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCTrackEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCStatsReport = this.RTCStatsReport || function RTCStatsReport() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCStatsReport, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCStatsReport': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCSessionDescription = this.RTCSessionDescription || function RTCSessionDescription() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCSessionDescription, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCSessionDescription': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.RTCSctpTransport = this.RTCSctpTransport || function RTCSctpTransport() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCSctpTransport, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCSctpTransport': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCRtpTransceiver = this.RTCRtpTransceiver || function RTCRtpTransceiver() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCRtpTransceiver, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCRtpTransceiver': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCRtpSender = this.RTCRtpSender || function RTCRtpSender() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCRtpSender, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCRtpSender': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCRtpReceiver = this.RTCRtpReceiver || function RTCRtpReceiver() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCRtpReceiver, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCRtpReceiver': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCPeerConnectionIceEvent = this.RTCPeerConnectionIceEvent || function RTCPeerConnectionIceEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCPeerConnectionIceEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCPeerConnectionIceEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCPeerConnectionIceEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.RTCPeerConnectionIceErrorEvent = this.RTCPeerConnectionIceErrorEvent || function RTCPeerConnectionIceErrorEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCPeerConnectionIceErrorEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCPeerConnectionIceErrorEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCPeerConnectionIceErrorEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCPeerConnection = this.RTCPeerConnection || function RTCPeerConnection() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCPeerConnection, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCPeerConnection': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.RTCIceTransport = this.RTCIceTransport || function RTCIceTransport() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCIceTransport, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCIceTransport': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCIceCandidate = this.RTCIceCandidate || function RTCIceCandidate() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCIceCandidate, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCIceCandidate': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCIceCandidate': sdpMid and sdpMLineIndex are both null."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCErrorEvent = this.RTCErrorEvent || function RTCErrorEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCErrorEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCErrorEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCErrorEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCError = this.RTCError || function RTCError() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCError, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCError': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.RTCEncodedVideoFrame = this.RTCEncodedVideoFrame || function RTCEncodedVideoFrame() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCEncodedVideoFrame, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCEncodedVideoFrame': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCEncodedVideoFrame': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.RTCEncodedAudioFrame = this.RTCEncodedAudioFrame || function RTCEncodedAudioFrame() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCEncodedAudioFrame, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCEncodedAudioFrame': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCEncodedAudioFrame': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.RTCDtlsTransport = this.RTCDtlsTransport || function RTCDtlsTransport() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCDtlsTransport, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCDtlsTransport': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCDataChannelEvent = this.RTCDataChannelEvent || function RTCDataChannelEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCDataChannelEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCDataChannelEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCDataChannelEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCDTMFToneChangeEvent = this.RTCDTMFToneChangeEvent || function RTCDTMFToneChangeEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCDTMFToneChangeEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'RTCDTMFToneChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCDTMFToneChangeEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCDTMFSender = this.RTCDTMFSender || function RTCDTMFSender() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCDTMFSender, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCDTMFSender': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCCertificate = this.RTCCertificate || function RTCCertificate() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCCertificate, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCCertificate': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PromiseRejectionEvent = this.PromiseRejectionEvent || function PromiseRejectionEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PromiseRejectionEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PromiseRejectionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PromiseRejectionEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ProgressEvent = this.ProgressEvent || function ProgressEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ProgressEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ProgressEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ProgressEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.Profiler = this.Profiler || function Profiler() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Profiler, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Profiler': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'Profiler': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ProcessingInstruction = this.ProcessingInstruction || function ProcessingInstruction() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ProcessingInstruction, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ProcessingInstruction': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PopStateEvent = this.PopStateEvent || function PopStateEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PopStateEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PopStateEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PopStateEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.PointerEvent = this.PointerEvent || function PointerEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PointerEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PointerEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PointerEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.PluginArray = this.PluginArray || function PluginArray() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PluginArray, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PluginArray': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Plugin = this.Plugin || function Plugin() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Plugin, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Plugin': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PictureInPictureWindow = this.PictureInPictureWindow || function PictureInPictureWindow() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PictureInPictureWindow, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PictureInPictureWindow': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PictureInPictureEvent = this.PictureInPictureEvent || function PictureInPictureEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PictureInPictureEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PictureInPictureEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PictureInPictureEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PeriodicWave = this.PeriodicWave || function PeriodicWave() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PeriodicWave, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PeriodicWave': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PeriodicWave': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.PerformanceTiming = this.PerformanceTiming || function PerformanceTiming() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceTiming, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceTiming': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PerformanceServerTiming = this.PerformanceServerTiming || function PerformanceServerTiming() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceServerTiming, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceServerTiming': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PerformanceResourceTiming = this.PerformanceResourceTiming || function PerformanceResourceTiming() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceResourceTiming, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceResourceTiming': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PerformancePaintTiming = this.PerformancePaintTiming || function PerformancePaintTiming() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformancePaintTiming, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PerformancePaintTiming': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PerformanceObserverEntryList = this.PerformanceObserverEntryList || function PerformanceObserverEntryList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceObserverEntryList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceObserverEntryList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PerformanceObserver = this.PerformanceObserver || function PerformanceObserver() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceObserver, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceObserver': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.PerformanceNavigationTiming = this.PerformanceNavigationTiming || function PerformanceNavigationTiming() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceNavigationTiming, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceNavigationTiming': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PerformanceNavigation = this.PerformanceNavigation || function PerformanceNavigation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceNavigation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceNavigation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PerformanceMeasure = this.PerformanceMeasure || function PerformanceMeasure() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceMeasure, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceMeasure': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PerformanceMark = this.PerformanceMark || function PerformanceMark() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceMark, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceMark': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceMark': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.PerformanceLongTaskTiming = this.PerformanceLongTaskTiming || function PerformanceLongTaskTiming() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceLongTaskTiming, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceLongTaskTiming': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PerformanceEventTiming = this.PerformanceEventTiming || function PerformanceEventTiming() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceEventTiming, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceEventTiming': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PerformanceEntry = this.PerformanceEntry || function PerformanceEntry() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceEntry, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceEntry': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PerformanceElementTiming = this.PerformanceElementTiming || function PerformanceElementTiming() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceElementTiming, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceElementTiming': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Performance = this.Performance || function Performance() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Performance, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Performance': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Path2D = this.Path2D || function Path2D() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Path2D, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Path2D': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.PannerNode = this.PannerNode || function PannerNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PannerNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PannerNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PannerNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.PageTransitionEvent = this.PageTransitionEvent || function PageTransitionEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PageTransitionEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PageTransitionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PageTransitionEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.OverconstrainedError = this.OverconstrainedError || function OverconstrainedError() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> OverconstrainedError, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'OverconstrainedError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'OverconstrainedError': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.OscillatorNode = this.OscillatorNode || function OscillatorNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> OscillatorNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'OscillatorNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'OscillatorNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.OffscreenCanvasRenderingContext2D = this.OffscreenCanvasRenderingContext2D || function OffscreenCanvasRenderingContext2D() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> OffscreenCanvasRenderingContext2D, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'OffscreenCanvasRenderingContext2D': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.OffscreenCanvas = this.OffscreenCanvas || function OffscreenCanvas() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> OffscreenCanvas, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'OffscreenCanvas': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'OffscreenCanvas': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.OfflineAudioContext = this.OfflineAudioContext || function OfflineAudioContext() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> OfflineAudioContext, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'OfflineAudioContext': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'OfflineAudioContext': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.OfflineAudioCompletionEvent = this.OfflineAudioCompletionEvent || function OfflineAudioCompletionEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> OfflineAudioCompletionEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'OfflineAudioCompletionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'OfflineAudioCompletionEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NodeList = this.NodeList || function NodeList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NodeList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NodeList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NodeIterator = this.NodeIterator || function NodeIterator() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NodeIterator, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NodeIterator': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Node = this.Node || function Node() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Node, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Node': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NetworkInformation = this.NetworkInformation || function NetworkInformation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NetworkInformation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NetworkInformation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NavigatorUAData = this.NavigatorUAData || function NavigatorUAData() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NavigatorUAData, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NavigatorUAData': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Navigator = this.Navigator || function Navigator() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Navigator, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Navigator': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NavigationTransition = this.NavigationTransition || function NavigationTransition() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NavigationTransition, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NavigationTransition': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NavigationHistoryEntry = this.NavigationHistoryEntry || function NavigationHistoryEntry() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NavigationHistoryEntry, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NavigationHistoryEntry': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NavigationDestination = this.NavigationDestination || function NavigationDestination() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NavigationDestination, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NavigationDestination': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NavigationCurrentEntryChangeEvent = this.NavigationCurrentEntryChangeEvent || function NavigationCurrentEntryChangeEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NavigationCurrentEntryChangeEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'NavigationCurrentEntryChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NavigationCurrentEntryChangeEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Navigation = this.Navigation || function Navigation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Navigation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Navigation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NavigateEvent = this.NavigateEvent || function NavigateEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NavigateEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'NavigateEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NavigateEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NamedNodeMap = this.NamedNodeMap || function NamedNodeMap() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NamedNodeMap, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NamedNodeMap': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MutationRecord = this.MutationRecord || function MutationRecord() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MutationRecord, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MutationRecord': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MutationObserver = this.MutationObserver || function MutationObserver() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MutationObserver, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MutationObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'MutationObserver': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.MouseEvent = this.MouseEvent || function MouseEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MouseEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MouseEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'MouseEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.MimeTypeArray = this.MimeTypeArray || function MimeTypeArray() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MimeTypeArray, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MimeTypeArray': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MimeType = this.MimeType || function MimeType() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MimeType, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MimeType': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MessagePort = this.MessagePort || function MessagePort() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MessagePort, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MessagePort': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MessageEvent = this.MessageEvent || function MessageEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MessageEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MessageEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'MessageEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.MessageChannel = this.MessageChannel || function MessageChannel() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MessageChannel, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MessageChannel': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.MediaStreamTrackVideoStats = this.MediaStreamTrackVideoStats || function MediaStreamTrackVideoStats() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaStreamTrackVideoStats, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamTrackVideoStats': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaStreamTrackProcessor = this.MediaStreamTrackProcessor || function MediaStreamTrackProcessor() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaStreamTrackProcessor, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamTrackProcessor': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamTrackProcessor': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.MediaStreamTrackGenerator = this.MediaStreamTrackGenerator || function MediaStreamTrackGenerator() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaStreamTrackGenerator, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamTrackGenerator': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamTrackGenerator': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.MediaStreamTrackEvent = this.MediaStreamTrackEvent || function MediaStreamTrackEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaStreamTrackEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamTrackEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamTrackEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaStreamTrackAudioStats = this.MediaStreamTrackAudioStats || function MediaStreamTrackAudioStats() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaStreamTrackAudioStats, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamTrackAudioStats': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaStreamTrack = this.MediaStreamTrack || function MediaStreamTrack() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaStreamTrack, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamTrack': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaStreamEvent = this.MediaStreamEvent || function MediaStreamEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaStreamEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.MediaStreamAudioSourceNode = this.MediaStreamAudioSourceNode || function MediaStreamAudioSourceNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaStreamAudioSourceNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamAudioSourceNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamAudioSourceNode': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaStreamAudioDestinationNode = this.MediaStreamAudioDestinationNode || function MediaStreamAudioDestinationNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaStreamAudioDestinationNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamAudioDestinationNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStreamAudioDestinationNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.MediaStream = this.MediaStream || function MediaStream() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaStream, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.MediaSourceHandle = this.MediaSourceHandle || function MediaSourceHandle() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaSourceHandle, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaSourceHandle': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaSource = this.MediaSource || function MediaSource() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaSource, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaSource': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.MediaRecorder = this.MediaRecorder || function MediaRecorder() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaRecorder, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaRecorder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaRecorder': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.MediaQueryListEvent = this.MediaQueryListEvent || function MediaQueryListEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaQueryListEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaQueryListEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaQueryListEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.MediaQueryList = this.MediaQueryList || function MediaQueryList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaQueryList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaQueryList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaList = this.MediaList || function MediaList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaError = this.MediaError || function MediaError() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaError, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaError': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaEncryptedEvent = this.MediaEncryptedEvent || function MediaEncryptedEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaEncryptedEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaEncryptedEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaEncryptedEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.MediaElementAudioSourceNode = this.MediaElementAudioSourceNode || function MediaElementAudioSourceNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaElementAudioSourceNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaElementAudioSourceNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaElementAudioSourceNode': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaCapabilities = this.MediaCapabilities || function MediaCapabilities() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaCapabilities, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaCapabilities': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MathMLElement = this.MathMLElement || function MathMLElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MathMLElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MathMLElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Location = this.Location || function Location() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Location, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Location': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.LayoutShiftAttribution = this.LayoutShiftAttribution || function LayoutShiftAttribution() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> LayoutShiftAttribution, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'LayoutShiftAttribution': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.LayoutShift = this.LayoutShift || function LayoutShift() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> LayoutShift, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'LayoutShift': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.LargestContentfulPaint = this.LargestContentfulPaint || function LargestContentfulPaint() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> LargestContentfulPaint, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'LargestContentfulPaint': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.KeyframeEffect = this.KeyframeEffect || function KeyframeEffect() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> KeyframeEffect, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'KeyframeEffect': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'KeyframeEffect': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.KeyboardEvent = this.KeyboardEvent || function KeyboardEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> KeyboardEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'KeyboardEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'KeyboardEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.IntersectionObserverEntry = this.IntersectionObserverEntry || function IntersectionObserverEntry() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IntersectionObserverEntry, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IntersectionObserverEntry': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IntersectionObserver = this.IntersectionObserver || function IntersectionObserver() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IntersectionObserver, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'IntersectionObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'IntersectionObserver': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.InputEvent = this.InputEvent || function InputEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> InputEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'InputEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'InputEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.InputDeviceInfo = this.InputDeviceInfo || function InputDeviceInfo() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> InputDeviceInfo, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'InputDeviceInfo': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.InputDeviceCapabilities = this.InputDeviceCapabilities || function InputDeviceCapabilities() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> InputDeviceCapabilities, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'InputDeviceCapabilities': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.Ink = this.Ink || function Ink() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Ink, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Ink': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ImageData = this.ImageData || function ImageData() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ImageData, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ImageData': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ImageData': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ImageCapture = this.ImageCapture || function ImageCapture() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ImageCapture, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ImageCapture': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ImageCapture': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ImageBitmapRenderingContext = this.ImageBitmapRenderingContext || function ImageBitmapRenderingContext() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ImageBitmapRenderingContext, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ImageBitmapRenderingContext': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ImageBitmap = this.ImageBitmap || function ImageBitmap() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ImageBitmap, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ImageBitmap': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IdleDeadline = this.IdleDeadline || function IdleDeadline() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IdleDeadline, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IdleDeadline': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IIRFilterNode = this.IIRFilterNode || function IIRFilterNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IIRFilterNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'IIRFilterNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IIRFilterNode': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IDBVersionChangeEvent = this.IDBVersionChangeEvent || function IDBVersionChangeEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IDBVersionChangeEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'IDBVersionChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'IDBVersionChangeEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.IDBTransaction = this.IDBTransaction || function IDBTransaction() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IDBTransaction, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IDBTransaction': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IDBRequest = this.IDBRequest || function IDBRequest() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IDBRequest, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IDBRequest': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IDBOpenDBRequest = this.IDBOpenDBRequest || function IDBOpenDBRequest() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IDBOpenDBRequest, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IDBOpenDBRequest': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IDBObjectStore = this.IDBObjectStore || function IDBObjectStore() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IDBObjectStore, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IDBObjectStore': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IDBKeyRange = this.IDBKeyRange || function IDBKeyRange() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IDBKeyRange, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IDBKeyRange': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IDBIndex = this.IDBIndex || function IDBIndex() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IDBIndex, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IDBIndex': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IDBFactory = this.IDBFactory || function IDBFactory() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IDBFactory, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IDBFactory': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IDBDatabase = this.IDBDatabase || function IDBDatabase() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IDBDatabase, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IDBDatabase': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IDBCursorWithValue = this.IDBCursorWithValue || function IDBCursorWithValue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IDBCursorWithValue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IDBCursorWithValue': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IDBCursor = this.IDBCursor || function IDBCursor() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IDBCursor, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IDBCursor': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.History = this.History || function History() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> History, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'History': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HighlightRegistry = this.HighlightRegistry || function HighlightRegistry() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HighlightRegistry, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HighlightRegistry': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Highlight = this.Highlight || function Highlight() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Highlight, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Highlight': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.Headers = this.Headers || function Headers() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Headers, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Headers': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.HashChangeEvent = this.HashChangeEvent || function HashChangeEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HashChangeEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HashChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'HashChangeEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.HTMLVideoElement = this.HTMLVideoElement || function HTMLVideoElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLVideoElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLVideoElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLVideoElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLUnknownElement = this.HTMLUnknownElement || function HTMLUnknownElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLUnknownElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLUnknownElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLUListElement = this.HTMLUListElement || function HTMLUListElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLUListElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLUListElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLUListElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLTrackElement = this.HTMLTrackElement || function HTMLTrackElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLTrackElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTrackElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTrackElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLTitleElement = this.HTMLTitleElement || function HTMLTitleElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLTitleElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTitleElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTitleElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLTimeElement = this.HTMLTimeElement || function HTMLTimeElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLTimeElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTimeElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTimeElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLTextAreaElement = this.HTMLTextAreaElement || function HTMLTextAreaElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLTextAreaElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTextAreaElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTextAreaElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLTemplateElement = this.HTMLTemplateElement || function HTMLTemplateElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLTemplateElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTemplateElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTemplateElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLTableSectionElement = this.HTMLTableSectionElement || function HTMLTableSectionElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLTableSectionElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTableSectionElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTableSectionElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLTableRowElement = this.HTMLTableRowElement || function HTMLTableRowElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLTableRowElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTableRowElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTableRowElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLTableElement = this.HTMLTableElement || function HTMLTableElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLTableElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTableElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTableElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLTableColElement = this.HTMLTableColElement || function HTMLTableColElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLTableColElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTableColElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTableColElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLTableCellElement = this.HTMLTableCellElement || function HTMLTableCellElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLTableCellElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTableCellElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTableCellElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLTableCaptionElement = this.HTMLTableCaptionElement || function HTMLTableCaptionElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLTableCaptionElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTableCaptionElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLTableCaptionElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLStyleElement = this.HTMLStyleElement || function HTMLStyleElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLStyleElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLStyleElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLStyleElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLSpanElement = this.HTMLSpanElement || function HTMLSpanElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLSpanElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLSpanElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLSpanElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLSourceElement = this.HTMLSourceElement || function HTMLSourceElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLSourceElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLSourceElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLSourceElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLSlotElement = this.HTMLSlotElement || function HTMLSlotElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLSlotElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLSlotElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLSlotElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLSelectElement = this.HTMLSelectElement || function HTMLSelectElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLSelectElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLSelectElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLSelectElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLScriptElement = this.HTMLScriptElement || function HTMLScriptElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLScriptElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLScriptElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLScriptElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLQuoteElement = this.HTMLQuoteElement || function HTMLQuoteElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLQuoteElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLQuoteElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLQuoteElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLProgressElement = this.HTMLProgressElement || function HTMLProgressElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLProgressElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLProgressElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLProgressElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLPreElement = this.HTMLPreElement || function HTMLPreElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLPreElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLPreElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLPreElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLPictureElement = this.HTMLPictureElement || function HTMLPictureElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLPictureElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLPictureElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLPictureElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLParamElement = this.HTMLParamElement || function HTMLParamElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLParamElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLParamElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLParamElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLParagraphElement = this.HTMLParagraphElement || function HTMLParagraphElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLParagraphElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLParagraphElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLParagraphElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLOutputElement = this.HTMLOutputElement || function HTMLOutputElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLOutputElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLOutputElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLOutputElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLOptionsCollection = this.HTMLOptionsCollection || function HTMLOptionsCollection() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLOptionsCollection, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLOptionsCollection': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLOptionElement = this.HTMLOptionElement || function HTMLOptionElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLOptionElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLOptionElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLOptionElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLOptGroupElement = this.HTMLOptGroupElement || function HTMLOptGroupElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLOptGroupElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLOptGroupElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLOptGroupElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLObjectElement = this.HTMLObjectElement || function HTMLObjectElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLObjectElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLObjectElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLObjectElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLOListElement = this.HTMLOListElement || function HTMLOListElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLOListElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLOListElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLOListElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLModElement = this.HTMLModElement || function HTMLModElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLModElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLModElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLModElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLMeterElement = this.HTMLMeterElement || function HTMLMeterElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLMeterElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLMeterElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLMeterElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLMetaElement = this.HTMLMetaElement || function HTMLMetaElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLMetaElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLMetaElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLMetaElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLMenuElement = this.HTMLMenuElement || function HTMLMenuElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLMenuElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLMenuElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLMenuElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLMediaElement = this.HTMLMediaElement || function HTMLMediaElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLMediaElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLMediaElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLMarqueeElement = this.HTMLMarqueeElement || function HTMLMarqueeElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLMarqueeElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLMarqueeElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLMarqueeElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLMapElement = this.HTMLMapElement || function HTMLMapElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLMapElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLMapElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLMapElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLLinkElement = this.HTMLLinkElement || function HTMLLinkElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLLinkElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLLinkElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLLinkElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLLegendElement = this.HTMLLegendElement || function HTMLLegendElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLLegendElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLLegendElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLLegendElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLLabelElement = this.HTMLLabelElement || function HTMLLabelElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLLabelElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLLabelElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLLabelElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLLIElement = this.HTMLLIElement || function HTMLLIElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLLIElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLLIElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLLIElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLInputElement = this.HTMLInputElement || function HTMLInputElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLInputElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLInputElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLInputElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLImageElement = this.HTMLImageElement || function HTMLImageElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLImageElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLImageElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLImageElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLIFrameElement = this.HTMLIFrameElement || function HTMLIFrameElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLIFrameElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLIFrameElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLIFrameElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLHtmlElement = this.HTMLHtmlElement || function HTMLHtmlElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLHtmlElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLHtmlElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLHtmlElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLHeadingElement = this.HTMLHeadingElement || function HTMLHeadingElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLHeadingElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLHeadingElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLHeadingElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLHeadElement = this.HTMLHeadElement || function HTMLHeadElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLHeadElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLHeadElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLHeadElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLHRElement = this.HTMLHRElement || function HTMLHRElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLHRElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLHRElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLHRElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLFrameSetElement = this.HTMLFrameSetElement || function HTMLFrameSetElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLFrameSetElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLFrameSetElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLFrameSetElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLFrameElement = this.HTMLFrameElement || function HTMLFrameElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLFrameElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLFrameElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLFrameElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLFormElement = this.HTMLFormElement || function HTMLFormElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLFormElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLFormElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLFormElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLFormControlsCollection = this.HTMLFormControlsCollection || function HTMLFormControlsCollection() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLFormControlsCollection, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLFormControlsCollection': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLFontElement = this.HTMLFontElement || function HTMLFontElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLFontElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLFontElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLFontElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLFieldSetElement = this.HTMLFieldSetElement || function HTMLFieldSetElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLFieldSetElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLFieldSetElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLFieldSetElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLEmbedElement = this.HTMLEmbedElement || function HTMLEmbedElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLEmbedElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLEmbedElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLEmbedElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLElement = this.HTMLElement || function HTMLElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLDocument = this.HTMLDocument || function HTMLDocument() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLDocument, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDocument': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLDivElement = this.HTMLDivElement || function HTMLDivElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLDivElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDivElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDivElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLDirectoryElement = this.HTMLDirectoryElement || function HTMLDirectoryElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLDirectoryElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDirectoryElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDirectoryElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLDialogElement = this.HTMLDialogElement || function HTMLDialogElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLDialogElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDialogElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDialogElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLDetailsElement = this.HTMLDetailsElement || function HTMLDetailsElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLDetailsElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDetailsElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDetailsElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLDataListElement = this.HTMLDataListElement || function HTMLDataListElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLDataListElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDataListElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDataListElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLDataElement = this.HTMLDataElement || function HTMLDataElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLDataElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDataElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDataElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLDListElement = this.HTMLDListElement || function HTMLDListElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLDListElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDListElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLDListElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLCollection = this.HTMLCollection || function HTMLCollection() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLCollection, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLCollection': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLCanvasElement = this.HTMLCanvasElement || function HTMLCanvasElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLCanvasElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLCanvasElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLCanvasElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLButtonElement = this.HTMLButtonElement || function HTMLButtonElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLButtonElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLButtonElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLButtonElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLBodyElement = this.HTMLBodyElement || function HTMLBodyElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLBodyElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLBodyElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLBodyElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLBaseElement = this.HTMLBaseElement || function HTMLBaseElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLBaseElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLBaseElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLBaseElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLBRElement = this.HTMLBRElement || function HTMLBRElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLBRElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLBRElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLBRElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLAudioElement = this.HTMLAudioElement || function HTMLAudioElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLAudioElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLAudioElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLAudioElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLAreaElement = this.HTMLAreaElement || function HTMLAreaElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLAreaElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLAreaElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLAreaElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLAnchorElement = this.HTMLAnchorElement || function HTMLAnchorElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLAnchorElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLAnchorElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLAnchorElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLAllCollection = this.HTMLAllCollection || function HTMLAllCollection() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLAllCollection, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLAllCollection': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GeolocationPositionError = this.GeolocationPositionError || function GeolocationPositionError() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GeolocationPositionError, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GeolocationPositionError': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GeolocationPosition = this.GeolocationPosition || function GeolocationPosition() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GeolocationPosition, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GeolocationPosition': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GeolocationCoordinates = this.GeolocationCoordinates || function GeolocationCoordinates() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GeolocationCoordinates, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GeolocationCoordinates': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Geolocation = this.Geolocation || function Geolocation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Geolocation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Geolocation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GamepadHapticActuator = this.GamepadHapticActuator || function GamepadHapticActuator() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GamepadHapticActuator, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GamepadHapticActuator': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GamepadEvent = this.GamepadEvent || function GamepadEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GamepadEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'GamepadEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'GamepadEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.GamepadButton = this.GamepadButton || function GamepadButton() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GamepadButton, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GamepadButton': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Gamepad = this.Gamepad || function Gamepad() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Gamepad, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Gamepad': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GainNode = this.GainNode || function GainNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GainNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'GainNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'GainNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.FormDataEvent = this.FormDataEvent || function FormDataEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FormDataEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'FormDataEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'FormDataEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.FormData = this.FormData || function FormData() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FormData, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'FormData': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.FontFaceSetLoadEvent = this.FontFaceSetLoadEvent || function FontFaceSetLoadEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FontFaceSetLoadEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'FontFaceSetLoadEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'FontFaceSetLoadEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.FontFace = this.FontFace || function FontFace() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FontFace, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'FontFace': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'FontFace': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.FocusEvent = this.FocusEvent || function FocusEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FocusEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'FocusEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'FocusEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.FileReader = this.FileReader || function FileReader() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FileReader, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.FileList = this.FileList || function FileList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FileList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'FileList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.File = this.File || function File() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> File, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'File': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'File': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.FeaturePolicy = this.FeaturePolicy || function FeaturePolicy() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FeaturePolicy, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'FeaturePolicy': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.External = this.External || function External() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> External, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'External': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.EventTarget = this.EventTarget || function EventTarget() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> EventTarget, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'EventTarget': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.EventSource = this.EventSource || function EventSource() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> EventSource, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'EventSource': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'EventSource': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.EventCounts = this.EventCounts || function EventCounts() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> EventCounts, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'EventCounts': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Event = this.Event || function Event() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Event, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Event': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'Event': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ErrorEvent = this.ErrorEvent || function ErrorEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ErrorEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ErrorEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ErrorEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.EncodedVideoChunk = this.EncodedVideoChunk || function EncodedVideoChunk() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> EncodedVideoChunk, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'EncodedVideoChunk': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'EncodedVideoChunk': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.EncodedAudioChunk = this.EncodedAudioChunk || function EncodedAudioChunk() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> EncodedAudioChunk, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'EncodedAudioChunk': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'EncodedAudioChunk': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ElementInternals = this.ElementInternals || function ElementInternals() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ElementInternals, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ElementInternals': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Element = this.Element || function Element() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Element, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Element': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.EditContext = this.EditContext || function EditContext() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> EditContext, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'EditContext': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.DynamicsCompressorNode = this.DynamicsCompressorNode || function DynamicsCompressorNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DynamicsCompressorNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DynamicsCompressorNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'DynamicsCompressorNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.DragEvent = this.DragEvent || function DragEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DragEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DragEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'DragEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.DocumentType = this.DocumentType || function DocumentType() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DocumentType, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'DocumentType': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.DocumentTimeline = this.DocumentTimeline || function DocumentTimeline() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DocumentTimeline, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DocumentTimeline': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.DocumentFragment = this.DocumentFragment || function DocumentFragment() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DocumentFragment, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DocumentFragment': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.Document = this.Document || function Document() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Document, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Document': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.DelegatedInkTrailPresenter = this.DelegatedInkTrailPresenter || function DelegatedInkTrailPresenter() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DelegatedInkTrailPresenter, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'DelegatedInkTrailPresenter': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.DelayNode = this.DelayNode || function DelayNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DelayNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DelayNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'DelayNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.DecompressionStream = this.DecompressionStream || function DecompressionStream() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DecompressionStream, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DecompressionStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'DecompressionStream': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.DataTransferItemList = this.DataTransferItemList || function DataTransferItemList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DataTransferItemList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'DataTransferItemList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.DataTransferItem = this.DataTransferItem || function DataTransferItem() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DataTransferItem, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'DataTransferItem': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.DataTransfer = this.DataTransfer || function DataTransfer() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DataTransfer, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DataTransfer': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.DOMTokenList = this.DOMTokenList || function DOMTokenList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMTokenList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'DOMTokenList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.DOMStringMap = this.DOMStringMap || function DOMStringMap() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMStringMap, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'DOMStringMap': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.DOMStringList = this.DOMStringList || function DOMStringList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMStringList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'DOMStringList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.DOMRectReadOnly = this.DOMRectReadOnly || function DOMRectReadOnly() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMRectReadOnly, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DOMRectReadOnly': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.DOMRectList = this.DOMRectList || function DOMRectList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMRectList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'DOMRectList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.DOMRect = this.DOMRect || function DOMRect() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMRect, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DOMRect': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.DOMQuad = this.DOMQuad || function DOMQuad() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMQuad, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DOMQuad': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.DOMPointReadOnly = this.DOMPointReadOnly || function DOMPointReadOnly() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMPointReadOnly, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DOMPointReadOnly': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.DOMPoint = this.DOMPoint || function DOMPoint() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMPoint, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DOMPoint': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.DOMParser = this.DOMParser || function DOMParser() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMParser, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DOMParser': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.DOMMatrixReadOnly = this.DOMMatrixReadOnly || function DOMMatrixReadOnly() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMMatrixReadOnly, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DOMMatrixReadOnly': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.DOMMatrix = this.DOMMatrix || function DOMMatrix() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMMatrix, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DOMMatrix': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.DOMImplementation = this.DOMImplementation || function DOMImplementation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMImplementation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'DOMImplementation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.DOMException = this.DOMException || function DOMException() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMException, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DOMException': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.DOMError = this.DOMError || function DOMError() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DOMError, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DOMError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'DOMError': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CustomStateSet = this.CustomStateSet || function CustomStateSet() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CustomStateSet, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CustomStateSet': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CustomEvent = this.CustomEvent || function CustomEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CustomEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CustomEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CustomEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CustomElementRegistry = this.CustomElementRegistry || function CustomElementRegistry() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CustomElementRegistry, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CustomElementRegistry': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Crypto = this.Crypto || function Crypto() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Crypto, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Crypto': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CountQueuingStrategy = this.CountQueuingStrategy || function CountQueuingStrategy() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CountQueuingStrategy, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CountQueuingStrategy': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CountQueuingStrategy': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ConvolverNode = this.ConvolverNode || function ConvolverNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ConvolverNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ConvolverNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ConvolverNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ContentVisibilityAutoStateChangeEvent = this.ContentVisibilityAutoStateChangeEvent || function ContentVisibilityAutoStateChangeEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ContentVisibilityAutoStateChangeEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ContentVisibilityAutoStateChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ContentVisibilityAutoStateChangeEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ConstantSourceNode = this.ConstantSourceNode || function ConstantSourceNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ConstantSourceNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ConstantSourceNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ConstantSourceNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CompressionStream = this.CompressionStream || function CompressionStream() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CompressionStream, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CompressionStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CompressionStream': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CompositionEvent = this.CompositionEvent || function CompositionEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CompositionEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CompositionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CompositionEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.Comment = this.Comment || function Comment() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Comment, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Comment': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.CloseWatcher = this.CloseWatcher || function CloseWatcher() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CloseWatcher, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CloseWatcher': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.CloseEvent = this.CloseEvent || function CloseEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CloseEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CloseEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CloseEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ClipboardEvent = this.ClipboardEvent || function ClipboardEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ClipboardEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ClipboardEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ClipboardEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CharacterData = this.CharacterData || function CharacterData() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CharacterData, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CharacterData': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CharacterBoundsUpdateEvent = this.CharacterBoundsUpdateEvent || function CharacterBoundsUpdateEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CharacterBoundsUpdateEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CharacterBoundsUpdateEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CharacterBoundsUpdateEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ChannelSplitterNode = this.ChannelSplitterNode || function ChannelSplitterNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ChannelSplitterNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ChannelSplitterNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ChannelSplitterNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ChannelMergerNode = this.ChannelMergerNode || function ChannelMergerNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ChannelMergerNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ChannelMergerNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ChannelMergerNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CanvasRenderingContext2D = this.CanvasRenderingContext2D || function CanvasRenderingContext2D() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CanvasRenderingContext2D, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CanvasRenderingContext2D': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CanvasPattern = this.CanvasPattern || function CanvasPattern() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CanvasPattern, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CanvasPattern': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CanvasGradient = this.CanvasGradient || function CanvasGradient() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CanvasGradient, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CanvasGradient': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CanvasCaptureMediaStreamTrack = this.CanvasCaptureMediaStreamTrack || function CanvasCaptureMediaStreamTrack() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CanvasCaptureMediaStreamTrack, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CanvasCaptureMediaStreamTrack': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSVariableReferenceValue = this.CSSVariableReferenceValue || function CSSVariableReferenceValue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSVariableReferenceValue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSVariableReferenceValue': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSVariableReferenceValue': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CSSUnparsedValue = this.CSSUnparsedValue || function CSSUnparsedValue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSUnparsedValue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSUnparsedValue': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSUnparsedValue': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CSSUnitValue = this.CSSUnitValue || function CSSUnitValue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSUnitValue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSUnitValue': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSUnitValue': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSTranslate = this.CSSTranslate || function CSSTranslate() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSTranslate, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSTranslate': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSTranslate': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSTransition = this.CSSTransition || function CSSTransition() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSTransition, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSTransition': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSTransformValue = this.CSSTransformValue || function CSSTransformValue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSTransformValue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSTransformValue': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSTransformValue': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CSSTransformComponent = this.CSSTransformComponent || function CSSTransformComponent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSTransformComponent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSTransformComponent': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSSupportsRule = this.CSSSupportsRule || function CSSSupportsRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSSupportsRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSSupportsRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSStyleValue = this.CSSStyleValue || function CSSStyleValue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSStyleValue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSStyleValue': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSStyleSheet = this.CSSStyleSheet || function CSSStyleSheet() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSStyleSheet, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSStyleSheet': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.CSSStyleRule = this.CSSStyleRule || function CSSStyleRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSStyleRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSStyleRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSStyleDeclaration = this.CSSStyleDeclaration || function CSSStyleDeclaration() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSStyleDeclaration, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSStyleDeclaration': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSStartingStyleRule = this.CSSStartingStyleRule || function CSSStartingStyleRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSStartingStyleRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSStartingStyleRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSSkewY = this.CSSSkewY || function CSSSkewY() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSSkewY, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSSkewY': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSSkewY': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CSSSkewX = this.CSSSkewX || function CSSSkewX() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSSkewX, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSSkewX': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSSkewX': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CSSSkew = this.CSSSkew || function CSSSkew() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSSkew, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSSkew': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSSkew': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSScopeRule = this.CSSScopeRule || function CSSScopeRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSScopeRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSScopeRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSScale = this.CSSScale || function CSSScale() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSScale, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSScale': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSScale': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSRuleList = this.CSSRuleList || function CSSRuleList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSRuleList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSRuleList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSRule = this.CSSRule || function CSSRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSRotate = this.CSSRotate || function CSSRotate() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSRotate, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSRotate': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSRotate': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CSSPropertyRule = this.CSSPropertyRule || function CSSPropertyRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSPropertyRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSPropertyRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSPositionValue = this.CSSPositionValue || function CSSPositionValue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSPositionValue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSPositionValue': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSPositionValue': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSPositionTryRule = this.CSSPositionTryRule || function CSSPositionTryRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSPositionTryRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSPositionTryRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSPositionTryDescriptors = this.CSSPositionTryDescriptors || function CSSPositionTryDescriptors() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSPositionTryDescriptors, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSPositionTryDescriptors': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSPerspective = this.CSSPerspective || function CSSPerspective() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSPerspective, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSPerspective': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSPerspective': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CSSPageRule = this.CSSPageRule || function CSSPageRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSPageRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSPageRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSNumericValue = this.CSSNumericValue || function CSSNumericValue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSNumericValue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSNumericValue': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSNumericArray = this.CSSNumericArray || function CSSNumericArray() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSNumericArray, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSNumericArray': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSNamespaceRule = this.CSSNamespaceRule || function CSSNamespaceRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSNamespaceRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSNamespaceRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSMediaRule = this.CSSMediaRule || function CSSMediaRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSMediaRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMediaRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSMatrixComponent = this.CSSMatrixComponent || function CSSMatrixComponent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSMatrixComponent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMatrixComponent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMatrixComponent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CSSMathValue = this.CSSMathValue || function CSSMathValue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSMathValue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathValue': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSMathSum = this.CSSMathSum || function CSSMathSum() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSMathSum, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathSum': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathSum': Arguments can't be empty"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSMathProduct = this.CSSMathProduct || function CSSMathProduct() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSMathProduct, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathProduct': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathProduct': Arguments can't be empty"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSMathNegate = this.CSSMathNegate || function CSSMathNegate() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSMathNegate, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathNegate': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathNegate': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CSSMathMin = this.CSSMathMin || function CSSMathMin() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSMathMin, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathMin': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathMin': Arguments can't be empty"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSMathMax = this.CSSMathMax || function CSSMathMax() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSMathMax, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathMax': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathMax': Arguments can't be empty"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSMathInvert = this.CSSMathInvert || function CSSMathInvert() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSMathInvert, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathInvert': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathInvert': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CSSMathClamp = this.CSSMathClamp || function CSSMathClamp() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSMathClamp, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathClamp': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMathClamp': 3 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSLayerStatementRule = this.CSSLayerStatementRule || function CSSLayerStatementRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSLayerStatementRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSLayerStatementRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSLayerBlockRule = this.CSSLayerBlockRule || function CSSLayerBlockRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSLayerBlockRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSLayerBlockRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSKeywordValue = this.CSSKeywordValue || function CSSKeywordValue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSKeywordValue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSKeywordValue': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CSSKeywordValue': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CSSKeyframesRule = this.CSSKeyframesRule || function CSSKeyframesRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSKeyframesRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSKeyframesRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSKeyframeRule = this.CSSKeyframeRule || function CSSKeyframeRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSKeyframeRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSKeyframeRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSImportRule = this.CSSImportRule || function CSSImportRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSImportRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSImportRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSImageValue = this.CSSImageValue || function CSSImageValue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSImageValue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSImageValue': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSGroupingRule = this.CSSGroupingRule || function CSSGroupingRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSGroupingRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSGroupingRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSFontPaletteValuesRule = this.CSSFontPaletteValuesRule || function CSSFontPaletteValuesRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSFontPaletteValuesRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSFontPaletteValuesRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSFontFaceRule = this.CSSFontFaceRule || function CSSFontFaceRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSFontFaceRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSFontFaceRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSCounterStyleRule = this.CSSCounterStyleRule || function CSSCounterStyleRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSCounterStyleRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSCounterStyleRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSContainerRule = this.CSSContainerRule || function CSSContainerRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSContainerRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSContainerRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSConditionRule = this.CSSConditionRule || function CSSConditionRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSConditionRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSConditionRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSAnimation = this.CSSAnimation || function CSSAnimation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSAnimation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSAnimation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CDATASection = this.CDATASection || function CDATASection() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CDATASection, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CDATASection': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ByteLengthQueuingStrategy = this.ByteLengthQueuingStrategy || function ByteLengthQueuingStrategy() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ByteLengthQueuingStrategy, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ByteLengthQueuingStrategy': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ByteLengthQueuingStrategy': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.BrowserCaptureMediaStreamTrack = this.BrowserCaptureMediaStreamTrack || function BrowserCaptureMediaStreamTrack() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BrowserCaptureMediaStreamTrack, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BrowserCaptureMediaStreamTrack': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.BroadcastChannel = this.BroadcastChannel || function BroadcastChannel() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BroadcastChannel, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'BroadcastChannel': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'BroadcastChannel': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.BlobEvent = this.BlobEvent || function BlobEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BlobEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'BlobEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BlobEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Blob = this.Blob || function Blob() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Blob, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Blob': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.BiquadFilterNode = this.BiquadFilterNode || function BiquadFilterNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BiquadFilterNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'BiquadFilterNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'BiquadFilterNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.BeforeUnloadEvent = this.BeforeUnloadEvent || function BeforeUnloadEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BeforeUnloadEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BeforeUnloadEvent': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.BeforeInstallPromptEvent = this.BeforeInstallPromptEvent || function BeforeInstallPromptEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BeforeInstallPromptEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'BeforeInstallPromptEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'BeforeInstallPromptEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.BaseAudioContext = this.BaseAudioContext || function BaseAudioContext() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BaseAudioContext, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BaseAudioContext': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.BarProp = this.BarProp || function BarProp() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BarProp, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BarProp': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AudioWorkletNode = this.AudioWorkletNode || function AudioWorkletNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioWorkletNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'AudioWorkletNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AudioWorkletNode': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AudioSinkInfo = this.AudioSinkInfo || function AudioSinkInfo() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioSinkInfo, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AudioSinkInfo': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AudioScheduledSourceNode = this.AudioScheduledSourceNode || function AudioScheduledSourceNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioScheduledSourceNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AudioScheduledSourceNode': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AudioProcessingEvent = this.AudioProcessingEvent || function AudioProcessingEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioProcessingEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'AudioProcessingEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AudioProcessingEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AudioParamMap = this.AudioParamMap || function AudioParamMap() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioParamMap, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AudioParamMap': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AudioParam = this.AudioParam || function AudioParam() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioParam, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AudioParam': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AudioNode = this.AudioNode || function AudioNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AudioNode': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AudioListener = this.AudioListener || function AudioListener() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioListener, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AudioListener': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AudioDestinationNode = this.AudioDestinationNode || function AudioDestinationNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioDestinationNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AudioDestinationNode': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AudioData = this.AudioData || function AudioData() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioData, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'AudioData': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'AudioData': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.AudioContext = this.AudioContext || function AudioContext() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioContext, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'AudioContext': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.AudioBufferSourceNode = this.AudioBufferSourceNode || function AudioBufferSourceNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioBufferSourceNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'AudioBufferSourceNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'AudioBufferSourceNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.AudioBuffer = this.AudioBuffer || function AudioBuffer() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioBuffer, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'AudioBuffer': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'AudioBuffer': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.Attr = this.Attr || function Attr() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Attr, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Attr': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AnimationTimeline = this.AnimationTimeline || function AnimationTimeline() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AnimationTimeline, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AnimationTimeline': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AnimationPlaybackEvent = this.AnimationPlaybackEvent || function AnimationPlaybackEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AnimationPlaybackEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'AnimationPlaybackEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'AnimationPlaybackEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.AnimationEvent = this.AnimationEvent || function AnimationEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AnimationEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'AnimationEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'AnimationEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.AnimationEffect = this.AnimationEffect || function AnimationEffect() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AnimationEffect, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AnimationEffect': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Animation = this.Animation || function Animation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Animation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Animation': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.AnalyserNode = this.AnalyserNode || function AnalyserNode() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AnalyserNode, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'AnalyserNode': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'AnalyserNode': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.AbstractRange = this.AbstractRange || function AbstractRange() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AbstractRange, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AbstractRange': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AbortSignal = this.AbortSignal || function AbortSignal() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AbortSignal, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AbortSignal': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AbortController = this.AbortController || function AbortController() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AbortController, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'AbortController': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.AbsoluteOrientationSensor = this.AbsoluteOrientationSensor || function AbsoluteOrientationSensor() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AbsoluteOrientationSensor, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'AbsoluteOrientationSensor': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.Accelerometer = this.Accelerometer || function Accelerometer() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Accelerometer, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Accelerometer': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.AudioDecoder = this.AudioDecoder || function AudioDecoder() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioDecoder, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'AudioDecoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'AudioDecoder': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.AudioEncoder = this.AudioEncoder || function AudioEncoder() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioEncoder, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'AudioEncoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'AudioEncoder': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.AudioWorklet = this.AudioWorklet || function AudioWorklet() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AudioWorklet, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AudioWorklet': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.BatteryManager = this.BatteryManager || function BatteryManager() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BatteryManager, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BatteryManager': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Cache = this.Cache || function Cache() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Cache, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Cache': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CacheStorage = this.CacheStorage || function CacheStorage() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CacheStorage, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CacheStorage': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Clipboard = this.Clipboard || function Clipboard() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Clipboard, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Clipboard': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ClipboardItem = this.ClipboardItem || function ClipboardItem() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ClipboardItem, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ClipboardItem': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ClipboardItem': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CookieChangeEvent = this.CookieChangeEvent || function CookieChangeEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CookieChangeEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CookieChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'CookieChangeEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.CookieStore = this.CookieStore || function CookieStore() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CookieStore, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CookieStore': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CookieStoreManager = this.CookieStoreManager || function CookieStoreManager() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CookieStoreManager, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CookieStoreManager': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Credential = this.Credential || function Credential() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Credential, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Credential': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CredentialsContainer = this.CredentialsContainer || function CredentialsContainer() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CredentialsContainer, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CredentialsContainer': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CryptoKey = this.CryptoKey || function CryptoKey() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CryptoKey, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CryptoKey': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.DeviceMotionEvent = this.DeviceMotionEvent || function DeviceMotionEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DeviceMotionEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DeviceMotionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'DeviceMotionEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.DeviceMotionEventAcceleration = this.DeviceMotionEventAcceleration || function DeviceMotionEventAcceleration() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DeviceMotionEventAcceleration, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'DeviceMotionEventAcceleration': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.DeviceMotionEventRotationRate = this.DeviceMotionEventRotationRate || function DeviceMotionEventRotationRate() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DeviceMotionEventRotationRate, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'DeviceMotionEventRotationRate': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.DeviceOrientationEvent = this.DeviceOrientationEvent || function DeviceOrientationEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DeviceOrientationEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DeviceOrientationEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'DeviceOrientationEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.FederatedCredential = this.FederatedCredential || function FederatedCredential() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FederatedCredential, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'FederatedCredential': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'FederatedCredential': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.GPU = this.GPU || function GPU() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPU, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPU': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUAdapter = this.GPUAdapter || function GPUAdapter() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUAdapter, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUAdapter': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUAdapterInfo = this.GPUAdapterInfo || function GPUAdapterInfo() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUAdapterInfo, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUAdapterInfo': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUBindGroup = this.GPUBindGroup || function GPUBindGroup() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUBindGroup, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUBindGroup': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUBindGroupLayout = this.GPUBindGroupLayout || function GPUBindGroupLayout() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUBindGroupLayout, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUBindGroupLayout': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUBuffer = this.GPUBuffer || function GPUBuffer() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUBuffer, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUBuffer': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUCanvasContext = this.GPUCanvasContext || function GPUCanvasContext() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUCanvasContext, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUCanvasContext': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUCommandBuffer = this.GPUCommandBuffer || function GPUCommandBuffer() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUCommandBuffer, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUCommandBuffer': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUCommandEncoder = this.GPUCommandEncoder || function GPUCommandEncoder() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUCommandEncoder, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUCommandEncoder': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUCompilationInfo = this.GPUCompilationInfo || function GPUCompilationInfo() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUCompilationInfo, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUCompilationInfo': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUCompilationMessage = this.GPUCompilationMessage || function GPUCompilationMessage() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUCompilationMessage, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUCompilationMessage': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUComputePassEncoder = this.GPUComputePassEncoder || function GPUComputePassEncoder() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUComputePassEncoder, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUComputePassEncoder': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUComputePipeline = this.GPUComputePipeline || function GPUComputePipeline() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUComputePipeline, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUComputePipeline': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUDevice = this.GPUDevice || function GPUDevice() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUDevice, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUDevice': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUDeviceLostInfo = this.GPUDeviceLostInfo || function GPUDeviceLostInfo() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUDeviceLostInfo, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUDeviceLostInfo': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUError = this.GPUError || function GPUError() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUError, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUError': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUExternalTexture = this.GPUExternalTexture || function GPUExternalTexture() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUExternalTexture, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUExternalTexture': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUInternalError = this.GPUInternalError || function GPUInternalError() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUInternalError, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'GPUInternalError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'GPUInternalError': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.GPUOutOfMemoryError = this.GPUOutOfMemoryError || function GPUOutOfMemoryError() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUOutOfMemoryError, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'GPUOutOfMemoryError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'GPUOutOfMemoryError': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.GPUPipelineError = this.GPUPipelineError || function GPUPipelineError() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUPipelineError, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'GPUPipelineError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'GPUPipelineError': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.GPUPipelineLayout = this.GPUPipelineLayout || function GPUPipelineLayout() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUPipelineLayout, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUPipelineLayout': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUQuerySet = this.GPUQuerySet || function GPUQuerySet() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUQuerySet, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUQuerySet': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUQueue = this.GPUQueue || function GPUQueue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUQueue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUQueue': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPURenderBundle = this.GPURenderBundle || function GPURenderBundle() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPURenderBundle, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPURenderBundle': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPURenderBundleEncoder = this.GPURenderBundleEncoder || function GPURenderBundleEncoder() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPURenderBundleEncoder, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPURenderBundleEncoder': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPURenderPassEncoder = this.GPURenderPassEncoder || function GPURenderPassEncoder() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPURenderPassEncoder, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPURenderPassEncoder': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPURenderPipeline = this.GPURenderPipeline || function GPURenderPipeline() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPURenderPipeline, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPURenderPipeline': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUSampler = this.GPUSampler || function GPUSampler() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUSampler, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUSampler': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUShaderModule = this.GPUShaderModule || function GPUShaderModule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUShaderModule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUShaderModule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUSupportedFeatures = this.GPUSupportedFeatures || function GPUSupportedFeatures() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUSupportedFeatures, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUSupportedFeatures': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUSupportedLimits = this.GPUSupportedLimits || function GPUSupportedLimits() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUSupportedLimits, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUSupportedLimits': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUTexture = this.GPUTexture || function GPUTexture() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUTexture, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUTexture': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUTextureView = this.GPUTextureView || function GPUTextureView() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUTextureView, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUTextureView': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUUncapturedErrorEvent = this.GPUUncapturedErrorEvent || function GPUUncapturedErrorEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUUncapturedErrorEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'GPUUncapturedErrorEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'GPUUncapturedErrorEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.GPUValidationError = this.GPUValidationError || function GPUValidationError() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GPUValidationError, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'GPUValidationError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'GPUValidationError': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.GravitySensor = this.GravitySensor || function GravitySensor() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> GravitySensor, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'GravitySensor': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.Gyroscope = this.Gyroscope || function Gyroscope() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Gyroscope, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Gyroscope': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.IdleDetector = this.IdleDetector || function IdleDetector() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IdleDetector, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'IdleDetector': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.ImageDecoder = this.ImageDecoder || function ImageDecoder() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ImageDecoder, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ImageDecoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'ImageDecoder': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.ImageTrack = this.ImageTrack || function ImageTrack() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ImageTrack, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ImageTrack': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ImageTrackList = this.ImageTrackList || function ImageTrackList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ImageTrackList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ImageTrackList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Keyboard = this.Keyboard || function Keyboard() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Keyboard, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Keyboard': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.KeyboardLayoutMap = this.KeyboardLayoutMap || function KeyboardLayoutMap() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> KeyboardLayoutMap, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'KeyboardLayoutMap': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.LinearAccelerationSensor = this.LinearAccelerationSensor || function LinearAccelerationSensor() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> LinearAccelerationSensor, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'LinearAccelerationSensor': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.Lock = this.Lock || function Lock() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Lock, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Lock': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.LockManager = this.LockManager || function LockManager() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> LockManager, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'LockManager': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MIDIAccess = this.MIDIAccess || function MIDIAccess() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MIDIAccess, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MIDIAccess': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MIDIConnectionEvent = this.MIDIConnectionEvent || function MIDIConnectionEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MIDIConnectionEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MIDIConnectionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'MIDIConnectionEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.MIDIInput = this.MIDIInput || function MIDIInput() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MIDIInput, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MIDIInput': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MIDIInputMap = this.MIDIInputMap || function MIDIInputMap() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MIDIInputMap, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MIDIInputMap': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MIDIMessageEvent = this.MIDIMessageEvent || function MIDIMessageEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MIDIMessageEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MIDIMessageEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'MIDIMessageEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.MIDIOutput = this.MIDIOutput || function MIDIOutput() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MIDIOutput, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MIDIOutput': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MIDIOutputMap = this.MIDIOutputMap || function MIDIOutputMap() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MIDIOutputMap, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MIDIOutputMap': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MIDIPort = this.MIDIPort || function MIDIPort() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MIDIPort, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MIDIPort': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaDeviceInfo = this.MediaDeviceInfo || function MediaDeviceInfo() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaDeviceInfo, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaDeviceInfo': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaDevices = this.MediaDevices || function MediaDevices() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaDevices, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaDevices': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaKeyMessageEvent = this.MediaKeyMessageEvent || function MediaKeyMessageEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaKeyMessageEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaKeyMessageEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaKeyMessageEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaKeySession = this.MediaKeySession || function MediaKeySession() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaKeySession, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaKeySession': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaKeyStatusMap = this.MediaKeyStatusMap || function MediaKeyStatusMap() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaKeyStatusMap, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaKeyStatusMap': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaKeySystemAccess = this.MediaKeySystemAccess || function MediaKeySystemAccess() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaKeySystemAccess, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaKeySystemAccess': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaKeys = this.MediaKeys || function MediaKeys() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaKeys, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaKeys': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NavigationPreloadManager = this.NavigationPreloadManager || function NavigationPreloadManager() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NavigationPreloadManager, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NavigationPreloadManager': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NavigatorManagedData = this.NavigatorManagedData || function NavigatorManagedData() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NavigatorManagedData, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NavigatorManagedData': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.OrientationSensor = this.OrientationSensor || function OrientationSensor() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> OrientationSensor, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'OrientationSensor': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PasswordCredential = this.PasswordCredential || function PasswordCredential() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PasswordCredential, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PasswordCredential': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PasswordCredential': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.RelativeOrientationSensor = this.RelativeOrientationSensor || function RelativeOrientationSensor() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RelativeOrientationSensor, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'RelativeOrientationSensor': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.ScreenDetailed = this.ScreenDetailed || function ScreenDetailed() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ScreenDetailed, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ScreenDetailed': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ScreenDetails = this.ScreenDetails || function ScreenDetails() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ScreenDetails, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ScreenDetails': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Sensor = this.Sensor || function Sensor() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Sensor, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Sensor': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SensorErrorEvent = this.SensorErrorEvent || function SensorErrorEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SensorErrorEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'SensorErrorEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SensorErrorEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ServiceWorker = this.ServiceWorker || function ServiceWorker() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ServiceWorker, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ServiceWorker': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ServiceWorkerContainer = this.ServiceWorkerContainer || function ServiceWorkerContainer() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ServiceWorkerContainer, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ServiceWorkerContainer': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ServiceWorkerRegistration = this.ServiceWorkerRegistration || function ServiceWorkerRegistration() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ServiceWorkerRegistration, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ServiceWorkerRegistration': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.StorageManager = this.StorageManager || function StorageManager() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> StorageManager, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'StorageManager': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SubtleCrypto = this.SubtleCrypto || function SubtleCrypto() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SubtleCrypto, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SubtleCrypto': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.VideoDecoder = this.VideoDecoder || function VideoDecoder() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> VideoDecoder, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'VideoDecoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'VideoDecoder': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.VideoEncoder = this.VideoEncoder || function VideoEncoder() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> VideoEncoder, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'VideoEncoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'VideoEncoder': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.VirtualKeyboard = this.VirtualKeyboard || function VirtualKeyboard() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> VirtualKeyboard, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'VirtualKeyboard': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WGSLLanguageFeatures = this.WGSLLanguageFeatures || function WGSLLanguageFeatures() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WGSLLanguageFeatures, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WGSLLanguageFeatures': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebTransport = this.WebTransport || function WebTransport() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebTransport, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'WebTransport': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'WebTransport': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.WebTransportBidirectionalStream = this.WebTransportBidirectionalStream || function WebTransportBidirectionalStream() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebTransportBidirectionalStream, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebTransportBidirectionalStream': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebTransportDatagramDuplexStream = this.WebTransportDatagramDuplexStream || function WebTransportDatagramDuplexStream() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebTransportDatagramDuplexStream, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WebTransportDatagramDuplexStream': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebTransportError = this.WebTransportError || function WebTransportError() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebTransportError, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'WebTransportError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.Worklet = this.Worklet || function Worklet() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Worklet, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Worklet': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRDOMOverlayState = this.XRDOMOverlayState || function XRDOMOverlayState() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRDOMOverlayState, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRDOMOverlayState': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRLayer = this.XRLayer || function XRLayer() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRLayer, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRLayer': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRWebGLBinding = this.XRWebGLBinding || function XRWebGLBinding() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRWebGLBinding, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'XRWebGLBinding': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRWebGLBinding': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AuthenticatorAssertionResponse = this.AuthenticatorAssertionResponse || function AuthenticatorAssertionResponse() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AuthenticatorAssertionResponse, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AuthenticatorAssertionResponse': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AuthenticatorAttestationResponse = this.AuthenticatorAttestationResponse || function AuthenticatorAttestationResponse() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AuthenticatorAttestationResponse, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AuthenticatorAttestationResponse': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.AuthenticatorResponse = this.AuthenticatorResponse || function AuthenticatorResponse() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> AuthenticatorResponse, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'AuthenticatorResponse': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PublicKeyCredential = this.PublicKeyCredential || function PublicKeyCredential() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PublicKeyCredential, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PublicKeyCredential': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Bluetooth = this.Bluetooth || function Bluetooth() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Bluetooth, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Bluetooth': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.BluetoothCharacteristicProperties = this.BluetoothCharacteristicProperties || function BluetoothCharacteristicProperties() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BluetoothCharacteristicProperties, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BluetoothCharacteristicProperties': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.BluetoothDevice = this.BluetoothDevice || function BluetoothDevice() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BluetoothDevice, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BluetoothDevice': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.BluetoothRemoteGATTCharacteristic = this.BluetoothRemoteGATTCharacteristic || function BluetoothRemoteGATTCharacteristic() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BluetoothRemoteGATTCharacteristic, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BluetoothRemoteGATTCharacteristic': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.BluetoothRemoteGATTDescriptor = this.BluetoothRemoteGATTDescriptor || function BluetoothRemoteGATTDescriptor() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BluetoothRemoteGATTDescriptor, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BluetoothRemoteGATTDescriptor': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.BluetoothRemoteGATTServer = this.BluetoothRemoteGATTServer || function BluetoothRemoteGATTServer() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BluetoothRemoteGATTServer, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BluetoothRemoteGATTServer': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.BluetoothRemoteGATTService = this.BluetoothRemoteGATTService || function BluetoothRemoteGATTService() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BluetoothRemoteGATTService, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BluetoothRemoteGATTService': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CaptureController = this.CaptureController || function CaptureController() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CaptureController, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'CaptureController': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.DocumentPictureInPicture = this.DocumentPictureInPicture || function DocumentPictureInPicture() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DocumentPictureInPicture, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'DocumentPictureInPicture': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.EyeDropper = this.EyeDropper || function EyeDropper() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> EyeDropper, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'EyeDropper': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.FileSystemDirectoryHandle = this.FileSystemDirectoryHandle || function FileSystemDirectoryHandle() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FileSystemDirectoryHandle, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'FileSystemDirectoryHandle': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.FileSystemFileHandle = this.FileSystemFileHandle || function FileSystemFileHandle() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FileSystemFileHandle, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'FileSystemFileHandle': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.FileSystemHandle = this.FileSystemHandle || function FileSystemHandle() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FileSystemHandle, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'FileSystemHandle': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.FileSystemWritableFileStream = this.FileSystemWritableFileStream || function FileSystemWritableFileStream() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FileSystemWritableFileStream, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'FileSystemWritableFileStream': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.FontData = this.FontData || function FontData() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FontData, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'FontData': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.FragmentDirective = this.FragmentDirective || function FragmentDirective() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FragmentDirective, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'FragmentDirective': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HID = this.HID || function HID() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HID, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HID': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HIDConnectionEvent = this.HIDConnectionEvent || function HIDConnectionEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HIDConnectionEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HIDConnectionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HIDConnectionEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HIDDevice = this.HIDDevice || function HIDDevice() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HIDDevice, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HIDDevice': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HIDInputReportEvent = this.HIDInputReportEvent || function HIDInputReportEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HIDInputReportEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HIDInputReportEvent': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IdentityCredential = this.IdentityCredential || function IdentityCredential() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IdentityCredential, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IdentityCredential': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IdentityProvider = this.IdentityProvider || function IdentityProvider() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IdentityProvider, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'IdentityProvider': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.IdentityCredentialError = this.IdentityCredentialError || function IdentityCredentialError() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> IdentityCredentialError, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'IdentityCredentialError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.LaunchParams = this.LaunchParams || function LaunchParams() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> LaunchParams, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'LaunchParams': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.LaunchQueue = this.LaunchQueue || function LaunchQueue() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> LaunchQueue, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'LaunchQueue': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NavigatorLogin = this.NavigatorLogin || function NavigatorLogin() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NavigatorLogin, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NavigatorLogin': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NotRestoredReasonDetails = this.NotRestoredReasonDetails || function NotRestoredReasonDetails() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NotRestoredReasonDetails, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NotRestoredReasonDetails': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NotRestoredReasons = this.NotRestoredReasons || function NotRestoredReasons() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NotRestoredReasons, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NotRestoredReasons': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.OTPCredential = this.OTPCredential || function OTPCredential() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> OTPCredential, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'OTPCredential': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PaymentAddress = this.PaymentAddress || function PaymentAddress() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PaymentAddress, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PaymentAddress': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PaymentRequest = this.PaymentRequest || function PaymentRequest() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PaymentRequest, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PaymentRequest': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PaymentRequest': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.PaymentRequestUpdateEvent = this.PaymentRequestUpdateEvent || function PaymentRequestUpdateEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PaymentRequestUpdateEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PaymentRequestUpdateEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PaymentRequestUpdateEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.PaymentResponse = this.PaymentResponse || function PaymentResponse() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PaymentResponse, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PaymentResponse': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PaymentManager = this.PaymentManager || function PaymentManager() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PaymentManager, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PaymentManager': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PaymentMethodChangeEvent = this.PaymentMethodChangeEvent || function PaymentMethodChangeEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PaymentMethodChangeEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PaymentMethodChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PaymentMethodChangeEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.Presentation = this.Presentation || function Presentation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Presentation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Presentation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PresentationAvailability = this.PresentationAvailability || function PresentationAvailability() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PresentationAvailability, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PresentationAvailability': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PresentationConnection = this.PresentationConnection || function PresentationConnection() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PresentationConnection, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PresentationConnection': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PresentationConnectionAvailableEvent = this.PresentationConnectionAvailableEvent || function PresentationConnectionAvailableEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PresentationConnectionAvailableEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PresentationConnectionAvailableEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PresentationConnectionAvailableEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PresentationConnectionCloseEvent = this.PresentationConnectionCloseEvent || function PresentationConnectionCloseEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PresentationConnectionCloseEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PresentationConnectionCloseEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PresentationConnectionCloseEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PresentationConnectionList = this.PresentationConnectionList || function PresentationConnectionList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PresentationConnectionList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PresentationConnectionList': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PresentationReceiver = this.PresentationReceiver || function PresentationReceiver() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PresentationReceiver, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PresentationReceiver': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PresentationRequest = this.PresentationRequest || function PresentationRequest() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PresentationRequest, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PresentationRequest': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PresentationRequest': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.PressureObserver = this.PressureObserver || function PressureObserver() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PressureObserver, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PressureObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PressureObserver': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.PressureRecord = this.PressureRecord || function PressureRecord() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PressureRecord, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PressureRecord': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ProtectedAudience = this.ProtectedAudience || function ProtectedAudience() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ProtectedAudience, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ProtectedAudience': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Serial = this.Serial || function Serial() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Serial, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Serial': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SerialPort = this.SerialPort || function SerialPort() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SerialPort, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SerialPort': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.StorageBucket = this.StorageBucket || function StorageBucket() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> StorageBucket, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'StorageBucket': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.StorageBucketManager = this.StorageBucketManager || function StorageBucketManager() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> StorageBucketManager, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'StorageBucketManager': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.USB = this.USB || function USB() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> USB, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'USB': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.USBAlternateInterface = this.USBAlternateInterface || function USBAlternateInterface() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> USBAlternateInterface, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBAlternateInterface': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'USBAlternateInterface': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.USBConfiguration = this.USBConfiguration || function USBConfiguration() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> USBConfiguration, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBConfiguration': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'USBConfiguration': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.USBConnectionEvent = this.USBConnectionEvent || function USBConnectionEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> USBConnectionEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBConnectionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'USBConnectionEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.USBDevice = this.USBDevice || function USBDevice() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> USBDevice, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'USBDevice': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.USBEndpoint = this.USBEndpoint || function USBEndpoint() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> USBEndpoint, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBEndpoint': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'USBEndpoint': 3 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.USBInTransferResult = this.USBInTransferResult || function USBInTransferResult() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> USBInTransferResult, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBInTransferResult': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBInTransferResult': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.USBInterface = this.USBInterface || function USBInterface() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> USBInterface, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBInterface': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'USBInterface': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.USBIsochronousInTransferPacket = this.USBIsochronousInTransferPacket || function USBIsochronousInTransferPacket() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> USBIsochronousInTransferPacket, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBIsochronousInTransferPacket': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBIsochronousInTransferPacket': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.USBIsochronousInTransferResult = this.USBIsochronousInTransferResult || function USBIsochronousInTransferResult() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> USBIsochronousInTransferResult, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBIsochronousInTransferResult': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBIsochronousInTransferResult': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.USBIsochronousOutTransferPacket = this.USBIsochronousOutTransferPacket || function USBIsochronousOutTransferPacket() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> USBIsochronousOutTransferPacket, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBIsochronousOutTransferPacket': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBIsochronousOutTransferPacket': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.USBIsochronousOutTransferResult = this.USBIsochronousOutTransferResult || function USBIsochronousOutTransferResult() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> USBIsochronousOutTransferResult, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBIsochronousOutTransferResult': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBIsochronousOutTransferResult': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.USBOutTransferResult = this.USBOutTransferResult || function USBOutTransferResult() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> USBOutTransferResult, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBOutTransferResult': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'USBOutTransferResult': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.WakeLock = this.WakeLock || function WakeLock() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WakeLock, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WakeLock': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WakeLockSentinel = this.WakeLockSentinel || function WakeLockSentinel() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WakeLockSentinel, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'WakeLockSentinel': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRAnchor = this.XRAnchor || function XRAnchor() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRAnchor, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRAnchor': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRAnchorSet = this.XRAnchorSet || function XRAnchorSet() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRAnchorSet, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRAnchorSet': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRBoundedReferenceSpace = this.XRBoundedReferenceSpace || function XRBoundedReferenceSpace() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRBoundedReferenceSpace, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRBoundedReferenceSpace': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRCPUDepthInformation = this.XRCPUDepthInformation || function XRCPUDepthInformation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRCPUDepthInformation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRCPUDepthInformation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRCamera = this.XRCamera || function XRCamera() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRCamera, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRCamera': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRDepthInformation = this.XRDepthInformation || function XRDepthInformation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRDepthInformation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRDepthInformation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRFrame = this.XRFrame || function XRFrame() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRFrame, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRFrame': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRHitTestResult = this.XRHitTestResult || function XRHitTestResult() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRHitTestResult, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRHitTestResult': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRHitTestSource = this.XRHitTestSource || function XRHitTestSource() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRHitTestSource, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRHitTestSource': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRInputSource = this.XRInputSource || function XRInputSource() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRInputSource, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRInputSource': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRInputSourceArray = this.XRInputSourceArray || function XRInputSourceArray() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRInputSourceArray, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRInputSourceArray': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRInputSourceEvent = this.XRInputSourceEvent || function XRInputSourceEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRInputSourceEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'XRInputSourceEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRInputSourceEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRInputSourcesChangeEvent = this.XRInputSourcesChangeEvent || function XRInputSourcesChangeEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRInputSourcesChangeEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'XRInputSourcesChangeEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRInputSourcesChangeEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRLightEstimate = this.XRLightEstimate || function XRLightEstimate() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRLightEstimate, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRLightEstimate': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRLightProbe = this.XRLightProbe || function XRLightProbe() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRLightProbe, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRLightProbe': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRPose = this.XRPose || function XRPose() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRPose, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRPose': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRRay = this.XRRay || function XRRay() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRRay, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'XRRay': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.XRReferenceSpace = this.XRReferenceSpace || function XRReferenceSpace() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRReferenceSpace, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRReferenceSpace': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRReferenceSpaceEvent = this.XRReferenceSpaceEvent || function XRReferenceSpaceEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRReferenceSpaceEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'XRReferenceSpaceEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRReferenceSpaceEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRRenderState = this.XRRenderState || function XRRenderState() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRRenderState, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRRenderState': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRRigidTransform = this.XRRigidTransform || function XRRigidTransform() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRRigidTransform, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'XRRigidTransform': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.XRSession = this.XRSession || function XRSession() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRSession, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRSession': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRSessionEvent = this.XRSessionEvent || function XRSessionEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRSessionEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'XRSessionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRSessionEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRSpace = this.XRSpace || function XRSpace() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRSpace, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRSpace': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRSystem = this.XRSystem || function XRSystem() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRSystem, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRSystem': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRTransientInputHitTestResult = this.XRTransientInputHitTestResult || function XRTransientInputHitTestResult() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRTransientInputHitTestResult, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRTransientInputHitTestResult': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRTransientInputHitTestSource = this.XRTransientInputHitTestSource || function XRTransientInputHitTestSource() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRTransientInputHitTestSource, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRTransientInputHitTestSource': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRView = this.XRView || function XRView() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRView, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRView': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRViewerPose = this.XRViewerPose || function XRViewerPose() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRViewerPose, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRViewerPose': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRViewport = this.XRViewport || function XRViewport() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRViewport, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRViewport': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRWebGLDepthInformation = this.XRWebGLDepthInformation || function XRWebGLDepthInformation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRWebGLDepthInformation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRWebGLDepthInformation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRWebGLLayer = this.XRWebGLLayer || function XRWebGLLayer() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRWebGLLayer, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'XRWebGLLayer': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRWebGLLayer': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRHand = this.XRHand || function XRHand() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRHand, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRHand': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRJointPose = this.XRJointPose || function XRJointPose() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRJointPose, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRJointPose': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.XRJointSpace = this.XRJointSpace || function XRJointSpace() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> XRJointSpace, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'XRJointSpace': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.BackgroundFetchManager = this.BackgroundFetchManager || function BackgroundFetchManager() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BackgroundFetchManager, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BackgroundFetchManager': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.BackgroundFetchRecord = this.BackgroundFetchRecord || function BackgroundFetchRecord() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BackgroundFetchRecord, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BackgroundFetchRecord': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.BackgroundFetchRegistration = this.BackgroundFetchRegistration || function BackgroundFetchRegistration() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BackgroundFetchRegistration, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BackgroundFetchRegistration': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.BluetoothUUID = this.BluetoothUUID || function BluetoothUUID() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> BluetoothUUID, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'BluetoothUUID': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSMarginRule = this.CSSMarginRule || function CSSMarginRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSMarginRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSMarginRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSNestedDeclarations = this.CSSNestedDeclarations || function CSSNestedDeclarations() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSNestedDeclarations, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSNestedDeclarations': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CSSViewTransitionRule = this.CSSViewTransitionRule || function CSSViewTransitionRule() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CSSViewTransitionRule, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CSSViewTransitionRule': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CaretPosition = this.CaretPosition || function CaretPosition() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CaretPosition, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CaretPosition': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ChapterInformation = this.ChapterInformation || function ChapterInformation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ChapterInformation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ChapterInformation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.CropTarget = this.CropTarget || function CropTarget() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> CropTarget, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'CropTarget': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.DocumentPictureInPictureEvent = this.DocumentPictureInPictureEvent || function DocumentPictureInPictureEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> DocumentPictureInPictureEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'DocumentPictureInPictureEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'DocumentPictureInPictureEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Fence = this.Fence || function Fence() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Fence, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Fence': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.FencedFrameConfig = this.FencedFrameConfig || function FencedFrameConfig() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> FencedFrameConfig, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'FencedFrameConfig': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.HTMLFencedFrameElement = this.HTMLFencedFrameElement || function HTMLFencedFrameElement() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> HTMLFencedFrameElement, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLFencedFrameElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'HTMLFencedFrameElement': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.MediaMetadata = this.MediaMetadata || function MediaMetadata() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaMetadata, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'MediaMetadata': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.MediaSession = this.MediaSession || function MediaSession() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> MediaSession, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'MediaSession': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.NavigationActivation = this.NavigationActivation || function NavigationActivation() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> NavigationActivation, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'NavigationActivation': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Notification = this.Notification || function Notification() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Notification, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'Notification': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'Notification': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.PageRevealEvent = this.PageRevealEvent || function PageRevealEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PageRevealEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PageRevealEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PageRevealEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.PageSwapEvent = this.PageSwapEvent || function PageSwapEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PageSwapEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'PageSwapEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'PageSwapEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.PerformanceLongAnimationFrameTiming = this.PerformanceLongAnimationFrameTiming || function PerformanceLongAnimationFrameTiming() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceLongAnimationFrameTiming, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceLongAnimationFrameTiming': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PerformanceScriptTiming = this.PerformanceScriptTiming || function PerformanceScriptTiming() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PerformanceScriptTiming, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PerformanceScriptTiming': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PeriodicSyncManager = this.PeriodicSyncManager || function PeriodicSyncManager() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PeriodicSyncManager, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PeriodicSyncManager': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PermissionStatus = this.PermissionStatus || function PermissionStatus() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PermissionStatus, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PermissionStatus': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.Permissions = this.Permissions || function Permissions() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> Permissions, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'Permissions': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PushManager = this.PushManager || function PushManager() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PushManager, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PushManager': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PushSubscription = this.PushSubscription || function PushSubscription() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PushSubscription, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PushSubscription': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.PushSubscriptionOptions = this.PushSubscriptionOptions || function PushSubscriptionOptions() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> PushSubscriptionOptions, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'PushSubscriptionOptions': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RTCDataChannel = this.RTCDataChannel || function RTCDataChannel() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RTCDataChannel, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RTCDataChannel': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.RemotePlayback = this.RemotePlayback || function RemotePlayback() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> RemotePlayback, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'RemotePlayback': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ScrollTimeline = this.ScrollTimeline || function ScrollTimeline() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ScrollTimeline, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ScrollTimeline': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.ViewTimeline = this.ViewTimeline || function ViewTimeline() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ViewTimeline, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'ViewTimeline': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.SharedStorage = this.SharedStorage || function SharedStorage() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SharedStorage, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SharedStorage': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SharedStorageWorklet = this.SharedStorageWorklet || function SharedStorageWorklet() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SharedStorageWorklet, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SharedStorageWorklet': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SharedWorker = this.SharedWorker || function SharedWorker() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SharedWorker, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'SharedWorker': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'SharedWorker': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.SnapEvent = this.SnapEvent || function SnapEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SnapEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SnapEvent': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SpeechSynthesis = this.SpeechSynthesis || function SpeechSynthesis() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SpeechSynthesis, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SpeechSynthesis': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SpeechSynthesisErrorEvent = this.SpeechSynthesisErrorEvent || function SpeechSynthesisErrorEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SpeechSynthesisErrorEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'SpeechSynthesisErrorEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SpeechSynthesisErrorEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SpeechSynthesisEvent = this.SpeechSynthesisEvent || function SpeechSynthesisEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SpeechSynthesisEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'SpeechSynthesisEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SpeechSynthesisEvent': 2 arguments required, but only 0 present."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.SpeechSynthesisUtterance = this.SpeechSynthesisUtterance || function SpeechSynthesisUtterance() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SpeechSynthesisUtterance, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'SpeechSynthesisUtterance': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.SpeechSynthesisVoice = this.SpeechSynthesisVoice || function SpeechSynthesisVoice() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SpeechSynthesisVoice, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'SpeechSynthesisVoice': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.ViewTransitionTypeSet = this.ViewTransitionTypeSet || function ViewTransitionTypeSet() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> ViewTransitionTypeSet, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + let err = new my_api.ctr.TypeError("Failed to construct 'ViewTransitionTypeSet': Illegal constructor"); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + this.WebSocketError = this.WebSocketError || function WebSocketError() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebSocketError, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'WebSocketError': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.WebSocketStream = this.WebSocketStream || function WebSocketStream() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> WebSocketStream, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'WebSocketStream': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'WebSocketStream': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.webkitSpeechGrammar = this.webkitSpeechGrammar || function SpeechGrammar() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SpeechGrammar, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'SpeechGrammar': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.webkitSpeechGrammarList = this.webkitSpeechGrammarList || function SpeechGrammarList() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SpeechGrammarList, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'SpeechGrammarList': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.webkitSpeechRecognition = this.webkitSpeechRecognition || function SpeechRecognition() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SpeechRecognition, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'SpeechRecognition': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + + } + this.webkitSpeechRecognitionError = this.webkitSpeechRecognitionError || function SpeechRecognitionErrorEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SpeechRecognitionErrorEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'SpeechRecognitionErrorEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'SpeechRecognitionErrorEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + this.webkitSpeechRecognitionEvent = this.webkitSpeechRecognitionEvent || function SpeechRecognitionEvent() { + if (cbb_wf.is_log) { + cbb_wf.console.log("[*] new 构造函数 -> SpeechRecognitionEvent, ", "arguments => ", arguments) + } + if (!new.target) { + let err = new my_api.ctr.TypeError("Failed to construct 'SpeechRecognitionEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err + } + if (arguments.length < 1) { + let err = new my_api.ctr.TypeError("Failed to construct 'SpeechRecognitionEvent': 1 argument required, but only 0 present.").replace('0', arguments.length); + let stack = err.stack.split("\n"); + stack.splice(1, 1); + err.stack = stack.join("\n"); + throw err; + } + } + + for (let key in this) { + cbb_wf.setNative(this[key]); + } cbb_wf.console.time("prototype install"); // 给构造函数设置上原型对象 my_api.init(); cbb_wf.console.timeEnd("prototype install"); + Object.defineProperties(NodeFilter, { + "FILTER_ACCEPT": { "value": 1, "writable": false, "enumerable": true, "configurable": false }, + "FILTER_REJECT": { "value": 2, "writable": false, "enumerable": true, "configurable": false }, + "FILTER_SKIP": { "value": 3, "writable": false, "enumerable": true, "configurable": false }, + "SHOW_ALL": { "value": 4294967295, "writable": false, "enumerable": true, "configurable": false }, + "SHOW_ELEMENT": { "value": 1, "writable": false, "enumerable": true, "configurable": false }, + "SHOW_ATTRIBUTE": { "value": 2, "writable": false, "enumerable": true, "configurable": false }, + "SHOW_TEXT": { "value": 4, "writable": false, "enumerable": true, "configurable": false }, + "SHOW_CDATA_SECTION": { "value": 8, "writable": false, "enumerable": true, "configurable": false }, + "SHOW_ENTITY_REFERENCE": { "value": 16, "writable": false, "enumerable": true, "configurable": false }, + "SHOW_ENTITY": { "value": 32, "writable": false, "enumerable": true, "configurable": false }, + "SHOW_PROCESSING_INSTRUCTION": { "value": 64, "writable": false, "enumerable": true, "configurable": false }, + "SHOW_COMMENT": { "value": 128, "writable": false, "enumerable": true, "configurable": false }, + "SHOW_DOCUMENT": { "value": 256, "writable": false, "enumerable": true, "configurable": false }, + "SHOW_DOCUMENT_TYPE": { "value": 512, "writable": false, "enumerable": true, "configurable": false }, + "SHOW_DOCUMENT_FRAGMENT": { "value": 1024, "writable": false, "enumerable": true, "configurable": false }, + "SHOW_NOTATION": { "value": 2048, "writable": false, "enumerable": true, "configurable": false } + }); + let desp1 = Object.getOwnPropertyDescriptor(Array.prototype, Symbol.iterator); // 感觉暂时用不到 let desp2 = Object.getOwnPropertyDescriptor(Array.prototype, Symbol.unscopables); + Object.defineProperty(this.Option.prototype, Symbol.unscopables, desp2); Object.defineProperty(this.Image.prototype, Symbol.unscopables, desp2); Object.defineProperty(this.Audio.prototype, Symbol.unscopables, desp2); @@ -9778,40 +16040,46 @@ my_api.initEnv = function () { Object.defineProperty(this.HighlightRegistry.prototype, Symbol.iterator, desp1); } + my_api.initWindow = function (dom_window) { + dom_window.document.documentElement.setAttribute("lang", "en-US"); + dom_window.document.documentElement.setAttribute("dir", "ltr"); + let window_value = { "dom_element": dom_window, "location": my_api.newLocation(), - "parent": "window_parent" in this ? this.window_parent : this, - "top": "window_top" in this ? this.window_top : this, - "frameElement": "window_frameElement" in this ? this.window_frameElement : null, + "parent": this.window_parent ? this.window_parent : this, + "top": cbb_wf.window_top ? cbb_wf.window_top : this, + "frameElement": null, "frames": this, "window": this, "self": this, - "originAgentCluster": false, + "offscreenBuffering": true, + "originAgentCluster": true, "crossOriginIsolated": false, "closed": false, - "isSecureContext": false, + "isSecureContext": true, /* 用于获取或设置当前窗口的名称。该属性主要用于设置超链接和表单的目标,以及在 JavaScript 中使用 window.open() 方法打开新窗口时指定窗口名称。 */ "name": "", "status": "", /* window.length 是一个只读属性,用于返回当前窗口中的框架(frame)数量。该属性所返回的值是一个整数,表示当前窗口中有多少个框架。 */ "length": 0, "opener": null, - "origin": dom_window.location.origin, - "innerWidth": cbb_wf.config.window_value.innerWidth, - "innerHeight": cbb_wf.config.window_value.innerHeight, + "origin": String(dom_window.location.origin), + "innerWidth": Number(cbb_wf.config.window_value.innerWidth), + "innerHeight": Number(cbb_wf.config.window_value.innerHeight), "scrollX": 0, "pageXOffset": 0, "scrollY": 0, "pageYOffset": 0, "screenX": 0, "screenY": 0, - "outerWidth": cbb_wf.config.window_value.outerWidth, - "outerHeight": cbb_wf.config.window_value.outerHeight, - "devicePixelRatio": cbb_wf.config.window_value.devicePixelRatio, + "outerWidth": Number(cbb_wf.config.window_value.outerWidth), + "outerHeight": Number(cbb_wf.config.window_value.outerHeight), + "devicePixelRatio": Number(cbb_wf.config.window_value.devicePixelRatio), "screenLeft": 0, "screenTop": 0, + // "defaultStatus": null, // 检测点 "onsearch": null, "onappinstalled": null, "onbeforeinstallprompt": null, @@ -9926,48 +16194,291 @@ my_api.initWindow = function (dom_window) { "ondeviceorientation": null, "ondeviceorientationabsolute": null, "onbeforematch": null, - "oncontentvisibilityautostatechange": null + "oncontentvisibilityautostatechange": null, + "onbeforetoggle": null, + "onpageswap": null, + "onpagereveal": null, + "fence": null, + "onscrollend": null, + "onscrollsnapchange": null, + "onscrollsnapchanging": null, + "credentialless": false, } cbb_wf.initValue(this, window_value); - // 记得删了 - delete this.window_parent; - delete this.window_top; - delete this.window_frameElement; + let new_obj = { + "GPUBufferUsage": { + "MAP_READ": 1, + "MAP_WRITE": 2, + "COPY_SRC": 4, + "COPY_DST": 8, + "INDEX": 16, + "VERTEX": 32, + "UNIFORM": 64, + "STORAGE": 128, + "INDIRECT": 256, + "QUERY_RESOLVE": 512 + }, + "GPUColorWrite": { "RED": 1, "GREEN": 2, "BLUE": 4, "ALPHA": 8, "ALL": 15 }, + "GPUMapMode": { "READ": 1, "WRITE": 2 }, + "GPUShaderStage": { "VERTEX": 1, "FRAGMENT": 2, "COMPUTE": 4 }, + "GPUTextureUsage": { + "COPY_SRC": 1, + "COPY_DST": 2, + "TEXTURE_BINDING": 4, + "STORAGE_BINDING": 8, + "RENDER_ATTACHMENT": 16 + } + }; + for (let key in new_obj) { + let value = {} + let obj = new_obj[key]; + for (let k in obj) { + Object.defineProperty(value, k, { value: obj[k], writable: false, enumerable: true, configurable: false }) + } + Object.defineProperty(value, Symbol.toStringTag, { + value: key, + writable: false, + enumerable: false, + configurable: true + }) + Object.defineProperty(this, key, { value: value, writable: true, enumerable: false, configurable: true }) + } + window_value.documentPictureInPicture = {}; + window_value.documentPictureInPicture.__proto__ = DocumentPictureInPicture.prototype; + cbb_wf.initValue(window_value.documentPictureInPicture, { window: null, onenter: null }); + + + window_value.sharedStorage = {}; + window_value.sharedStorage.__proto__ = SharedStorage.prototype; + let sharedStorage_value = { + worklet: {} + } + sharedStorage_value.worklet.__proto__ = SharedStorageWorklet.prototype; + cbb_wf.initValue(window_value.sharedStorage, sharedStorage_value) + cbb_wf.initValue(sharedStorage_value.worklet, {}); + window_value.document = my_api.newDocument(); dom_window.document.wrapper_object = window_value.document; + let title_ele = dom_window.document.querySelector('title'); + let document_value = { location: window_value.location, dom_element: dom_window.document, readyState: "loading", + title: title_ele && title_ele.text || "", + URL: dom_window.location.href, + documentURI: dom_window.location.href, fragmentDirective: {}, fullscreen: false, + prerendering: false, fullscreenElement: null, - fullscreenEnabled: false, - onselectionchange: null, + pictureInPictureElement: null, + fullscreenEnabled: true, + xmlEncoding: null, + xmlVersion: null, hidden: false, + xmlStandalone: false, wasDiscarded: false, + dir: "ltr", + designMode: 'off', timeline: {}, fonts: {}, - visibilityState: "visible", + // visibilityState: "visible", featurePolicy: {}, - wasDiscarded: false, + "fgColor": "", + "linkColor": "", + "vlinkColor": "", + "alinkColor": "", + "bgColor": "", + "onpointerlockchange": null, + "onpointerlockerror": null, + // "webkitVisibilityState": "hidden", + "webkitHidden": false, + "onbeforecopy": null, + "onbeforecut": null, + "onbeforepaste": null, + "onfreeze": null, + "onresume": null, + "onvisibilitychange": null, + "onfullscreenchange": null, + "onfullscreenerror": null, + "webkitIsFullScreen": false, + "webkitCurrentFullScreenElement": null, + "webkitFullscreenEnabled": true, + "webkitFullscreenElement": null, + "onwebkitfullscreenchange": null, + "onwebkitfullscreenerror": null, + "rootElement": null, + "onbeforexrselect": null, + "onabort": null, + "onblur": null, + "oncancel": null, + "oncanplay": null, + "oncanplaythrough": null, + "onchange": null, + "onclick": null, + "onclose": null, + "oncontextlost": null, + "oncontextmenu": null, + "oncontextrestored": null, + "oncuechange": null, + "ondblclick": null, + "ondrag": null, + "ondragend": null, + "ondragenter": null, + "ondragleave": null, + "ondragover": null, + "ondragstart": null, + "ondrop": null, + "ondurationchange": null, + "onemptied": null, + "onended": null, + "onerror": null, + "onfocus": null, + "onformdata": null, + "oninput": null, + "oninvalid": null, + "onreadystatechange": null, + "onprerenderingchange": null, + "onsearch": null, + "onbeforeinput": null, + "onbeforematch": null, + "onbeforetoggle": null, + "oncontentvisibilityautostatechange": null, + "onkeydown": null, + "onkeypress": null, + "onkeyup": null, + "onload": null, + "onloadeddata": null, + "onloadedmetadata": null, + "onloadstart": null, + "onmousedown": null, + "onmouseenter": null, + "onmouseleave": null, + "onmousemove": null, + "onmouseout": null, + "onmouseover": null, + "onmouseup": null, + "onmousewheel": null, + "onpause": null, + "onplay": null, + "onplaying": null, + "onprogress": null, + "onratechange": null, + "onreset": null, + "onresize": null, + "onscroll": null, + "onsecuritypolicyviolation": null, + "onseeked": null, + "onseeking": null, + "onselect": null, + "onslotchange": null, + "onstalled": null, + "onsubmit": null, + "onsuspend": null, + "ontimeupdate": null, + "ontoggle": null, + "onvolumechange": null, + "onwaiting": null, + "onwebkitanimationend": null, + "onwebkitanimationiteration": null, + "onwebkitanimationstart": null, + "onwebkittransitionend": null, + "onwheel": null, + "onauxclick": null, + "ongotpointercapture": null, + "onlostpointercapture": null, + "onpointerdown": null, + "onpointermove": null, + "onpointerrawupdate": null, + "onpointerup": null, + "onpointercancel": null, + "onpointerover": null, + "onpointerout": null, + "onpointerenter": null, + "onpointerleave": null, + "onselectstart": null, + "onselectionchange": null, + "onanimationend": null, + "onanimationiteration": null, + "onanimationstart": null, + "ontransitionrun": null, + "ontransitionstart": null, + "ontransitionend": null, + "ontransitioncancel": null, + "oncopy": null, + "oncut": null, + "onpaste": null, + "onscrollend": null, + "onscrollsnapchange": null, + "onscrollsnapchanging": null, + "pointerLockElement": null, + "adoptedStyleSheets": new Proxy([], { + get(a, b, c) { + cbb_wf.console.log("[*] adoptedStyleSheets.get call", a, b, c); + return Reflect.get(a, b, c); + }, + set(a, b, c, d) { + cbb_wf.console.log("[*] adoptedStyleSheets.set call", a, b, c, d); + return Reflect.set(a, b, c, d); + }, + deleteProperty(a, b) { + cbb_wf.console.log("[*] adoptedStyleSheets.deleteProperty call", a, b); + return Reflect.deleteProperty(a, b); + }, + defineProperty(a, b, c) { + cbb_wf.console.log("[*] adoptedStyleSheets.defineProperty call", a, b, c); + return Reflect.defineProperty(a, b, c); + }, + getOwnPropertyDescriptor(a, b, c) { + cbb_wf.console.log("[*] adoptedStyleSheets.getOwnPropertyDescriptor call", a, b, c); + return Reflect.getOwnPropertyDescriptor(a, b, c); + }, + has(a, b, c) { + cbb_wf.console.log("[*] adoptedStyleSheets.has call", a, b, c); + return Reflect.has(a, b, c) + }, + ownKeys(a, b, c) { + cbb_wf.console.log("[*] adoptedStyleSheets.ownKeys call", a, b, c) + return Reflect.has(a, b, c) + + }, + preventExtensions(a, b, c) { + cbb_wf.console.log("[*] adoptedStyleSheets.preventExtensions call") + return Reflect.preventExtensions(a, b, c); + }, + + }), + "pictureInPictureEnabled": true, + + "onprerenringchange": null, } + document_value.activeElement = my_api.getWrapperObject(dom_window.document.body); + + let f_child = dom_window.document.firstChild; + if (f_child[Symbol.toStringTag] == 'DocumentType') { + document_value.doctype = my_api.getWrapperObject(f_child); + } else document_value.doctype = null; Object.setPrototypeOf(window_value.document, HTMLDocument.prototype); Object.setPrototypeOf(document_value.fragmentDirective, FragmentDirective.prototype); Object.setPrototypeOf(document_value.timeline, DocumentTimeline.prototype); Object.setPrototypeOf(document_value.featurePolicy, FeaturePolicy.prototype); cbb_wf.initValue(window_value.document, document_value); + cbb_wf.initValue(document_value.fragmentDirective, {}); + cbb_wf.initValue(document_value.timeline, {}); + cbb_wf.initValue(document_value.featurePolicy, {}); + Object.setPrototypeOf(document_value.fonts, my_api.pt.FontFaceSet_prototype); cbb_wf.initValue(document_value.fonts, { onloading: null, onloadingdone: null, onloadingerror: null, - size: 3, + size: 0, status: "loaded", ready: new Promise(resolve => resolve(document_value.fonts)), }); @@ -9980,23 +16491,20 @@ my_api.initWindow = function (dom_window) { }); my_api.setUndetectable(document_value.all); - // let formCollection = dom_window.document.getElementsByTagName("form"); - // document_value.getElementsByTagName = { - // form: my_api.newHtmlCollection(formCollection, "HTMLCollection") - // }; // location let location_value = { ancestorOrigins: {}, - href: dom_window.location.href, - origin: dom_window.location.origin, - protocol: dom_window.location.protocol, - host: dom_window.location.host, - hostname: dom_window.location.hostname, - port: dom_window.location.port, - search: dom_window.location.search, - hash: dom_window.location.hash, - pathname: dom_window.location.pathname, + // href: dom_window.location.href, + // origin: dom_window.location.origin, + // protocol: dom_window.location.protocol, + // host: dom_window.location.host, + // hostname: dom_window.location.hostname, + // port: dom_window.location.port, + // search: dom_window.location.search, + // hash: dom_window.location.hash, + // pathname: dom_window.location.pathname, + dom_element: dom_window.location, } Object.setPrototypeOf(location_value['ancestorOrigins'], DOMStringList.prototype); Object.setPrototypeOf(window_value.location, Location.prototype); @@ -10023,7 +16531,7 @@ my_api.initWindow = function (dom_window) { cbb_wf.initValue(window_value['caches'], {}); window_value['speechSynthesis'] = {}; - Object.setPrototypeOf(window_value['speechSynthesis'], my_api.pt.SpeechSynthesis_prototype); + Object.setPrototypeOf(window_value['speechSynthesis'], SpeechSynthesis.prototype); cbb_wf.initValue(window_value['speechSynthesis'], { "pending": false, @@ -10048,14 +16556,7 @@ my_api.initWindow = function (dom_window) { cbb_wf.initValue(window_value['navigation'], navigation_value); Object.setPrototypeOf(navigation_value.currentEntry, NavigationHistoryEntry.prototype); - cbb_wf.initValue(navigation_value['currentEntry'], { - "key": "1c6b5989-c663-4eb9-9def-498df5b7aaae", - "id": "b9ff2f7d-fc31-40d0-876d-46d80e11e52f", - "url": "https://bitbucket.org/letsgogo/letsgogo_14/src/master/README.md", - "index": 0, - "sameDocument": true, - "ondispose": null - }); + cbb_wf.initValue(navigation_value['currentEntry'], Object(navigation_value.currentEntry)); window_value['external'] = {}; @@ -10080,6 +16581,16 @@ my_api.initWindow = function (dom_window) { window_value['performance'] = {}; Object.setPrototypeOf(window_value['performance'], Performance.prototype); + let console_value = { + memory: {} + } + Object.setPrototypeOf(console_value.memory, my_api.pt.MemoryInfo_prototype); + cbb_wf.initValue(console_value['memory'], { + jsHeapSizeLimit: 3760000000, + totalJSHeapSize: 14223727, + usedJSHeapSize: 11972075, + }); + let performance_value = { eventCounts: {}, timing: {}, @@ -10105,15 +16616,15 @@ my_api.initWindow = function (dom_window) { cbb_wf.initValue(performance_value['eventCounts'], { size: 36, }); - // cbb_wf.initValue(performance_value['memory'], { - // jsHeapSizeLimit: 3760000000, - // totalJSHeapSize: 13400000, - // usedJSHeapSize: 11900000, - // }); + cbb_wf.initValue(performance_value['memory'], { + jsHeapSizeLimit: 3760000000, + totalJSHeapSize: 14223727, + usedJSHeapSize: 11972075, + }); /* navigationStart:浏览器开始加载文档的时间。 unloadEventStart / unloadEventEnd:上一个页面卸载的开始和结束时间。 - redirectStart / redirectEnd:重定向发生的开始和结束时间。 + redirectStart / redirectEnd:totalJSHeapSize。 fetchStart / domainLookupStart / domainLookupEnd / connectStart / connectEnd:网络连接相关的时间。 secureConnectionStart:SSL 安全连接建立的开始时间。 requestStart / responseStart / responseEnd:服务器响应相关的时间。 @@ -10121,7 +16632,7 @@ my_api.initWindow = function (dom_window) { loadEventStart / loadEventEnd:页面加载事件的开始和结束时间。 */ cbb_wf.initValue(performance_value['timing'], { - navigationStart: my_api.memory.begin_time, + navigationStart: cbb_wf.begin_time, redirectEnd: 0, redirectStart: 0, unloadEventEnd: 0, @@ -10196,42 +16707,48 @@ my_api.initWindow = function (dom_window) { let navigator_value = {}; + navigator_value['deprecatedRunAdAuctionEnforcesKAnonymity'] = false; navigator_value['vendorSub'] = ''; navigator_value['productSub'] = '20030107'; navigator_value['vendor'] = 'Google Inc.'; - navigator_value['maxTouchPoints'] = cbb_wf.config.navigator_value.maxTouchPoints; + navigator_value['maxTouchPoints'] = Number(cbb_wf.config.navigator_value.maxTouchPoints); navigator_value['pdfViewerEnabled'] = true; - navigator_value['hardwareConcurrency'] = cbb_wf.config.navigator_value.hardwareConcurrency; - navigator_value['cookieEnabled'] = true; + navigator_value['hardwareConcurrency'] = Number(cbb_wf.config.navigator_value.hardwareConcurrency); navigator_value['appCodeName'] = 'Mozilla'; navigator_value['appName'] = 'Netscape'; navigator_value['deviceMemory'] = 8; navigator_value['platform'] = 'Win32'; navigator_value['product'] = 'Gecko'; - navigator_value['appVersion'] = cbb_wf.config.navigator_value.appVersion; - navigator_value['userAgent'] = cbb_wf.config.navigator_value.userAgent; + navigator_value['appVersion'] = String(cbb_wf.config.navigator_value.appVersion); + navigator_value['userAgent'] = String(cbb_wf.config.navigator_value.userAgent); - navigator_value['language'] = cbb_wf.config.navigator_value.language; + navigator_value['language'] = String(cbb_wf.config.navigator_value.language); navigator_value['languages'] = cbb_wf.config.navigator_value.languages; navigator_value['onLine'] = true; navigator_value['webdriver'] = false; navigator_value['javaEnabled'] = false; + navigator_value['cookieEnabled'] = true; navigator_value['doNotTrack'] = null; navigator_value["userAgentData"] = {}; Object.setPrototypeOf(navigator_value['userAgentData'], NavigatorUAData.prototype); - let userAgentData_value = { - brands: [ - { brand: 'Chromium', version: '104' }, { brand: 'Not(A:Brand', version: '99' }, { - brand: 'Google Chrome', - version: '104' - } - ], - mobile: false, - platform: "Windows", - }; - cbb_wf.initValue(navigator_value['userAgentData'], userAgentData_value); + cbb_wf.initValue(navigator_value['userAgentData'], Object(cbb_wf.config.userAgentData_value)); + navigator_value["hid"] = {}; + Object.setPrototypeOf(navigator_value['hid'], HID.prototype); + cbb_wf.initValue(navigator_value['hid'], { onconnect: null, ondisconnect: null }); + + navigator_value["presentation"] = {}; + Object.setPrototypeOf(navigator_value['presentation'], Presentation.prototype); + cbb_wf.initValue(navigator_value['presentation'], { defaultRequest: null, receiver: null }); + + navigator_value["xr"] = {}; + Object.setPrototypeOf(navigator_value['xr'], XRSystem.prototype); + cbb_wf.initValue(navigator_value['xr'], { ondevicechange: null }); + + navigator_value["windowControlsOverlay"] = {}; + Object.setPrototypeOf(navigator_value['windowControlsOverlay'], WindowControlsOverlay.prototype); + cbb_wf.initValue(navigator_value['windowControlsOverlay'], { visible: false, ongeometrychange: null }); navigator_value['locks'] = {}; Object.setPrototypeOf(navigator_value['locks'], LockManager.prototype); @@ -10353,6 +16870,28 @@ my_api.initWindow = function (dom_window) { Object.setPrototypeOf(navigator_value['storage'], StorageManager.prototype); cbb_wf.initValue(navigator_value['storage'], {}); + + navigator_value['protectedAudience'] = {}; + Object.setPrototypeOf(navigator_value['protectedAudience'], ProtectedAudience.prototype); + cbb_wf.initValue(navigator_value['protectedAudience'], {}); + + navigator_value['storageBuckets'] = {}; + Object.setPrototypeOf(navigator_value['storageBuckets'], StorageBucketManager.prototype); + cbb_wf.initValue(navigator_value['storageBuckets'], {}); + + navigator_value['login'] = {}; + Object.setPrototypeOf(navigator_value['login'], NavigatorLogin.prototype); + cbb_wf.initValue(navigator_value['login'], {}); + + navigator_value['gpu'] = {}; + let gpu_value = { + wgslLanguageFeatures: {} + } + Object.setPrototypeOf(navigator_value['gpu'], GPU.prototype); + cbb_wf.initValue(navigator_value['gpu'], gpu_value); + Object.setPrototypeOf(gpu_value['wgslLanguageFeatures'], WGSLLanguageFeatures.prototype); + cbb_wf.initValue(gpu_value['wgslLanguageFeatures'], { size: 4 }); + navigator_value['webkitTemporaryStorage'] = {}; navigator_value['webkitPersistentStorage'] = {}; Object.setPrototypeOf(navigator_value['webkitTemporaryStorage'], my_api.pt.DeprecatedStorageQuota_prototype); @@ -10648,7 +17187,11 @@ my_api.initWindow = function (dom_window) { let screen_value = cbb_wf.config.screen_value; screen_value["orientation"] = {}; Object.setPrototypeOf(window_value['screen'], Screen.prototype); + Object.setPrototypeOf(screen_value['orientation'], ScreenOrientation.prototype); cbb_wf.initValue(window_value['screen'], screen_value); + cbb_wf.initValue(screen_value['orientation'], { + angle: 0, type: 'landscape-primary', onchange: null + }); my_api.memory.timing = performance_value.timing; @@ -10658,27 +17201,27 @@ my_api.initWindow = function (dom_window) { enumerable: true, value: { csi: new Function(`return function () { - cbb_wf.console.log("[*] 调用了chrome_csi, 暂时未实现功能"); + cbb_wf.console.log("[*] " + my_api.memory.vm_index + "调用了chrome_csi, 暂时未实现功能"); return null; }`)(), loadTimes: new Function(`return function () { - cbb_wf.console.log("[*] 调用了chrome_loadTimes, 暂时未实现功能"); + cbb_wf.console.log("[*] " + my_api.memory.vm_index + "调用了chrome_loadTimes, 暂时未实现功能"); return null; }`)(), // 非构造函数 getVariableValue() { - cbb_wf.console.log("[*] 调用了chrome_getVariableValue, 暂时未实现功能"); + cbb_wf.console.log("[*] " + my_api.memory.vm_index + "调用了chrome_getVariableValue, 暂时未实现功能"); return null; }, // 非构造函数 send() { - cbb_wf.console.log("[*] 调用了chrome_send, 暂时未实现功能"); + cbb_wf.console.log("[*] " + my_api.memory.vm_index + "调用了chrome_send, 暂时未实现功能"); return null; }, timeTicks: { // 非构造函数 nowInMicroseconds() { - cbb_wf.console.log("[*] 调用了chrome_timeTicks_nowInMicroseconds, 暂时未实现功能"); + cbb_wf.console.log("[*] " + my_api.memory.vm_index + "调用了chrome_timeTicks_nowInMicroseconds, 暂时未实现功能"); return null; }, }, @@ -10735,8 +17278,18 @@ my_api.initWindow = function (dom_window) { }); Object.defineProperty(chrome.send, "name", { value: '', writable: false, enumerable: false, configurable: true }); - Object.defineProperty(chrome.getVariableValue, "name", { value: '', writable: false, enumerable: false, configurable: true }); - Object.defineProperty(chrome.timeTicks.nowInMicroseconds, "name", { value: '', writable: false, enumerable: false, configurable: true }); + Object.defineProperty(chrome.getVariableValue, "name", { + value: '', + writable: false, + enumerable: false, + configurable: true + }); + Object.defineProperty(chrome.timeTicks.nowInMicroseconds, "name", { + value: '', + writable: false, + enumerable: false, + configurable: true + }); cbb_wf.setNative(chrome.csi); @@ -10753,7 +17306,12 @@ my_api.initWindow = function (dom_window) { configurable: true, value: RTCPeerConnection }); - Object.defineProperty(this, "webkitMediaStream", { writable: true, enumerable: false, configurable: true, value: MediaStream }); + Object.defineProperty(this, "webkitMediaStream", { + writable: true, + enumerable: false, + configurable: true, + value: MediaStream + }); Object.defineProperty(this, "WebKitMutationObserver", { writable: true, enumerable: false, @@ -10767,10 +17325,47 @@ my_api.initWindow = function (dom_window) { value: DOMMatrix }); + let CSS_value = { + "highlights": {}, + "paintWorklet": {}, + }; + Object.setPrototypeOf(CSS_value.highlights, my_api.ctr.HighlightRegistry.prototype); + Object.setPrototypeOf(CSS_value.paintWorklet, my_api.ctr.Worklet.prototype); + cbb_wf.initValue(CSS_value.highlights, { + "size": 0 + }); + cbb_wf.initValue(CSS_value.paintWorklet, { + "size": 0 + }); + + cbb_wf.initValue(CSS, CSS_value) + /* 绑定下my_api对象 */ dom_window.my_api = my_api; my_api.dom_window = dom_window; + let _ = this; + while (true) { + if (_.location.href.indexOf("about") > -1 && _ !== _.parent) { + _ = _.parent; + continue; + } + my_api.memory.baseURI = _.location.href; + window_value["origin"] = _.location.origin; + break; + } + + if (dom_window.document.firstChild[Symbol.toStringTag] === "DocumentType") { + document_value.compatMode = "CSS1Compat" // 标准 + } else { + document_value.compatMode = "BackCompat" // 兼容 + } + delete this.window_parent; + delete this.window_top; + delete this.window_frameElement; + + } + my_api.passCheck = function () { delete this.dom_window; let cbb_wf = this.cbb_wf; @@ -10790,7 +17385,12 @@ my_api.passCheck = function () { my_api.setImmutableProto(Window.prototype); my_api.setImmutableProto(EventTarget.prototype); - + let console_value = { + memory: {}, + } + Object.setPrototypeOf(console_value.memory, my_api.pt.MemoryInfo_prototype); + cbb_wf.initValue(console_value.memory, {}); + cbb_wf.initValue(console, console_value); } my_api.initEnv.call(my_api.ctr); @@ -15206,174 +21806,6 @@ cbb_wf.console.time("js 构造函数初始化"); } return result; } - my_api.window_dir = function (val) { - let r = cbb_wf.checkIllegal(this, "Window"); - let ctx = r[0]; - if (r[1]) { - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result; - if (cbb_wf.is_log_window) { - cbb_wf.console.log('[*] window_dir, 暂时未实现功能, args =>', arguments); - } - return result; - } - my_api.window_dirxml = function (val) { - let r = cbb_wf.checkIllegal(this, "Window"); - let ctx = r[0]; - if (r[1]) { - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result; - if (cbb_wf.is_log_window) { - cbb_wf.console.log('[*] window_dirxml, 暂时未实现功能, args =>', arguments); - } - return result; - } - my_api.window_profile = function (val) { - let r = cbb_wf.checkIllegal(this, "Window"); - let ctx = r[0]; - if (r[1]) { - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result; - if (cbb_wf.is_log_window) { - cbb_wf.console.log('[*] window_profile, 暂时未实现功能, args =>', arguments); - } - return result; - } - my_api.window_profileEnd = function (val) { - let r = cbb_wf.checkIllegal(this, "Window"); - let ctx = r[0]; - if (r[1]) { - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result; - if (cbb_wf.is_log_window) { - cbb_wf.console.log('[*] window_profileEnd, 暂时未实现功能, args =>', arguments); - } - return result; - } - my_api.window_table = function (val) { - let r = cbb_wf.checkIllegal(this, "Window"); - let ctx = r[0]; - if (r[1]) { - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result; - if (cbb_wf.is_log_window) { - cbb_wf.console.log('[*] window_table, 暂时未实现功能, args =>', arguments); - } - return result; - } - my_api.window_keys = function (val) { - let r = cbb_wf.checkIllegal(this, "Window"); - let ctx = r[0]; - if (r[1]) { - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result; - if (cbb_wf.is_log_window) { - cbb_wf.console.log('[*] window_keys, 暂时未实现功能, args =>', arguments); - } - return result; - } - my_api.window_values = function (val) { - let r = cbb_wf.checkIllegal(this, "Window"); - let ctx = r[0]; - if (r[1]) { - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result; - if (cbb_wf.is_log_window) { - cbb_wf.console.log('[*] window_values, 暂时未实现功能, args =>', arguments); - } - return result; - } - my_api.window_debug = function (val) { - let r = cbb_wf.checkIllegal(this, "Window"); - let ctx = r[0]; - if (r[1]) { - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result; - if (cbb_wf.is_log_window) { - cbb_wf.console.log('[*] window_debug, 暂时未实现功能, args =>', arguments); - } - return result; - } - my_api.window_undebug = function (val) { - let r = cbb_wf.checkIllegal(this, "Window"); - let ctx = r[0]; - if (r[1]) { - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result; - if (cbb_wf.is_log_window) { - cbb_wf.console.log('[*] window_undebug, 暂时未实现功能, args =>', arguments); - } - return result; - } - my_api.window_monitor = function (val) { - let r = cbb_wf.checkIllegal(this, "Window"); - let ctx = r[0]; - if (r[1]) { - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result; - if (cbb_wf.is_log_window) { - cbb_wf.console.log('[*] window_monitor, 暂时未实现功能, args =>', arguments); - } - return result; - } - my_api.window_unmonitor = function (val) { - let r = cbb_wf.checkIllegal(this, "Window"); - let ctx = r[0]; - if (r[1]) { - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result; - if (cbb_wf.is_log_window) { - cbb_wf.console.log('[*] window_unmonitor, 暂时未实现功能, args =>', arguments); - } - return result; - } - my_api.window_inspect = function (val) { - let r = cbb_wf.checkIllegal(this, "Window"); - let ctx = r[0]; - if (r[1]) { - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result; - if (cbb_wf.is_log_window) { - cbb_wf.console.log('[*] window_inspect, 暂时未实现功能, args =>', arguments); - } - return result; - } - my_api.window_copy = function (val) { - let r = cbb_wf.checkIllegal(this, "Window"); - let ctx = r[0]; - if (r[1]) { - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result; - if (cbb_wf.is_log_window) { - cbb_wf.console.log('[*] window_copy, 暂时未实现功能, args =>', arguments); - } - return result; - } - my_api.window_queryObjects = function (val) { - let r = cbb_wf.checkIllegal(this, "Window"); - let ctx = r[0]; - if (r[1]) { - throw cbb_wf.newError.call(ctx, "Illegal invocation"); - } - let result; - if (cbb_wf.is_log_window) { - cbb_wf.console.log('[*] window_queryObjects, 暂时未实现功能, args =>', arguments); - } - return result; - } // 补了的 @@ -15549,3 +21981,4 @@ cbb_wf.console.timeEnd("js 构造函数初始化"); // debugger; cbb_wf.console.timeEnd("vm初始化框架"); +// debugger; \ No newline at end of file